Take a look at the pulse of your community. This GitHub Action ranks your issues based on reactions π / π and automatically updates a central issue with the ranking. It also publishes comments with a summary of votes on each individual issue.
- Issue ranking based on community votes (π / π)
- Automatic comments with statistics for each issue
- Central issue with updated leaderboard
- Optional exclusion of issues by label (e.g.,
ignore-issue) - Multilanguage support (
en,es)
name: GitHub Issue Vote Ranking
on:
schedule:
- cron: "0 */2 * * *"
workflow_dispatch:
permissions:
issues: write
pull-requests: write
jobs:
vote-ranking:
runs-on: ubuntu-latest
steps:
- uses: livrasand/gh-issue-vote-ranking@v1.0.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ranking_issue_number: "1"
ignore_label: "ignore-issue"
language: "en"This action uses the built-in ${{ secrets.GITHUB_TOKEN }} token that GitHub automatically provides on every run.
You don't need to set any additional permissions.
| Name | Description | Required | Default |
|---|---|---|---|
token |
GitHub token with repo permissions |
β | |
ranking_issue_number |
Issue number where the ranking is published or updated | β | |
ignore_label |
Label to exclude issues from the ranking | β | ignore-issue |
language |
Message language: en or es |
β | en |
| # | Issue | π | π | Total |
|---|---|---|---|---|
| #42 | Add dark mode | 12 | 2 | 10 |
| #36 | Improve documentation | 8 | 1 | 7 |
Every time someone reacts with π or π to a bot comment:
- The comment on that issue is updated with the new vote count.
- The central issue is updated with the global ranking (top 10).
- Issues with the
ignore-issuetag (or whatever you configure) are ignored.
Pull requests and suggestions are welcome! You can easily extend this action to support more languages, emojis, or voting strategies.