File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 47
47
release-labels :
48
48
runs-on : ubuntu-latest
49
49
# Skip tagging for draft PRs.
50
- if : ${{ github.event_name == 'pull_request ' && !github.event.pull_request.draft }}
50
+ if : ${{ github.event_name == 'pull_request_target ' && !github.event.pull_request.draft }}
51
51
steps :
52
52
- name : release-labels
53
53
uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
Original file line number Diff line number Diff line change 18
18
# Dependabot is annoying, but this makes it a bit less so.
19
19
dependabot-automerge :
20
20
runs-on : ubuntu-latest
21
- if : github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'coder/coder'
21
+ if : github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]' && github.actor_id == 49699333 && github. repository == 'coder/coder'
22
22
permissions :
23
23
pull-requests : write
24
24
contents : write
@@ -30,21 +30,25 @@ jobs:
30
30
github-token : " ${{ secrets.GITHUB_TOKEN }}"
31
31
32
32
- name : Approve the PR
33
- run : gh pr review --approve "$PR_URL"
33
+ run : |
34
+ echo "Approving $PR_URL"
35
+ gh pr review --approve "$PR_URL"
34
36
env :
35
37
PR_URL : ${{github.event.pull_request.html_url}}
36
38
GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
37
39
38
40
- name : Enable auto-merge
39
- run : gh pr merge --auto --squash "$PR_URL"
41
+ run : |
42
+ echo "Enabling auto-merge for $PR_URL"
43
+ gh pr merge --auto --squash "$PR_URL"
40
44
env :
41
45
PR_URL : ${{github.event.pull_request.html_url}}
42
46
GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
43
47
44
48
dependabot-automerge-notify :
45
49
# Send a slack notification when a dependabot PR is merged.
46
50
runs-on : ubuntu-latest
47
- if : github.event_name == 'push' && github.actor == 'github-actions[bot]'
51
+ if : github.event_name == 'push' && github.actor == 'github-actions[bot]' && github.actor_id == 41898282 && github.repository == 'coder/coder'
48
52
steps :
49
53
- name : Send Slack notification
50
54
env :
You can’t perform that action at this time.
0 commit comments