Skip to content

Commit

Permalink
SWIFT-1520/Close stale issues (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
bajanam authored Mar 16, 2022
1 parent 488bceb commit c3843d4
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/close_stale_issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---

name: 'Close stale issues'
on:
schedule:
- cron: '30 1 * * *'
permissions:
issues: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
stale-issue-message: 'There has not been any recent activity on this ticket, so we are marking it as stale. If we do not hear anything further from you, this issue will be automatically closed in one week.'
days-before-issue-stale: 7
days-before-pr-stale: -1
days-before-close: 7
close-issue-message: 'There has not been any recent activity on this ticket, so we are closing it. Thanks for reaching out and please feel free to file a new issue if you have further questions.'
only-issue-labels: 'waiting-for-reporter'
11 changes: 9 additions & 2 deletions .github/workflows/issue_assignment.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Issue assignment
---

name: Issue assignment
on:
issues:
types: [opened]

jobs:
auto-assign:
runs-on: ubuntu-latest
Expand All @@ -13,3 +13,10 @@ jobs:
with:
assignees: patrickfreed,kmahar,isabelatkinson
numOfAssignee: 1
add-labels:
runs-on: ubuntu-latest
steps:
- name: initial labeling
uses: andymckay/labeler@master
with:
add-labels: "triage"
17 changes: 17 additions & 0 deletions .github/workflows/remove_labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---

name: Remove Labels
on:
issue_comment:
types: [created, edited]
jobs:
remove-labels:
if: ${{ github.actor != 'bajanam' && github.actor != 'patrickfreed'
&& github.actor != 'abr-egn' && github.actor != 'isabelatkinson'
&& github.actor !='kmahar'}}
runs-on: ubuntu-latest
steps:
- name: initial labeling
uses: andymckay/labeler@master
with:
remove-labels: "waiting-for-reporter"

0 comments on commit c3843d4

Please sign in to comment.