From e23d3b88f9c5e7157cc90ba354fcd16a627366eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 15 Jan 2021 15:41:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Merge=20lock=20&=20cleanup=20int?= =?UTF-8?q?o=20one=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflows/{issue_cleanup.yml => cleanup.yml} | 15 +++++++++++++-- .github/workflows/lock.yml | 16 ---------------- 2 files changed, 13 insertions(+), 18 deletions(-) rename .github/workflows/{issue_cleanup.yml => cleanup.yml} (71%) delete mode 100644 .github/workflows/lock.yml diff --git a/.github/workflows/issue_cleanup.yml b/.github/workflows/cleanup.yml similarity index 71% rename from .github/workflows/issue_cleanup.yml rename to .github/workflows/cleanup.yml index 679b4ac92..80ff4f957 100644 --- a/.github/workflows/issue_cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -1,11 +1,23 @@ -name: "Issue cleanup" +name: "Cleanup issues & PRs" + on: schedule: - cron: "0 0 * * *" workflow_dispatch: jobs: + lock: + name: ๐Ÿ”’ Lock issues & PRs closed over a year + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v2 + with: + github-token: ${{ github.token }} + issue-lock-comment: "" + pr-lock-comment: "" + cleanup: + name: ๐Ÿงน Close issues marked as incomplete & older than 14 days runs-on: ubuntu-latest steps: - id: date @@ -15,7 +27,6 @@ jobs: with: repo-token: "${{ secrets.GITHUB_TOKEN }}" query: "is:issue is:open label:incomplete created:<${{ steps.date.outputs.CUTOFF }}" - dry-run: true comment: > Since apparently some of the required information is still missing, this will be closed now, sorry. Feel free to request a reopen of this or create a new issue diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml deleted file mode 100644 index b753d3fc0..000000000 --- a/.github/workflows/lock.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: "Lock outdated issues & PRs" - -on: - schedule: - - cron: "0 0 * * *" - -jobs: - lock: - runs-on: ubuntu-latest - steps: - - name: ๐Ÿ”’ Lock issues & PRs closed over a year - uses: dessant/lock-threads@v2 - with: - github-token: ${{ github.token }} - issue-lock-comment: "" - pr-lock-comment: ""