diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..25a6a3c --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,22 @@ +name: Close stale issues and PRs + +on: + workflow_call: + +jobs: + stale: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v9 + with: + days-before-issue-stale: 30 # Marks issues as stale after 30 days of inactivity + days-before-issue-close: 7 # Closes stale issues after an additional 7 days + stale-issue-label: "stale" + stale-issue-message: "This issue has been automatically marked as stale due to inactivity." + days-before-pr-stale: 60 # Marks PRs as stale after 60 days of inactivity + days-before-pr-close: 14 # Closes stale PRs after an additional 14 days + stale-pr-label: "stale" + stale-pr-message: "This pull request has been automatically marked as stale due to inactivity." diff --git a/stale/CHANGELOG.md b/stale/CHANGELOG.md new file mode 100644 index 0000000..e69de29 diff --git a/stale/README.md b/stale/README.md new file mode 100644 index 0000000..dc4fabd --- /dev/null +++ b/stale/README.md @@ -0,0 +1,7 @@ +# Docker build + +## Example usage + +```yaml +uses: iExecBlockchainComputing/github-actions-workflows/stale.yml@stale-v1.0.0 +``` diff --git a/stale/version.txt b/stale/version.txt new file mode 100644 index 0000000..e69de29