Skip to content

Commit cab1f37

Browse files
authored
ci: merge approval and notify jobs (#16403)
1 parent 0495507 commit cab1f37

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

.github/workflows/dependabot.yaml

+3-16
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
name: dependabot
2-
# Dependabot is annoying, but this makes it a bit less so.
32

43
on:
54
pull_request:
6-
types: [opened, closed]
5+
types:
6+
- opened
77

88
permissions:
99
contents: read
1010

11-
# Only run one instance per PR to ensure in-order execution.
12-
concurrency: pr-${{ github.ref }}
13-
1411
jobs:
1512
dependabot-automerge:
1613
runs-on: ubuntu-latest
@@ -46,16 +43,6 @@ jobs:
4643
PR_URL: ${{github.event.pull_request.html_url}}
4744
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
4845

49-
dependabot-automerge-notify:
50-
# Send a slack notification when a dependabot PR is merged.
51-
runs-on: ubuntu-latest
52-
if: >
53-
github.event_name == 'pull_request' &&
54-
github.event.action == 'closed' &&
55-
github.event.pull_request.merged == true &&
56-
github.event.pull_request.user.login == 'dependabot[bot]' &&
57-
github.repository == 'coder/coder'
58-
steps:
5946
- name: Send Slack notification
6047
env:
6148
PR_URL: ${{github.event.pull_request.html_url}}
@@ -71,7 +58,7 @@ jobs:
7158
"type": "header",
7259
"text": {
7360
"type": "plain_text",
74-
"text": ":pr-merged: Auto merged Dependabot PR #${{ env.PR_NUMBER }}",
61+
"text": ":pr-merged: Auto merge enabled for Dependabot PR #${{ env.PR_NUMBER }}",
7562
"emoji": true
7663
}
7764
},

0 commit comments

Comments
 (0)