Skip to content

Commit

Permalink
chore: Updating ticket status based on labels (#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveStein authored Nov 18, 2024
1 parent d2e56f2 commit f84c581
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: closing-ticket
name: Closing ticket
on:
issues:
types: [closed]
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/labeling_ticket_done.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Labeling ticket "Done"
on:
issues:
types: [labeled]
jobs:
label_issues:
runs-on: ubuntu-latest
if: |
contains(github.event.issue.labels.*.name, 'status: done')
permissions:
issues: write
steps:
- run: 'gh issue close "$NUMBER"'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
17 changes: 17 additions & 0 deletions .github/workflows/labeling_ticket_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Labeling ticket "To Do"
on:
issues:
types: [labeled]
jobs:
label_issues:
runs-on: ubuntu-latest
if: |
!contains(github.event.issue.labels.*.name, 'status: done')
permissions:
issues: write
steps:
- run: 'gh issue reopen "$NUMBER"'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: reopening-ticket
name: Reopening ticket
on:
issues:
types: [reopened]
Expand Down

0 comments on commit f84c581

Please sign in to comment.