Skip to content

Commit

Permalink
Remove carvel-triage from closed issues (#73)
Browse files Browse the repository at this point in the history
Update the action used to label our issues because the previous one did
not allow us to remove issues
  • Loading branch information
joaopapereira authored Jan 27, 2021
1 parent 00b0651 commit a731fbb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/closed-issue-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ jobs:
add-labels:
runs-on: ubuntu-latest
steps:
- uses: docker://k8slt/closed-issue-label-action@sha256:84360552559e0de4dfaaeefcf1ea0a1070a6250621f98539caf3eaad9395feb7
- uses: docker://k8slt/github-labeler-action@sha256:69b376b059806729c25c7d1f6cb0c88e1547eae6f57451414d108915bf4ddffd
if: github.event.issue.state == 'closed' && github.event.issue.closed_at != github.event.comment.created_at
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
ignore-comments: true
default-labels: '["carvel-triage"]'
add-labels: "carvel-triage"
13 changes: 13 additions & 0 deletions .github/workflows/closed-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Remove label on close
on:
issues:
types: ['closed']

jobs:
remove-labels:
runs-on: ubuntu-latest
steps:
- uses: docker://k8slt/github-labeler-action@sha256:69b376b059806729c25c7d1f6cb0c88e1547eae6f57451414d108915bf4ddffd
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
remove-labels: "carvel-triage"
5 changes: 2 additions & 3 deletions .github/workflows/reopen-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ jobs:
add-labels:
runs-on: ubuntu-latest
steps:
- uses: docker://k8slt/closed-issue-label-action@sha256:84360552559e0de4dfaaeefcf1ea0a1070a6250621f98539caf3eaad9395feb7
- uses: docker://k8slt/github-labeler-action@sha256:69b376b059806729c25c7d1f6cb0c88e1547eae6f57451414d108915bf4ddffd
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
ignore-comments: true
default-labels: '["carvel-triage"]'
add-labels: "carvel-triage"

0 comments on commit a731fbb

Please sign in to comment.