File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ # When a PR is has the auto-merge feature enabled or disabled, this workflow adds or removes
2+ # warning text at the bottom of the PR description.
3+
4+ name : " Add Auto-Merge Notification Text"
5+ on :
6+ pull_request :
7+ types : [auto_merge_enabled, auto_merge_disabled]
8+
9+ jobs :
10+ update-description :
11+ runs-on : ubuntu-latest
12+ permissions :
13+ pull-requests : write
14+ steps :
15+ - name : Add Auto-Merge Notice
16+ if : github.event.action == 'auto_merge_enabled'
17+ uses : bcgov/action-pr-description-add@main
18+ with :
19+ add_markdown : |
20+ > [!IMPORTANT]
21+ > **Auto-merge enabled.**
22+ >
23+ > _This PR is set to merge automatically when all requirements are met._
24+
25+ - name : Remove Auto-Merge Notice
26+ if : github.event.action == 'auto_merge_disabled'
27+ uses : bcgov/action-pr-description-add@main
28+ with :
29+ add_markdown : " " # Empty string to remove the notice
You can’t perform that action at this time.
0 commit comments