Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Webhook for Repository ruleset #3305

Merged
merged 43 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
7749ae9
Added Webhook for Repository ruleset
unamdev0 Oct 2, 2024
c473ad5
added test for repository ruleset event
unamdev0 Oct 3, 2024
f7dd113
Add RepositoryRulesetEvent methods
unamdev0 Oct 4, 2024
e63118c
improved comment for documentation; replaced with as given in githu…
unamdev0 Oct 4, 2024
de53c18
added comment for all the structs created
unamdev0 Oct 14, 2024
ab4bf59
fixed minor bugs and linting errors
unamdev0 Oct 14, 2024
7f9928f
update CodeScanningTools to slice of pointers
unamdev0 Oct 14, 2024
1246f00
added period at the end of comments
unamdev0 Oct 15, 2024
6d8869c
Merge branch 'master' into feature/add-repositoryrulesetevent
gmlewis Oct 15, 2024
bde7ac7
Update github/event_types_test.go
gmlewis Oct 15, 2024
33d8d61
Fixed comments;Ran latest go generate
unamdev0 Oct 15, 2024
306c190
Update github/repos_rules.go
gmlewis Oct 15, 2024
e31e94d
Update github/repos_rules.go
gmlewis Oct 15, 2024
0ca73c9
Update github/repos_rules.go
gmlewis Oct 15, 2024
b0cd803
Update github/repos_rules.go
gmlewis Oct 15, 2024
aa85db2
Update github/repos_rules.go
gmlewis Oct 15, 2024
1bba099
Update github/repos_rules.go
gmlewis Oct 15, 2024
aaaa4b4
Update github/repos_rules.go
gmlewis Oct 15, 2024
ee8e3dd
Update github/repos_rules.go
gmlewis Oct 15, 2024
0d014dd
Update github/repos_rules.go
gmlewis Oct 15, 2024
9bc399b
Update github/repos_rules.go
gmlewis Oct 15, 2024
1c316ac
Update github/repos_rules.go
gmlewis Oct 15, 2024
8a71140
Update github/repos_rules.go
gmlewis Oct 15, 2024
a446433
Update github/repos_rules.go
gmlewis Oct 15, 2024
16e9f62
Update github/repos_rules.go
gmlewis Oct 15, 2024
74a9f47
Update github/repos_rules.go
gmlewis Oct 15, 2024
880258c
Update github/repos_rules.go
gmlewis Oct 15, 2024
1804218
Update github/event_types_test.go
gmlewis Oct 15, 2024
a01f3c9
Update github/event_types_test.go
gmlewis Oct 15, 2024
a4f6e1e
Update github/event_types_test.go
gmlewis Oct 15, 2024
b0dec1b
Update github/event_types_test.go
gmlewis Oct 15, 2024
0cf42c2
Update github/event_types_test.go
gmlewis Oct 15, 2024
65358d5
Update github/event_types_test.go
gmlewis Oct 15, 2024
4155211
Update github/event_types_test.go
gmlewis Oct 15, 2024
eee97b3
Update github/repos_rules.go
gmlewis Oct 15, 2024
ee1dbb6
Update github/repos_rules.go
gmlewis Oct 15, 2024
dfd4dfe
Update github/repos_rules.go
gmlewis Oct 15, 2024
eb20803
Update github/repos_rules.go
gmlewis Oct 15, 2024
08855c3
Run latest go generate
unamdev0 Oct 16, 2024
f062b5a
Update github/event_types_test.go
gmlewis Oct 16, 2024
85130e2
Update github/event_types_test.go
gmlewis Oct 16, 2024
dac8ce6
Update github/event_types_test.go
gmlewis Oct 16, 2024
e125889
Update github/event_types_test.go
gmlewis Oct 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions github/event_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1505,6 +1505,22 @@ type RepositoryImportEvent struct {
Sender *User `json:"sender,omitempty"`
}

// RepositoryRulesetEvent triggers whenever there is a change to the repository's ruleset configuration.
//
// This can include updates to protection rules, required status checks, code owners, or other related configurations.
gmlewis marked this conversation as resolved.
Show resolved Hide resolved
//
// GitHub API docs: https://docs.github.com/en/webhooks/webhook-events-and-payloads#repository_ruleset
type RepositoryRulesetEvent struct {
Action *string `json:"action,omitempty"`
Enterprise *Enterprise `json:"enterprise,omitempty"`
Installation *Installation `json:"installation,omitempty"`
Organization *Organization `json:"organization,omitempty"`
Repository *Repository `json:"repository,omitempty"`
RepositoryRuleset *RepositoryRuleset `json:"repository_ruleset"`
Changes *RepositoryRulesetEditedChanges `json:"changes,omitempty"`
Sender *User `json:"sender"`
}

// RepositoryVulnerabilityAlertEvent is triggered when a security alert is created, dismissed, or resolved.
//
// GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#repository_vulnerability_alert
Expand Down
Loading
Loading