From cab1f375ec36c3b40104640e0e70d14698a9b5c7 Mon Sep 17 00:00:00 2001 From: M Atif Ali Date: Mon, 3 Feb 2025 20:35:06 +0500 Subject: [PATCH] ci: merge approval and notify jobs (#16403) --- .github/workflows/dependabot.yaml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/dependabot.yaml b/.github/workflows/dependabot.yaml index e2e953aab2..16401475b4 100644 --- a/.github/workflows/dependabot.yaml +++ b/.github/workflows/dependabot.yaml @@ -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 @@ -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}} @@ -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 } },