From 8fddd5fdd59911e01b0d5d4edbae4e7b19510161 Mon Sep 17 00:00:00 2001 From: Craig Gumbley Date: Fri, 25 Mar 2022 15:12:33 +0000 Subject: [PATCH 1/2] (MAINT) Add labeller and stale GHA workflows --- .github/workflows/labeller.yml | 22 ++++++++++++++++++++++ .github/workflows/stale.yml | 19 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .github/workflows/labeller.yml create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/labeller.yml b/.github/workflows/labeller.yml new file mode 100644 index 000000000..cb3a93078 --- /dev/null +++ b/.github/workflows/labeller.yml @@ -0,0 +1,22 @@ +name: community-labeller + +on: + issues: + types: + - opened + pull_request: + types: + - opened + +jobs: + label: + runs-on: ubuntu-latest + steps: + + - uses: puppetlabs/community-labeller@v0 + name: Label issues or pull requests + with: + label_name: community + label_color: '5319e7' + org_membership: puppetlabs + token: ${{ secrets.IAC_COMMUNITY_LABELER }} \ No newline at end of file diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..c6edd6de2 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,19 @@ +name: Mark stale issues and pull requests + +on: + schedule: + - cron: "30 1 * * *" + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-stale: 60 + days-before-close: 7 + stale-issue-message: 'This issue has been marked as stale because it has been open for a while and has had no recent activity. If this issue is still important to you please drop a comment below and we will add this to our backlog to complete. Otherwise, it will be closed in 7 days.' + stale-issue-label: 'stale' + stale-pr-message: 'This PR has been marked as stale because it has been open for a while and has had no recent activity. If this PR is still important to you please drop a comment below and we will add this to our backlog to complete. Otherwise, it will be closed in 7 days.' + stale-pr-label: 'stale' From 075538f4929c3089e28709b71461bfcbb71e6b92 Mon Sep 17 00:00:00 2001 From: Craig Gumbley Date: Fri, 25 Mar 2022 15:33:45 +0000 Subject: [PATCH 2/2] (MAINT) Fixes no new line at EOF --- .github/workflows/labeller.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/labeller.yml b/.github/workflows/labeller.yml index cb3a93078..104370aa1 100644 --- a/.github/workflows/labeller.yml +++ b/.github/workflows/labeller.yml @@ -19,4 +19,4 @@ jobs: label_name: community label_color: '5319e7' org_membership: puppetlabs - token: ${{ secrets.IAC_COMMUNITY_LABELER }} \ No newline at end of file + token: ${{ secrets.IAC_COMMUNITY_LABELER }}