File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ type WorkflowJob struct {
38
38
Name * string `json:"name,omitempty"`
39
39
Steps []* TaskStep `json:"steps,omitempty"`
40
40
CheckRunURL * string `json:"check_run_url,omitempty"`
41
+ // Labels represents runner labels from the `runs-on:` key from a GitHub Actions workflow.
42
+ Labels []string `json:"labels,omitempty"`
41
43
}
42
44
43
45
// Jobs represents a slice of repository action workflow job.
Original file line number Diff line number Diff line change @@ -1116,13 +1116,16 @@ type WorkflowDispatchEvent struct {
1116
1116
1117
1117
// WorkflowJobEvent is triggered when a job is queued, started or completed.
1118
1118
//
1119
- // GitHub API docs: pending
1119
+ // GitHub API docs: https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_job
1120
1120
type WorkflowJobEvent struct {
1121
1121
WorkflowJob * WorkflowJob `json:"workflow_job,omitempty"`
1122
1122
1123
1123
Action * string `json:"action,omitempty"`
1124
1124
1125
1125
// The following fields are only populated by Webhook events.
1126
+
1127
+ // Org is not nil when the webhook is configured for an organization or the event
1128
+ // occurs from activity in a repository owned by an organization.
1126
1129
Org * Organization `json:"organization,omitempty"`
1127
1130
Repo * Repository `json:"repository,omitempty"`
1128
1131
Sender * User `json:"sender,omitempty"`
You can’t perform that action at this time.
0 commit comments