open-sauced / hot

๐Ÿ•The site that recommends the hottest projects on GitHub.
https://hot.opensauced.pizza
MIT License
418 stars 143 forks source link

Feature: add blocking labels to the take action #497

Closed nickytonline closed 10 months ago

nickytonline commented 10 months ago

Type of feature

๐Ÿ• Feature

Current behavior

Currently anyone can run .take and be assigned an issues, assuming no one is currently assigned.

This is great for external contributors, but it adds extra work to maintainers, when an issue needs for example triaging still.

Suggested solution

The take action now supports blocking labels. Add the following blocking labels to the take action workflow, https://github.com/open-sauced/ai/blob/beta/.github/workflows/triage.yml:


name: "Assign issues with .take"

on:
  issue_comment:
    types:
      - created
      - edited

jobs:
  take-issue:
    name: Disable take issue
    runs-on: ubuntu-latest
    timeout-minutes: 10
    steps:
      - name: take an issue
        uses: bdougie/take-action@v1.6.1
        with:
          issueCurrentlyAssignedMessage: Thanks for being interested in this issue. It looks like this ticket is already assigned to a contributor.
          token: ${{ secrets.GITHUB_TOKEN }}
          blockingLabels: ๐Ÿ‘€ needs triage,๐Ÿ›‘ blocked,core team work,๐Ÿ–need-design,duplicate
          blockingLabelsMessage: The issue you are trying to assign yourself is blocked until it can be triaged or by another label on the issue.

### Additional context

_No response_

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

### Contributing Docs

- [X] I agree to follow this project's Contribution Docs
github-actions[bot] commented 7 months ago

:tada: This issue has been resolved in version 2.35.0-beta.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] commented 7 months ago

:tada: This issue has been resolved in version 2.35.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: