Skip to content

Commit 6880c92

Browse files
ThisIsMissEmdmitrizagidulin
authored andcommitted
Add GitHub Action that automatically comments on issues labelled as Needs FEP to explain what this means
Note: This requires a GITHUB_TOKEN secret to be set on the repository
1 parent ba11342 commit 6880c92

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Add comment to explain Needs FEP label
2+
on:
3+
issues:
4+
types:
5+
- labeled
6+
7+
jobs:
8+
add-comment:
9+
if: github.event.label.name == 'needs-fep'
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
steps:
14+
- name: Add comment
15+
run: gh issue comment "$NUMBER" --body "$BODY"
16+
env:
17+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
GH_REPO: ${{ github.repository }}
19+
NUMBER: ${{ github.event.issue.number }}
20+
BODY: >
21+
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.
22+
23+
Note that issues may be closed without the FEP being created; that does not mean that the FEP is no longer needed.

0 commit comments

Comments
 (0)