forked from code-charity/youtube
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Actions for closing stale issues and pull request template
Fixes code-charity#2698 Add a GitHub Actions workflow to close stale issues and a pull request template to ensure issues are closed when pull requests are merged. * **GitHub Actions Workflow for Closing Stale Issues** - Create a new workflow file `.github/workflows/stale.yml`. - Use the `actions/stale@v4` action to automatically close issues that have been inactive for 30 days. - Set `days-before-stale` to 30 and `days-before-close` to 7. - Exclude issues with the `pinned` or `security` labels from being marked as stale. * **Pull Request Template** - Create a new pull request template file `.github/PULL_REQUEST_TEMPLATE/pull_request_template.md`. - Include verbiage like "This pull request closes #ISSUE_NUMBER" to ensure that an issue is closed when the pull request is merged. * **Documentation Updates** - Update `CONTRIBUTING.md` to include sections about the new GitHub Actions workflow for closing stale issues and the new pull request template. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/code-charity/youtube/issues/2698?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
Showing
3 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
## Pull Request Template | ||
|
||
### Description | ||
|
||
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change. | ||
|
||
Fixes # (issue) | ||
|
||
### Type of change | ||
|
||
Please delete options that are not relevant. | ||
|
||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
- [ ] This change requires a documentation update | ||
|
||
### How Has This Been Tested? | ||
|
||
Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration. | ||
|
||
- [ ] Test A | ||
- [ ] Test B | ||
|
||
### Checklist: | ||
|
||
- [ ] My code follows the style guidelines of this project | ||
- [ ] I have performed a self-review of my own code | ||
- [ ] I have commented my code, particularly in hard-to-understand areas | ||
- [ ] I have made corresponding changes to the documentation | ||
- [ ] My changes generate no new warnings | ||
- [ ] I have added tests that prove my fix is effective or that my feature works | ||
- [ ] New and existing unit tests pass locally with my changes | ||
- [ ] Any dependent changes have been merged and published in downstream modules | ||
|
||
### Closing issues | ||
|
||
This pull request closes #ISSUE_NUMBER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: "Close Stale Issues" | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Close stale issues | ||
uses: actions/stale@v4 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
days-before-stale: 30 | ||
days-before-close: 7 | ||
stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs." | ||
close-issue-message: "This issue has been automatically closed because it has not had recent activity." | ||
exempt-issue-labels: "pinned,security" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters