Skip to content

Commit

Permalink
Merge pull request #571 from MicrosoftDocs/localden/policy-fixes
Browse files Browse the repository at this point in the history
Policy update
  • Loading branch information
localden authored Nov 1, 2024
2 parents 4524a80 + 1b50126 commit 31e5ef2
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 73 deletions.
51 changes: 0 additions & 51 deletions .github/policies/auto-merge-sync-pr.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: Label publish PRs from the microsoft-github-policy-service bot
- description: Sync API documentation to staging environment.
triggerOnOwnActions: true
if:
- payloadType: Pull_Request
Expand All @@ -26,7 +26,7 @@ configuration:
mergeMethod: Squash
- approvePullRequest:
comment: ':shipit:'
- description: Label publish PRs from the microsoft-github-policy-service bot
- description: Sync staging environment to production.
triggerOnOwnActions: true
if:
- payloadType: Pull_Request
Expand All @@ -41,6 +41,6 @@ configuration:
- addLabel:
label: ':octocat: auto-merge'
- enableAutoMerge:
mergeMethod: Squash
mergeMethod: Merge
- approvePullRequest:
comment: ':shipit:'
28 changes: 23 additions & 5 deletions .github/policies/scheduled-prod-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,36 @@ where:
configuration:
resourceManagementConfiguration:
scheduledSearches:
- description: Push to main (scheduled sync)
- description: Push to live branch (scheduled 11AM PT publish)
frequencies:
- daily:
time: 1:00
time: 18:00
filters: []
actions:
- createPullRequest:
head: main
base: live
title: Merge main into live
body: Automated merge of the main branch into live, syncing documentation content to the production environment.
- description: Push to live branch (scheduled 6PM PT publish)
frequencies:
- daily:
time: 9:00
time: 2:00
filters: []
actions:
- createPullRequest:
head: main
base: live
title: Merge main into live
body: Automated merge of the main branch into live, syncing documentation content to the production environment.
- description: Push to live branch (scheduled 2AM PT publish)
frequencies:
- daily:
time: 17:00
time: 10:00
filters: []
actions:
- createPullRequest:
head: main
base: live
title: Merge main into live
body: Please don't squash-merge this PR.
body: Automated merge of the main branch into live, syncing documentation content to the production environment.
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,7 @@ configuration:
head: smoke-test
base: main
title: Merge smoke-test into main
body: Please don't squash-merge this PR.
- description: Push to main branch (scheduled 3:18PM PT publish - used as test)
frequencies:
- daily:
time: 22:18
filters: []
actions:
- createPullRequest:
head: smoke-test
base: main
title: Merge smoke-test into main
body: Please don't squash-merge this PR.
body: Automated merge of the smoke-test branch into main, syncing API documentation content to the staging environment.
- description: Push to main branch (scheduled 5PM PT publish)
frequencies:
- daily:
Expand All @@ -38,7 +27,7 @@ configuration:
head: smoke-test
base: main
title: Merge smoke-test into main
body: Please don't squash-merge this PR.
body: Automated merge of the smoke-test branch into main, syncing API documentation content to the staging environment.
- description: Push to main branch (scheduled 1AM PT publish)
frequencies:
- daily:
Expand All @@ -49,4 +38,4 @@ configuration:
head: smoke-test
base: main
title: Merge smoke-test into main
body: Please don't squash-merge this PR.
body: Automated merge of the smoke-test branch into main, syncing API documentation content to the staging environment.

0 comments on commit 31e5ef2

Please sign in to comment.