github: add automatically info about voting to all new issues (#19351)

This commit is contained in:
Artem Yurchenko 2023-09-15 08:50:50 +02:00 committed by GitHub
parent d93488b141
commit 6f61d8ba78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

26
.github/workflows/add-voting-info.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Add voting info to new issue
on:
issues:
types:
- opened
jobs:
add-voting-info:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Append voting info to issue body
uses: julien-deramond/update-issue-body@v1
with:
issue-number: ${{ github.event.issue.number }}
body: |
> [!IMPORTANT]
> You can vote for this issue using the 👍 reaction. More votes increase the issue's priority
> for developers.
>
> Take into account that only the 👍 reaction counts as a vote.
> Only reactions to the issue itself will be counted as votes, not comments.
edit-mode: append
append-separator: newline