diff --git a/.github/workflows/close_stale_issues.yml b/.github/workflows/close_stale_issues.yml new file mode 100644 index 0000000..bd2c559 --- /dev/null +++ b/.github/workflows/close_stale_issues.yml @@ -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' diff --git a/.github/workflows/issue_assignment.yml b/.github/workflows/issue_assignment.yml index 7ab5e6e..6267554 100644 --- a/.github/workflows/issue_assignment.yml +++ b/.github/workflows/issue_assignment.yml @@ -1,9 +1,9 @@ -name: Issue assignment +--- +name: Issue assignment on: issues: types: [opened] - jobs: auto-assign: runs-on: ubuntu-latest @@ -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" diff --git a/.github/workflows/remove_labels.yml b/.github/workflows/remove_labels.yml new file mode 100644 index 0000000..37e9455 --- /dev/null +++ b/.github/workflows/remove_labels.yml @@ -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"