From b8c2bf87d76982e13b1b8bcd2e629095e8c254db Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Wed, 24 Feb 2021 07:49:59 +0000 Subject: [PATCH 1/4] chore: replace stalebot with github action --- .github/stale.yml | 20 -------------------- .github/workflows/stale.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 20 deletions(-) delete mode 100644 .github/stale.yml create mode 100644 .github/workflows/stale.yml diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 0d1432a..0000000 --- a/.github/stale.yml +++ /dev/null @@ -1,20 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 60 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 7 -# Issues with these labels will never be considered stale -exemptLabels: - - bug - - enhancement - - "good first issue" - - "help wanted" - -# Label to use when marking an issue as stale -staleLabel: stale -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. Thank you - for your contributions. -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: false diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..4329216 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,28 @@ +name: Mark Stale Issues and Pull Requests + +on: + schedule: + # 01:30 every day + - cron: "30 1 * * *" + +jobs: + stale: + name: Stale + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3.0.17 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-stale: 60 + days-before-close: 7 + exempt-issue-labels: "bug,enhancement,good first issue,help wanted" + stale-issue-message: > + This issue is stale because it has been open 60 days with no activity. + Remove stale label or comment or this will be closed in 7 days. + stale-pr-message: > + This PR is stale because it has been open 60 days with no activity. + Remove stale label or comment or this will be closed in 7 days. + close-issue-message: > + This issue was closed because it has been stalled for 7 days with no activity. + close-pr-message: > + This PR was closed because it has been stalled for 7 days with no activity. From c56a6e765683bebcc32edac455ae25570170fc35 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Wed, 24 Feb 2021 09:41:42 +0000 Subject: [PATCH 2/4] ci(codeql): remove autobuild action --- .github/workflows/codeql-analysis.yml | 34 +++------------------------ 1 file changed, 3 insertions(+), 31 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index d294c58..d8ae457 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,9 +1,4 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -name: "CodeQL" +name: CodeQL on: push: @@ -18,38 +13,15 @@ on: jobs: CodeQL-Build: if: github.event.pull_request.draft == false - # CodeQL runs on ubuntu-latest, windows-latest, and macos-latest runs-on: ubuntu-latest - steps: - - name: Checkout repository + - name: Checkout Repository uses: actions/checkout@v2 - - # Initialises the CodeQL tools for scanning. + # Initialises the CodeQL tools for scanning - name: Initialise CodeQL uses: github/codeql-action/init@v1 - # Override language selection by uncommenting this and choosing your languages - # with: - # languages: go, javascript, csharp, python, cpp, java with: languages: javascript queries: security-and-quality - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below). - - name: Autobuild - uses: github/codeql-action/autobuild@v1 - - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following - # three lines and modify them (or add more) to build your code if your - # project uses a compiled language - - #- run: | - # make bootstrap - # make release - - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v1 From 46a6b1e9ceeb88fee2486eb24e9b26fb2dbca945 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Wed, 24 Feb 2021 09:42:03 +0000 Subject: [PATCH 3/4] style(workflows): rename spellcheck workflow --- .github/workflows/{spellcheck.yml => spell-check.yml} | 1 + 1 file changed, 1 insertion(+) rename .github/workflows/{spellcheck.yml => spell-check.yml} (87%) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spell-check.yml similarity index 87% rename from .github/workflows/spellcheck.yml rename to .github/workflows/spell-check.yml index 4a2b3ba..0037853 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spell-check.yml @@ -7,6 +7,7 @@ jobs: name: Spellcheck with Typo CI runs-on: ubuntu-latest steps: + - uses: actions/checkout@v2.3.4 - name: TypoCheck uses: typoci/spellcheck-action@v0.3.0 env: From 8361653c210eb811a9cf7b8f26dcc992313d80ab Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Wed, 24 Feb 2021 10:38:52 +0000 Subject: [PATCH 4/4] ci: add link check workflow --- .github/workflows/link-check.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/link-check.yml diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml new file mode 100644 index 0000000..7e9d9fa --- /dev/null +++ b/.github/workflows/link-check.yml @@ -0,0 +1,20 @@ +name: Check Markdown for Broken Links + +on: + schedule: + # 01:30 every day + - cron: "30 1 * * *" + # Allows this workflow to be run manually from the Actions tab + workflow_dispatch: + +jobs: + link-check: + name: Link Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 14.x + - name: Run Linkinator + run: npx linkinator *.md --skip 'https://github.com/Fdawgs/.*/issues/, https://github.com/Fdawgs/.*/commit/, http://0.0.0.0'