Skip to content

Commit

Permalink
Add RunAttempt field to AuditEntry (#2411)
Browse files Browse the repository at this point in the history
Fixes: #2410 .
  • Loading branch information
46158n committed Jul 14, 2022
1 parent 848f7e4 commit 645b457
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions github/orgs_audit_log.go
Expand Up @@ -70,6 +70,7 @@ type AuditEntry struct {
Repo *string `json:"repo,omitempty"`
Repository *string `json:"repository,omitempty"`
RepositoryPublic *bool `json:"repository_public,omitempty"`
RunAttempt *int64 `json:"run_attempt,omitempty"`
RunnerGroupID *int64 `json:"runner_group_id,omitempty"`
RunnerGroupName *string `json:"runner_group_name,omitempty"`
RunnerID *int64 `json:"runner_id,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions github/orgs_audit_log_test.go
Expand Up @@ -207,6 +207,7 @@ func TestAuditEntry_Marshal(t *testing.T) {
Repo: String("r"),
Repository: String("repo"),
RepositoryPublic: Bool(false),
RunAttempt: Int64(1),
RunnerGroupID: Int64(1),
RunnerGroupName: String("rgn"),
RunnerID: Int64(1),
Expand Down Expand Up @@ -275,6 +276,7 @@ func TestAuditEntry_Marshal(t *testing.T) {
"repo": "r",
"repository": "repo",
"repository_public": false,
"run_attempt": 1,
"runner_group_id": 1,
"runner_group_name": "rgn",
"runner_id": 1,
Expand Down

0 comments on commit 645b457

Please sign in to comment.