rickstaa / top-issues-action

Labels and displays the top-upvoted (i.e. 👍) issues and pull requests in your repository.
MIT License
20 stars 1 forks source link

Allow users to specify custom categories #110

Closed rickstaa closed 1 year ago

rickstaa commented 1 year ago

Is your feature request related to a problem? Please describe.

Currently, only the top_issues, top_bugs, top_features and top_prs categories are supported.

Describe the solution you'd like

It would be great if people could specify additional categories that are created based on certain labels. For the https://github.com/anuraghazra/github-readme-stats repository, we would like to include issues with the themes label under a Top Themes section. Adding the following action inputs would allow this to be done.

name: Top issues action.
on:
  schedule:
  - cron:  '0 0 */1 * *'

jobs:
  ShowAndLabelTopIssues:
    name: Display and label top issues.
    runs-on: ubuntu-latest
    steps:
    - name: Run top issues action
      uses: rickstaa/top-issues-action@v1
      env:
        github_token: ${{ secrets.GITHUB_TOKEN }}
      with:
        custom_label: themes
        top_custom_label: ⭐ Top Themes
        top_custom_label_description: Top Themes PRs
        top_custom_label_colour: #0E8A16
rickstaa commented 1 year ago

Implemented in https://github.com/rickstaa/top-issues-action/releases/tag/v1.3.0.