From 6f61d8ba78b3c9fd1dbcdd74efb71f500346aedd Mon Sep 17 00:00:00 2001 From: Artem Yurchenko Date: Fri, 15 Sep 2023 08:50:50 +0200 Subject: [PATCH] github: add automatically info about voting to all new issues (#19351) --- .github/workflows/add-voting-info.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/add-voting-info.yml diff --git a/.github/workflows/add-voting-info.yml b/.github/workflows/add-voting-info.yml new file mode 100644 index 0000000000..645833c60c --- /dev/null +++ b/.github/workflows/add-voting-info.yml @@ -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