Auto Issue Assign #835
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto Issue Assign | |
on: | |
schedule: | |
- cron: 0 */12 * * * | |
issue_comment: | |
types: [created, edited] | |
workflow_dispatch: | |
jobs: | |
assign: | |
# If the acton was triggered by a new comment that starts with `/assign-to-me` | |
# or a on a schedule | |
if: > | |
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '!assign')) || | |
github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Assign the user or unassign stale assignments | |
uses: takanome-dev/assign-to-me-action@v1.0.3 | |
with: | |
github_token: '${{ secrets.GITHUB_TOKEN }}' | |
assigned_label: Is-Assigned # you can change this label if you wish | |
required_label: help wanted |