From dcc4ccd18cbd24fe1d40780516fb2db17c037c44 Mon Sep 17 00:00:00 2001 From: Rick Staa Date: Tue, 18 Oct 2022 17:15:25 +0200 Subject: [PATCH] ci: increase invalid theme close time (#2210) This commits increases the theme invalid close time to 20 days. --- .github/workflows/stale-theme-pr-closer.yaml | 2 +- scripts/close-stale-theme-prs.js | 2 +- scripts/preview-theme.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/stale-theme-pr-closer.yaml b/.github/workflows/stale-theme-pr-closer.yaml index 8b1c78b..9a62498 100644 --- a/.github/workflows/stale-theme-pr-closer.yaml +++ b/.github/workflows/stale-theme-pr-closer.yaml @@ -26,5 +26,5 @@ jobs: - run: npm run close-stale-theme-prs env: - STALE_DAYS: 15 + STALE_DAYS: 20 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/scripts/close-stale-theme-prs.js b/scripts/close-stale-theme-prs.js index fedcc3a..def7ef4 100644 --- a/scripts/close-stale-theme-prs.js +++ b/scripts/close-stale-theme-prs.js @@ -127,7 +127,7 @@ const run = async () => { try { // Create octokit client. const dryRun = process.env.DRY_RUN === "true" || false; - const staleDays = process.env.STALE_DAYS || 15; + const staleDays = process.env.STALE_DAYS || 20; debug("Creating octokit client..."); const octokit = github.getOctokit(getGithubToken()); const { owner, repo } = getRepoInfo(github.context); diff --git a/scripts/preview-theme.js b/scripts/preview-theme.js index 9fbe07c..5f705f0 100644 --- a/scripts/preview-theme.js +++ b/scripts/preview-theme.js @@ -24,7 +24,7 @@ const THEME_PR_SUCCESS_TEXT = ":heavy_check_mark: Theme PR does adhere to our guidelines."; const FAIL_TEXT = ` \rUnfortunately, your theme PR contains an error or does not adhere to our [theme guidelines](https://github.com/anuraghazra/github-readme-stats/blob/master/CONTRIBUTING.md#themes-contribution). Please fix the issues below, and we will review your\ - \r PR again. This pull request will **automatically close in 15 days** if no changes are made. After this time, you must re-open the PR for it to be reviewed. + \r PR again. This pull request will **automatically close in 20 days** if no changes are made. After this time, you must re-open the PR for it to be reviewed. `; const THEME_CONTRIB_GUIDELINESS = ` \rHi, thanks for the theme contribution. Please read our theme [contribution guidelines](https://github.com/anuraghazra/github-readme-stats/blob/master/CONTRIBUTING.md#themes-contribution).