Skip to content

ci: merge approval and notify jobs #16403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 3 additions & 16 deletions .github/workflows/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
name: dependabot
# Dependabot is annoying, but this makes it a bit less so.

on:
pull_request:
types: [opened, closed]
types:
- opened

permissions:
contents: read

# Only run one instance per PR to ensure in-order execution.
concurrency: pr-${{ github.ref }}

jobs:
dependabot-automerge:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -46,16 +43,6 @@ jobs:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

dependabot-automerge-notify:
# Send a slack notification when a dependabot PR is merged.
runs-on: ubuntu-latest
if: >
github.event_name == 'pull_request' &&
github.event.action == 'closed' &&
github.event.pull_request.merged == true &&
github.event.pull_request.user.login == 'dependabot[bot]' &&
github.repository == 'coder/coder'
steps:
- name: Send Slack notification
env:
PR_URL: ${{github.event.pull_request.html_url}}
Expand All @@ -71,7 +58,7 @@ jobs:
"type": "header",
"text": {
"type": "plain_text",
"text": ":pr-merged: Auto merged Dependabot PR #${{ env.PR_NUMBER }}",
"text": ":pr-merged: Auto merge enabled for Dependabot PR #${{ env.PR_NUMBER }}",
"emoji": true
}
},
Expand Down
Loading