| 1 |
name: "Close invalid questions issues" |
| 2 |
on: |
| 3 |
schedule: |
| 4 |
- cron: "*/10 * * * *" |
| 5 |
|
| 6 |
permissions: |
| 7 |
contents: read |
| 8 |
|
| 9 |
jobs: |
| 10 |
stale: |
| 11 |
permissions: |
| 12 |
issues: write # for actions/stale to close stale issues |
| 13 |
pull-requests: write # for actions/stale to close stale PRs |
| 14 |
runs-on: ubuntu-latest |
| 15 |
env: |
| 16 |
ACTIONS_STEP_DEBUG: true |
| 17 |
steps: |
| 18 |
- name: Close Stale Issues |
| 19 |
uses: actions/stale@v8 |
| 20 |
with: |
| 21 |
repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 22 |
stale-issue-message: "This issue has been marked as invalid question, please give more information by following the `Question` template, if you believe there is a bug of GORM, please create a pull request that could reproduce the issue on [https://github.com/go-gorm/playground](https://github.com/go-gorm/playground), the issue will be closed in 30 days if no further activity occurs. most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ [Search Before Asking](https://stackoverflow.com/help/how-to-ask) ✨" |
| 23 |
stale-issue-label: "status:stale" |
| 24 |
days-before-stale: 0 |
| 25 |
days-before-close: 30 |
| 26 |
remove-stale-when-updated: true |
| 27 |
only-labels: "type:invalid question" |
| 28 |
|