Skip to content

Commit

Permalink
Revert "Create org webhook for jenkins (#20)"
Browse files Browse the repository at this point in the history
This reverts commit 654f8f5.
  • Loading branch information
joakime authored and netomi committed Nov 3, 2023
1 parent 09f9517 commit 34067c3
Showing 1 changed file with 44 additions and 9 deletions.
53 changes: 44 additions & 9 deletions otterdog/jetty.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,6 @@ orgs.newOrg('jetty') {
actions_can_approve_pull_request_reviews: false,
},
},
webhooks+: [
orgs.newOrgWebhook('https://jenkins.webtide.net/github-webhook/') {
content_type: "json",
events+: [
"pull_request",
"push"
],
},
],
_repositories+:: [
orgs.newRepo('.github') {
allow_merge_commit: true,
Expand All @@ -51,6 +42,15 @@ orgs.newOrg('jetty') {
workflows+: {
enabled: false,
},
webhooks: [
orgs.newRepoWebhook('https://jenkins.webtide.net/github-webhook/') {
content_type: "json",
events+: [
"pull_request",
"push"
],
},
],
},
orgs.newRepo('jetty.alpn.api') {
allow_merge_commit: true,
Expand All @@ -67,6 +67,15 @@ orgs.newOrg('jetty') {
workflows+: {
actions_can_approve_pull_request_reviews: false,
},
webhooks: [
orgs.newRepoWebhook('https://jenkins.webtide.net/github-webhook/') {
content_type: "json",
events+: [
"pull_request",
"push"
],
},
],
},
orgs.newRepo('jetty.docker') {
allow_merge_commit: true,
Expand All @@ -80,6 +89,14 @@ orgs.newOrg('jetty') {
workflows+: {
actions_can_approve_pull_request_reviews: false,
},
webhooks: [
orgs.newRepoWebhook('https://jenkins.webtide.net/github-webhook/') {
events+: [
"pull_request",
"push"
],
},
],
},
orgs.newRepo('jetty.parent') {
archived: true,
Expand Down Expand Up @@ -123,6 +140,15 @@ orgs.newOrg('jetty') {
workflows+: {
actions_can_approve_pull_request_reviews: false,
},
webhooks: [
orgs.newRepoWebhook('https://jenkins.webtide.net/github-webhook/') {
content_type: "json",
events+: [
"pull_request",
"push"
],
},
],
rulesets: [
orgs.newRepoRuleset('protect-mainline-branches') {
allows_creations: true,
Expand Down Expand Up @@ -183,6 +209,15 @@ orgs.newOrg('jetty') {
workflows+: {
actions_can_approve_pull_request_reviews: false,
},
webhooks: [
orgs.newRepoWebhook('https://jenkins.webtide.net/github-webhook/') {
content_type: "json",
events+: [
"pull_request",
"push"
],
},
],
},
orgs.newRepo('jetty.website') {
allow_merge_commit: true,
Expand Down

0 comments on commit 34067c3

Please sign in to comment.