diff --git a/.github/workflows/closing-ticket.yml b/.github/workflows/closing-ticket.yml new file mode 100644 index 0000000..1a24b0a --- /dev/null +++ b/.github/workflows/closing-ticket.yml @@ -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 }} diff --git a/.github/workflows/reopening-ticket.yml b/.github/workflows/reopening-ticket.yml new file mode 100644 index 0000000..0cd3763 --- /dev/null +++ b/.github/workflows/reopening-ticket.yml @@ -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 }}