Skip to content

Commit

Permalink
Merge pull request #24 from contentauth/davestein/workflows
Browse files Browse the repository at this point in the history
chore: Updated workflows for JIRA integration
  • Loading branch information
DaveStein authored Nov 8, 2024
2 parents f78c376 + a6a86b9 commit 275ab55
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/closing-ticket.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: closing-ticket
on:
issues:
types: [closed]
jobs:
label_issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- run: 'gh issue edit "$NUMBER" --add-label "status: done" --remove-label "status: wip,status: todo,status: in progress,status: in test,status: not prioritized,status: blocked,status: api review,status: code review,status: design review,status: code complete,status: ready"'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
15 changes: 15 additions & 0 deletions .github/workflows/reopening-ticket.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: reopening-ticket
on:
issues:
types: [reopened]
jobs:
label_issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- run: 'gh issue edit "$NUMBER" --add-label "status: todo" --remove-label "status: wip,status: done,status: in progress,status: in test,status: not prioritized,status: blocked,status: api review,status: code review,status: design review,status: code complete,status: ready"'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}

0 comments on commit 275ab55

Please sign in to comment.