dessant / lock-threads

GitHub Action that locks closed issues, pull requests and discussions after a period of inactivity
https://github.com/marketplace/actions/lock-threads
MIT License
313 stars 34 forks source link

Add support for only including specified labels #21

Closed Chocobo1 closed 3 years ago

Chocobo1 commented 4 years ago

Hi, this PR is adding support for only including specified labels. It is intended to be used as such:

    steps:
      - uses: dessant/lock-threads
        with:
          github-token: ${{ github.token }}
          issue-include-labels: 'invalid'
          issue-lock-inactive-days: 0  # lock invalid issues quickly than other labels
          process-only: 'issues'
      - uses: dessant/lock-threads
        with:
          github-token: ${{ github.token }}
          issue-lock-inactive-days: 30  # usual period for issues
          process-only: 'issues'

Note that the code is untested as it is unclear for me of how to run it.