Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
f632f845
Commit
f632f845
authored
Nov 05, 2019
by
Alan D. Cabrera
Committed by
Greg Messner
Nov 05, 2019
Browse files
Add source attribute to PipelineEvent.ObjectAttributes (#466)
parent
1fe0d6d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/webhook/PipelineEvent.java
View file @
f632f845
...
...
@@ -75,6 +75,7 @@ public class PipelineEvent extends AbstractEvent {
private
Boolean
tag
;
private
String
sha
;
private
String
beforeSha
;
private
String
source
;
private
String
status
;
private
List
<
String
>
stages
;
private
Date
createdAt
;
...
...
@@ -122,6 +123,14 @@ public class PipelineEvent extends AbstractEvent {
this
.
beforeSha
=
beforeSha
;
}
public
String
getSource
()
{
return
source
;
}
public
void
setSource
(
String
source
)
{
this
.
source
=
source
;
}
public
String
getStatus
()
{
return
status
;
}
...
...
src/test/resources/org/gitlab4j/api/pipeline-event.json
View file @
f632f845
...
...
@@ -6,6 +6,7 @@
"tag"
:
false
,
"sha"
:
"bcbb5ec396a2c0f828686f14fac9b80b780504f2"
,
"before_sha"
:
"bcbb5ec396a2c0f828686f14fac9b80b780504f2"
,
"source"
:
"merge_request_event"
,
"status"
:
"success"
,
"stages"
:[
"build"
,
...
...
@@ -154,4 +155,4 @@
}
}
]
}
\ No newline at end of file
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment