mirror of
https://github.com/zed-industries/zed.git
synced 2026-05-26 15:44:20 +00:00
This moves some more of our CI jobs over to xtask and gh-workflow. This primarily originated from the current GitHub actions outage to move these actions over to Namespace runners. However, while I was at it I decided to move these over to gh_workflow, as we benefit from sharing more stuff across these files and less hacking around in YAML-files directly. Release Notes: - N/A
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
name: Good First Issue Notifier
|
|
|
|
on:
|
|
issues:
|
|
types: [labeled]
|
|
|
|
jobs:
|
|
handle-good-first-issue:
|
|
if: github.event.label.name == '.contrib/good first issue' && github.repository_owner == 'zed-industries'
|
|
runs-on: namespace-profile-2x4-ubuntu-2404
|
|
|
|
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<<EOF"
|
|
echo "$MESSAGE"
|
|
echo "EOF"
|
|
} >> "$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 }}
|