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

Update issue label workflow #8290

Merged
merged 2 commits into from
Jan 27, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/issue-bot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Issue bot

on:
issues:
types: [closed, assigned, unassigned]
zanieb marked this conversation as resolved.
Show resolved Hide resolved

jobs:
remove_label:
runs-on: ubuntu-latest
steps:
- name: Remove triage label on close
if: github.event.action == 'closed'
run: gh issue edit --repo prefecthq/prefect ${{ github.event.issue.number }} --remove-label "status:triage"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Update issue status when assigned
if: github.event.action == 'assigned'
run: gh issue edit --repo prefecthq/prefect ${{ github.event.issue.number }} --add-label "status:in-progress"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Update issue status when unassigned
if: github.event.action == 'unassigned'
run: gh issue edit --repo prefecthq/prefect ${{ github.event.issue.number }} --remove-label "status:in-progress"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Remove triage label on status change
if: github.event.action == 'labeled' && startsWith(github.event.label.name, "status:") && github.event.label.name != "status:triage"
run: gh issue edit --repo prefecthq/prefect ${{ github.event.issue.number }} --remove-label "status:triage"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14 changes: 0 additions & 14 deletions .github/workflows/remove-issue-labels.yaml

This file was deleted.