Skip to content

TinkurLab/top-issues-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

73 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ‘ Top Issues Labeler - GitHub Action

A GitHub Action that labels issues with the most ๐Ÿ‘s (+1s) reactions in your repo.

How It Works

This GitHub Action runs on a configurable schedule (cron) in your GitHub repo. The Action labels top issues and unlabels issues that are no longer top issues. Top issues are issues with the most "+1" emoji reactions on the issue description. "+1" emoji reactions on issues comments are not considered.

Examples

Example of label applied in issue list: GitHub Logo

Example of label applied in issue detail: GitHub Logo

Installation

To use this GitHub Action, you must have access to GitHub Actions Actions Beta.

To setup this action:

  1. Create a .github/worksflows/main.yml in your GitHub repo (more info).
  2. Add the following code to the main.yml file and commit it to the repo's master branch.
name: Label Top Issues

on:
  schedule:
  - cron:  '15 0-23 * * *'

jobs:
  labelTopIssues:
    name: Label Top Issues
    runs-on: ubuntu-latest
    steps:
    - name: Label Issues
      uses: tinkurlab/top-issues-action@master
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        TOP_NUMBER_OF_ISSUES: 10
        TOP_LABEL_NAME: "๐Ÿ‘ Top 10 Issue!"
        TOP_LABEL_COLOR: f442c2

Update TOP_NUMBER_OF_ISSUES, TOP_LABEL_NAME, and TOP_LABEL_COLOR variables with desired values.

Update the cron schedule as desired. The above example runs on the 15th minute of every hour. See Scheduling a Workflow for more info.

Contributing

If you have suggestions for how this GitHub Action could be improved, or want to report a bug, open an issue! Or pull request! We'd love all and any contributions. For more, check out the Contributing Guide.

License

ISC ยฉ 2022 Adam Zolyak adam@tinkurlab.com (www.tinkurlab.com)

analytics