Skip to content
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

Fix isssue-closing script to work without project pages and default merge messages. #289

Merged
merged 6 commits into from
Aug 22, 2024

Conversation

nusbaume
Copy link
Collaborator

@nusbaume nusbaume commented Aug 19, 2024

Fixes the issue-closing script in CAM-SIMA so that it will now successfully close issues or PRs in the non-default branch when issues are referenced in the PR message with a relevant keyword. This will happen both without any attachment to a particular Github project, and with any PR commit message.

Fixes #279

Describe any changes made to build system: N/A

Describe any changes made to the namelist: N/A

List any changes to the defaults for the boundary datasets: N/A

Describe any substantial timing or memory changes: N/A

Code reviewed by: peverwhee, mwaxmonsky

List all existing files that have been modified, old files eliminated, new files added and describe the changes:

M .github/workflows/branch_push_workflow.yml
- Update Github Action and Python versions.

M .github/scripts/branch_pr_issue_closer.py
- Update issue-closing script to work without projects or default PR commit messages.

derecho/intel/aux_cam: All pass.
derecho/gnu/aux_cam: All pass.

Summarize any changes to answers, i.e.,

what code configurations: N/A
what platforms/compilers: N/A
nature of change (roundoff; larger than roundoff but same climate; new climate): N/A

@nusbaume nusbaume added Github action Related to Github Actions for this repo. code clean-up Made code simpler, better, and/or easier to read. labels Aug 19, 2024
@nusbaume nusbaume self-assigned this Aug 19, 2024
Copy link
Collaborator

@peverwhee peverwhee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A question and a couple of suggestions.

.github/scripts/branch_pr_issue_closer.py Outdated Show resolved Hide resolved
.github/scripts/branch_pr_issue_closer.py Outdated Show resolved Hide resolved
.github/scripts/branch_pr_issue_closer.py Outdated Show resolved Hide resolved
.github/scripts/branch_pr_issue_closer.py Outdated Show resolved Hide resolved
.github/scripts/branch_pr_issue_closer.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@mwaxmonsky mwaxmonsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One or two things I think might be worth while and one change I'm happy to help look into a bit more to make the number tracking simpler.

Great work @nusbaume!

.github/scripts/branch_pr_issue_closer.py Outdated Show resolved Hide resolved
.github/scripts/branch_pr_issue_closer.py Outdated Show resolved Hide resolved
.github/scripts/branch_pr_issue_closer.py Outdated Show resolved Hide resolved
.github/scripts/branch_pr_issue_closer.py Outdated Show resolved Hide resolved
.github/scripts/branch_pr_issue_closer.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@mwaxmonsky mwaxmonsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great @nusbaume, thanks for taking this on!

One or two minor suggestions but nothing that should hold this up any longer.

.github/scripts/branch_pr_issue_closer.py Outdated Show resolved Hide resolved
.github/scripts/branch_pr_issue_closer.py Show resolved Hide resolved
@nusbaume nusbaume merged commit 9a8766a into ESCOMP:development Aug 22, 2024
8 checks passed
@nusbaume nusbaume deleted the issue_close_fix branch August 22, 2024 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code clean-up Made code simpler, better, and/or easier to read. Github action Related to Github Actions for this repo.
Projects
Status: Tag
Development

Successfully merging this pull request may close these issues.

3 participants