Skip to content

Commit

Permalink
Add GitHub Action that automatically comments on issues labelled as N…
Browse files Browse the repository at this point in the history
…eeds FEP to explain what this means

Note: This requires a GITHUB_TOKEN secret to be set on the repository
  • Loading branch information
ThisIsMissEm authored and dmitrizagidulin committed Aug 31, 2024
1 parent 7da9be7 commit 813db27
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/fep-explainer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Add comment to explain Needs FEP label
on:
issues:
types:
- labeled

jobs:
add-comment:
if: github.event.label.name == 'Needs FEP'
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Add comment
run: gh issue comment "$NUMBER" --body "$BODY"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
BODY: >
This issue has been labelled as potentially needing a FEP, and contributors are welcome to [submit a FEP](https://codeberg.org/fediverse/fep/src/branch/main#submitting-a-fep) on the topic.
Note that issues may be closed without the FEP being created; that does not mean that the FEP is no longer needed.

0 comments on commit 813db27

Please sign in to comment.