gorm/.github/workflows/invalid_question.yml

29 lines
1.2 KiB
YAML
Raw Normal View History

2020-09-14 10:29:47 +03:00
name: "Close invalid questions issues"
on:
schedule:
- cron: "*/10 * * * *"
permissions:
contents: read
2020-09-14 10:29:47 +03:00
jobs:
stale:
permissions:
issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs
2020-09-14 10:29:47 +03:00
runs-on: ubuntu-latest
env:
ACTIONS_STEP_DEBUG: true
steps:
- name: Close Stale Issues
uses: actions/stale@v5
2020-09-14 10:29:47 +03:00
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
2022-02-19 12:08:11 +03:00
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) ✨"
2020-09-14 10:29:47 +03:00
stale-issue-label: "status:stale"
days-before-stale: 0
2022-02-19 12:08:11 +03:00
days-before-close: 30
2020-09-14 10:29:47 +03:00
remove-stale-when-updated: true
only-labels: "type:invalid question"