-
-
Notifications
You must be signed in to change notification settings - Fork 907
build: do not close tracking issues #3106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I'm not wrong, this just changes the final commit message right? GitHub automatically closes linked issues (linked using keywords like "Resolves") when a pull request is merged (ref).
Maybe we can follow the GitHub flow and create sub-issues (a new feature ig). Each PR resolves a sub issue. This will also fix the problem of manually having to update a list of checkboxes.
@gunjjoshi Thanks for opening this PR; however, there may be legitimate instances where we do want a commit/PR to close a tracking issue. I think the actual workaround is that @Planeshifter needs to be more diligent about not closing tracking issues and first checking the linked issue(s) in the OP before further review/merge. This has been a too frequent occurrence recently. In general, verifying linked issues is on the reviewer. For example, it is fairly common for me to manually update an OP to ensure that certain issues are not closed. |
That could be possible. Also, as we already have tracking issues setup in place, I believe we can think of |
@kgryte Thanks for the suggestions. We might require closing the tracking issue only a single time, while the completion of sub-tasks would be more often. For this, can we add a custom keyword (different from ones such as "Closes", "Resolves", etc)? We can add that custom keyword in the OP, if the PR completes the last task in the tracking issue. If that custom keyword is mentioned in the OP, we can then add "Closes" in the commit message. But I am not sure if we should do this. |
We can investigate using sub-issues going forward, but this PR will still be helpful in the meantime. Last but not least, it would be good for us to update the pull request template, which currently has a "Resolves #" placeholder, with a comment on how to reference issues properly depending on the circumstances. |
@Planeshifter Sure, I'll update this PR. In conclusion, we will check if the issue has a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made a small refactoring to ensure the note is not added to the proposed commit message, but included in the stdlib-bot comment.
PR Commit Message
Please review the above commit message and make any necessary adjustments. |
Landed. Thanks @gunjjoshi for suggesting this improvement and opening a PR for it! |
#3106 introduced a non-zero exit code for the `.github/workflows/scripts/generate_pr_commit_message` script whenever the PR references a tracking issue. This caused the workflow to fail for all such PRs due to GitHub Actions running shell scripts using bash -e {0}, causing the script to exit immediately if any command exits with a non-zero status. --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
Description
This pull request:
generate_pr_commit_message
script to not close tracking issues.(tracking issue)
in the issue title, or aTracking issue
label.Related Issues
None.
Questions
No.
Other
No.
Checklist
@stdlib-js/reviewers