|
| 1 | +--- |
| 2 | +name: Close stale issues and PRs |
| 3 | + |
| 4 | +on: |
| 5 | + schedule: |
| 6 | + # Every day at noon CEST (10:00 UTC in summer, 11:00 UTC in winter) |
| 7 | + # Using 10:00 UTC as CEST is UTC+2 (summer time) |
| 8 | + - cron: '0 10 * * *' |
| 9 | + workflow_dispatch: |
| 10 | + |
| 11 | +permissions: {} |
| 12 | + |
| 13 | +jobs: |
| 14 | + stale: |
| 15 | + runs-on: ubuntu-latest |
| 16 | + permissions: |
| 17 | + id-token: write # This is required for getting the required OIDC token from GitHub |
| 18 | + steps: |
| 19 | + - uses: DataDog/dd-octo-sts-action@acaa02eee7e3bb0839e4272dacb37b8f3b58ba80 # v1.0.3 |
| 20 | + id: octo-sts |
| 21 | + with: |
| 22 | + scope: DataDog/datadog-operator |
| 23 | + policy: self.stale.manage-stale |
| 24 | + |
| 25 | + - uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0 |
| 26 | + with: |
| 27 | + repo-token: ${{ steps.octo-sts.outputs.token }} |
| 28 | + |
| 29 | + # Stale configuration |
| 30 | + days-before-stale: 15 |
| 31 | + days-before-close: 30 |
| 32 | + |
| 33 | + # Issue configuration |
| 34 | + stale-issue-message: | |
| 35 | + This issue has been automatically marked as stale because it has not had activity in the past 15 days. |
| 36 | +
|
| 37 | +
|
| 38 | + It will be closed in 30 days if no further activity occurs. If this issue is still relevant, adding a comment will keep it open. Also, you can always reopen the issue if you missed the window. |
| 39 | +
|
| 40 | +
|
| 41 | + Thank you for your contributions! |
| 42 | +
|
| 43 | + close-issue-message: | |
| 44 | + This issue was automatically closed because it has been stale for 30 days with no activity. |
| 45 | +
|
| 46 | +
|
| 47 | + If this issue is still relevant, please reopen it or create a new issue with updated information. |
| 48 | +
|
| 49 | +
|
| 50 | + Thanks! |
| 51 | +
|
| 52 | + stale-issue-label: 'stale' |
| 53 | + close-issue-label: 'auto-closed' |
| 54 | + # Pull request configuration |
| 55 | + stale-pr-message: | |
| 56 | + This pull request has been automatically marked as stale because it has not had activity in the past 15 days. |
| 57 | +
|
| 58 | +
|
| 59 | + It will be closed in 30 days if no further activity occurs. If this pull request is still relevant, adding a comment or pushing new commits will keep it open. Also, you can always reopen the pull request if you missed the window. |
| 60 | +
|
| 61 | +
|
| 62 | + Thank you for your contributions! |
| 63 | +
|
| 64 | + close-pr-message: | |
| 65 | + This pull request was automatically closed because it has been stale for 15 days with no activity. |
| 66 | +
|
| 67 | +
|
| 68 | + If this pull request is still relevant, please reopen it or create a new pull request with updated information. |
| 69 | +
|
| 70 | +
|
| 71 | + Thanks! |
| 72 | +
|
| 73 | + stale-pr-label: 'stale' |
| 74 | + close-pr-label: 'auto-closed' |
| 75 | + |
| 76 | + # Exemptions |
| 77 | + exempt-issue-labels: 'kind/bug,kind/feature,kind/security,category/bugfix,category/feature,category/security,pending' |
| 78 | + exempt-pr-labels: 'do-not-merge/WIP,do-not-merge/hold' |
0 commit comments