From 0804c0043f5bae586834a9b9ef1e2301e8452794 Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Tue, 22 Feb 2022 15:55:29 +0800 Subject: CI: add issues-helper (#35846) --- .github/workflows/issue-close-require.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/issue-close-require.yml (limited to '.github/workflows/issue-close-require.yml') diff --git a/.github/workflows/issue-close-require.yml b/.github/workflows/issue-close-require.yml new file mode 100644 index 000000000..b251cd75e --- /dev/null +++ b/.github/workflows/issue-close-require.yml @@ -0,0 +1,19 @@ +name: Close Issue Awaiting Reply + +on: + schedule: + - cron: "0 0 * * *" + +jobs: + issue-close-require: + runs-on: ubuntu-latest + if: github.repository == 'twbs/bootstrap' + steps: + - name: awaiting reply + uses: actions-cool/issues-helper@v3 + with: + actions: "close-issues" + labels: "awaiting-reply" + inactive-day: 14 + body: | + As the issue was labeled with `awaiting-reply`, but there has been no response in 14 days, this issue will be closed. If you have any questions, you can comment/reply. -- cgit v1.2.3 From 471edac3d3cae51d415f03d941af1f27e72c9198 Mon Sep 17 00:00:00 2001 From: Varun Sharma Date: Fri, 16 Dec 2022 12:50:12 +0530 Subject: CI: Add GitHub token permissions for workflows (#36325) Co-authored-by: XhmikosR --- .github/workflows/issue-close-require.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.github/workflows/issue-close-require.yml') diff --git a/.github/workflows/issue-close-require.yml b/.github/workflows/issue-close-require.yml index b251cd75e..b5000d8b4 100644 --- a/.github/workflows/issue-close-require.yml +++ b/.github/workflows/issue-close-require.yml @@ -4,8 +4,15 @@ on: schedule: - cron: "0 0 * * *" +permissions: + contents: read + jobs: issue-close-require: + permissions: + # allow actions-cool/issues-helper to update issues and PRs + issues: write + pull-requests: write runs-on: ubuntu-latest if: github.repository == 'twbs/bootstrap' steps: -- cgit v1.2.3