From 5a0cf93eb4462a491b46f9929fcb7ce7ad03ed0d Mon Sep 17 00:00:00 2001 From: cdnninja Date: Sun, 10 Mar 2024 09:08:27 -0600 Subject: [PATCH 1/2] chore: inactive issues Creating a bot that comments on old issues and marks as stale. I plan to set this to close issues after 90 days of inactivity. However wanting to start with it just commenting on them. Make sure that works and set the -1 to 90. --- .github/workflows/inactiveIssues.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/inactiveIssues.yml diff --git a/.github/workflows/inactiveIssues.yml b/.github/workflows/inactiveIssues.yml new file mode 100644 index 00000000..45b501c5 --- /dev/null +++ b/.github/workflows/inactiveIssues.yml @@ -0,0 +1,22 @@ +name: Close inactive issues +on: + schedule: + - cron: "30 1 * * *" + +jobs: + close-issues: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v5 + with: + days-before-issue-stale: 60 + days-before-issue-close: -1 + stale-issue-label: "stale" + stale-issue-message: "This issue is stale because it has been open for 30 days with no activity. Are you still experiencing this issue? " + close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." + days-before-pr-stale: -1 + days-before-pr-close: -1 + repo-token: ${{ secrets.GITHUB_TOKEN }} From ce2809ae7863fcf2c2c6a1d0edcd0e89fd5343e4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 Mar 2024 05:24:35 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd970ebb..48387a76 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,29 +2,29 @@ name: Release on: workflow_dispatch: schedule: - - cron: "0 8 * * Wed,Sun" + - cron: "0 8 * * Wed,Sun" jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - + - name: Gets semantic release info id: semantic_release_info uses: jossef/action-semantic-release-info@v2 env: GITHUB_TOKEN: ${{ github.token }} - - name: Update Version and Commit + - name: Update Version and Commit if: ${{steps.semantic_release_info.outputs.version != ''}} run: | echo "Version: ${{steps.semantic_release_info.outputs.version}}" - sed -i "s/\"version\": \".*\"/\"version\": \"${{steps.semantic_release_info.outputs.version}}\"/g" custom_components/audiconnect/manifest.json + sed -i "s/\"version\": \".*\"/\"version\": \"${{steps.semantic_release_info.outputs.version}}\"/g" custom_components/audiconnect/manifest.json git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git add -A git commit -m "chore: bumping version to ${{steps.semantic_release_info.outputs.version}}" git tag ${{ steps.semantic_release_info.outputs.git_tag }} - + - name: Push changes if: ${{steps.semantic_release_info.outputs.version != ''}} uses: ad-m/github-push-action@v0.8.0