peaceiris / actions-label-commenter

Label Commenter Action: Label triggered GitHub Action for posting a template comment, and automatically open/close/lock/unlock issues, pull-requests, and discussions.
MIT License
84 stars 16 forks source link

proposal: Option to ignore users #854

Open Andre601 opened 3 months ago

Andre601 commented 3 months ago

Checklist

Describe your proposal

A new option to set a list of users the Action should ignore when running.

Depending on how difficult this could be, should support for teams be considered too, to ignore people of a specific team.

Describe the solution you'd like

The config option would be a string (Given github actions doesn't support anything else really) where each name is space-separated(?)

Example:

# All the actions stuff

jobs:
  comment:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Comment
        uses: peaceiris/actions-label-commenter@v1
        with:
          ignored_users: |
            Someone
            @some-team # Maybe as a team format? Or just like name?

Describe alternatives you've considered

Only alternative I could consider is setting up some evaluation that checks the users first to then skip steps, which is rather complicated for me to figure out.

Additional context

No response

actions-label-commenter[bot] commented 3 months ago

Hi, there.

Thank you @Andre601 for suggesting this.


This is an automated comment created by the peaceiris/actions-label-commenter. Responding to the bot or mentioning it won't have any effect.

Log | Bot Usage