File tree 1 file changed +3
-16
lines changed
1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change 1
1
name : dependabot
2
- # Dependabot is annoying, but this makes it a bit less so.
3
2
4
3
on :
5
4
pull_request :
6
- types : [opened, closed]
5
+ types :
6
+ - opened
7
7
8
8
permissions :
9
9
contents : read
10
10
11
- # Only run one instance per PR to ensure in-order execution.
12
- concurrency : pr-${{ github.ref }}
13
-
14
11
jobs :
15
12
dependabot-automerge :
16
13
runs-on : ubuntu-latest
46
43
PR_URL : ${{github.event.pull_request.html_url}}
47
44
GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
48
45
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 :
59
46
- name : Send Slack notification
60
47
env :
61
48
PR_URL : ${{github.event.pull_request.html_url}}
71
58
"type": "header",
72
59
"text": {
73
60
"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 }}",
75
62
"emoji": true
76
63
}
77
64
},
You can’t perform that action at this time.
0 commit comments