Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: add blocking labels to the take action #276

Closed
2 tasks done
nickytonline opened this issue Nov 1, 2023 · 1 comment · Fixed by #275
Closed
2 tasks done

Feature: add blocking labels to the take action #276

nickytonline opened this issue Nov 1, 2023 · 1 comment · Fixed by #275

Comments

@nickytonline
Copy link
Member

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:

  • needs triage
  • blocked
  • core team work
  • needs design
  • duplicate
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

  • I agree to follow this project's Code of Conduct

Contributing Docs

  • I agree to follow this project's Contribution Docs
@nickytonline nickytonline self-assigned this Nov 1, 2023
@nickytonline nickytonline changed the title Feature: add blocking labels to the take actionFeature: Feature: add blocking labels to the take action Nov 1, 2023
Copy link

github-actions bot commented Nov 1, 2023

🎉 This issue has been resolved in version 1.14.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant