-
Notifications
You must be signed in to change notification settings - Fork 219
initial support for --close-pr (REVIEW) #2401
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
Merged
Merged
Changes from 15 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
8fdbdc1
initial support for --close-pr
migueldiascosta 964f696
fix message and long line in close_pr
migueldiascosta fd5fcbb
improve comment to post in close_pr
migueldiascosta 07467c6
ammend close_pr message
migueldiascosta 6b08c43
flesh out common code block for fetching pr data
migueldiascosta 6d51226
fix style
migueldiascosta 50c8729
add test for fetch_pr_data function
migueldiascosta 979d888
add predefined close-pr reasons and messages
migueldiascosta 5ffc967
add supported values to --close-pr-reasons help message
migueldiascosta e5898ba
automatically check for 'inactive' reason if no reason specified with…
migueldiascosta 1efaf34
fix style
migueldiascosta c0345f1
automatically check for 'archived' reason if no reason specified with…
migueldiascosta 29acced
automatically check for 'obsolete' reason if no reason specified with…
migueldiascosta 7bf3a2a
move fetching additional fields into fetch_pr_data
migueldiascosta 1bf0dc4
more verbose output when looking for reasons to close pr
migueldiascosta 91f46e2
sync with develop
migueldiascosta 34f6996
sync with develop
migueldiascosta 03583e7
sync with develop
migueldiascosta c433ecc
minor code cleanup, extend test for fetch_pr_data
boegel 5fd515c
more code cleanup in tools/github.py
boegel fb89e0b
Merge pull request #6 from boegel/close_pr
migueldiascosta 580feb2
Merge branch 'develop' into close_pr
migueldiascosta 527b41e
add test for close_pr
boegel eda7b5c
add test for reasons_for_closing
boegel 6e2cc2d
Merge pull request #7 from boegel/close_pr
migueldiascosta eb4eb0b
Merge branch 'close_pr' of github.com:migueldiascosta/easybuild-frame…
migueldiascosta fc2e7bf
skip tests if not github token is available
migueldiascosta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
There's a lot of duplication here too, maybe time for a
pr_actionfunction that gets PR# +bodyas arguments (andgithub_tokenas optional argument)?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.
@migueldiascosta Does this suggestion still make sense, or not?
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.
@boegel I don't know - each case is slightly different, but I may be missing an obvious generalization
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.
Just took a look myself, it's indeed not entirely trivial, so let's leave it as is (for now).