From 2bb50acb584bbd459790e1bcda7a218b2fdd732f Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Thu, 11 Sep 2025 17:54:33 -0400 Subject: [PATCH] Add action to send good first issues to discord (#38021) Release Notes: - N/A --- .../workflows/good_first_issue_notifier.yml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/good_first_issue_notifier.yml diff --git a/.github/workflows/good_first_issue_notifier.yml b/.github/workflows/good_first_issue_notifier.yml new file mode 100644 index 0000000000000000000000000000000000000000..abb451600de0285a49fb7d0ed1a51acc39a531c5 --- /dev/null +++ b/.github/workflows/good_first_issue_notifier.yml @@ -0,0 +1,36 @@ +name: Good First Issue Notifier + +on: + issues: + types: [labeled] + +jobs: + handle-good-first-issue: + if: github.event.label.name == 'good first issue' && github.repository_owner == 'zed-industries' + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + + - name: Prepare Discord message + id: prepare-message + env: + ISSUE_TITLE: ${{ github.event.issue.title }} + ISSUE_NUMBER: ${{ github.event.issue.number }} + ISSUE_URL: ${{ github.event.issue.html_url }} + ISSUE_AUTHOR: ${{ github.event.issue.user.login }} + run: | + MESSAGE="[${ISSUE_TITLE} (#${ISSUE_NUMBER})](${ISSUE_URL})" + + { + echo "message<> "$GITHUB_OUTPUT" + + - name: Discord Webhook Action + uses: tsickert/discord-webhook@c840d45a03a323fbc3f7507ac7769dbd91bfb164 # v5.3.0 + with: + webhook-url: ${{ secrets.DISCORD_WEBHOOK_GOOD_FIRST_ISSUE }} + content: ${{ steps.prepare-message.outputs.message }}