From b93367803d5e99b39af082bad9860e64d087bb4e Mon Sep 17 00:00:00 2001 From: Jian Zhang Date: Wed, 16 Feb 2022 23:55:45 +0800 Subject: [PATCH 1/3] add two workflows Signed-off-by: Jian Zhang --- .github/workflows/pr-title-checker.yml | 14 ++++++++++++++ .github/workflows/stale-checker.yml | 19 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/pr-title-checker.yml create mode 100644 .github/workflows/stale-checker.yml diff --git a/.github/workflows/pr-title-checker.yml b/.github/workflows/pr-title-checker.yml new file mode 100644 index 00000000000..f8e5ec57a3a --- /dev/null +++ b/.github/workflows/pr-title-checker.yml @@ -0,0 +1,14 @@ +name: 'PR Title Checker' +on: + pull_request: + types: [edited, opened, synchronize, reopened] + +jobs: + title-check: + runs-on: ubuntu-latest + steps: + - uses: naveenk1223/action-pr-title@master + with: + regex: '\[to|fix|close #[0-9]+\] .+' + prefix_case_sensitive: true + max_length: -1 diff --git a/.github/workflows/stale-checker.yml b/.github/workflows/stale-checker.yml new file mode 100644 index 00000000000..b73126dd788 --- /dev/null +++ b/.github/workflows/stale-checker.yml @@ -0,0 +1,19 @@ +name: 'Stale Checker' +on: + schedule: + - cron: '0 0 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v4 + with: + days-before-stale: 30 + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove the status/stale label or comment or this will be closed in 5 days.' + stale-issue-label: 'status/stale' + days-before-issue-close: -1 + stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Remove the status/stale label or comment or this PR will be closed in 7 days.' + stale-pr-label: 'status/stale' + days-before-pr-close: 7 + close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity.' From 3709015d5b58f6839cad42910c750f16f83dec8f Mon Sep 17 00:00:00 2001 From: Jian Zhang Date: Thu, 17 Feb 2022 00:01:29 +0800 Subject: [PATCH 2/3] rename labler Signed-off-by: Jian Zhang --- .github/workflows/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 331ddc9b803..e0318ab1f4d 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,4 +1,4 @@ -name: "Pull Request Labeler" +name: "PR Labeler" on: - pull_request_target From 8ab75ec3ccd764d20bca0b726c6748bce1f1a5c8 Mon Sep 17 00:00:00 2001 From: Jian Zhang Date: Mon, 21 Feb 2022 13:22:01 +0800 Subject: [PATCH 3/3] address comment Signed-off-by: Jian Zhang --- .github/workflows/stale-checker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale-checker.yml b/.github/workflows/stale-checker.yml index b73126dd788..478fc504f7a 100644 --- a/.github/workflows/stale-checker.yml +++ b/.github/workflows/stale-checker.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/stale@v4 with: days-before-stale: 30 - stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove the status/stale label or comment or this will be closed in 5 days.' + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity.' stale-issue-label: 'status/stale' days-before-issue-close: -1 stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Remove the status/stale label or comment or this PR will be closed in 7 days.'