From 36ca07dd82e220954c2d44a1c66af86bac6edc83 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Mon, 27 Sep 2021 15:48:49 +0200 Subject: [PATCH 1/2] [UPD] repo template v1.2.1 --- .copier-answers.yml | 2 +- .github/workflows/stale.yml | 33 +++++++++++++-------------------- 2 files changed, 14 insertions(+), 21 deletions(-) diff --git a/.copier-answers.yml b/.copier-answers.yml index a3cea546d..b0645c857 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Do NOT update manually; changes here will be overwritten by Copier -_commit: v1.2.0 +_commit: v1.2.1 _src_path: gh:oca/oca-addons-repo-template dependency_installation_mode: PIP generate_requirements_txt: true diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 90d4589a9..ed453571e 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -8,18 +8,18 @@ jobs: stale: runs-on: ubuntu-latest steps: - # 120+30 day stale policy for PRs - # * Except PRs marked as "no stale" - - name: Stale PRs policy + - name: Stale PRs and issues policy uses: actions/stale@v4 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - exempt-pr-labels: "no stale" - days-before-stale: 120 - days-before-close: 30 - days-before-issue-stale: -1 - days-before-issue-close: -1 + # General settings. remove-stale-when-updated: true + # Pull Requests settings. + # 120+30 day stale policy for PRs + # * Except PRs marked as "no stale" + days-before-pr-stale: 120 + days-before-pr-close: 30 + exempt-pr-labels: "no stale" stale-pr-label: "stale" stale-pr-message: > There hasn't been any activity on this pull request in the past 4 months, so @@ -28,19 +28,12 @@ jobs: If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label. - - # 180+30 day stale policy for open issues - # * Except Issues marked as "no stale" - - name: Stale Issues policy - uses: actions/stale@v4 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} + # Issues settings. + # 180+30 day stale policy for open issues + # * Except Issues marked as "no stale" + days-before-issue-stale: 180 + days-before-issue-close: 30 exempt-issue-labels: "no stale,needs more information" - days-before-stale: 180 - days-before-close: 30 - days-before-pr-stale: -1 - days-before-pr-close: -1 - remove-stale-when-updated: true stale-issue-label: "stale" stale-issue-message: > There hasn't been any activity on this issue in the past 6 months, so it has From 4cafe3252592f832e24c843df73fe3bbbd393c4d Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Sun, 26 Sep 2021 17:06:35 +0200 Subject: [PATCH 2/2] [IMP] github stale action: Work on oldest issues/prs first --- .github/workflows/stale.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index ed453571e..1693a1253 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -13,6 +13,7 @@ jobs: with: repo-token: ${{ secrets.GITHUB_TOKEN }} # General settings. + ascending: true remove-stale-when-updated: true # Pull Requests settings. # 120+30 day stale policy for PRs @@ -50,6 +51,7 @@ jobs: uses: actions/stale@v4 with: repo-token: ${{ secrets.GITHUB_TOKEN }} + ascending: true only-labels: "needs more information" exempt-issue-labels: "no stale" days-before-stale: 15