diff --git a/.github/workflows/distribute-stale.yml b/.github/workflows/distribute-stale.yml deleted file mode 100644 index b533bc3..0000000 --- a/.github/workflows/distribute-stale.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Add config for bumping/closing inactive PRs -on: - push: - branches: - - 'master' - paths: - - '.github/workflows/stale.yml' - - '.github/workflows/distribute-stale.yml' - workflow_dispatch: - inputs: - repo_name: - description: 'The name of the repository to distribute the stale.yml config to' - required: false - -jobs: - distribute_stale: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: derberg/manage-files-in-multiple-repositories@v2 - with: - # needed scopes: repo, workflow - github_token: ${{ secrets.GLOBAL_GH_ACTION_TOKEN }} - # you must specify what pattern to include otherwise all files from the repository will be replicated - patterns_to_include: '.github/workflows/stale.yml' - commit_message: 'Update stale.yml config' - committer_username: 'Atlas Team' - committer_email: 'atlas@customink.com' - exclude_forked: true diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index f0c78b3..0000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Bump/Close inactive PRs -on: - schedule: - - cron: "0 5 * * *" - -jobs: - close-issues: - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - steps: - - uses: actions/stale@v5 - with: - days-before-pr-stale: 30 - days-before-pr-close: 90 - - stale-pr-label: "stale" - stale-pr-message: "This PR is open and inactive for 30 days. Merging PRs open for a long time is error-prone. Please proceed to merging or make a comment to keep it open. You can also prevent PRs from being tagged stale ot closed with 'keep-open' tag. If there is no activity in 90 days, this PR will be closed" - close-pr-message: "This PR was closed because it has been inactive for 90 days since being marked as stale." - - exempt-pr-labels: "keep-open,dependabot,dependencies" - - repo-token: ${{ secrets.GITHUB_TOKEN }}