-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add pr-status
command
#67
Conversation
@sledigabel @JimNero009 what do you think? |
just some tiny comments, overall I'm loving it :-) |
Updated output:
|
@sledigabel Ah for verifying the review status column, I think we'll need to run this against repos where someone can approve a PR. I have some private repos for playing in, but obviously can't approve my own PRs there 😂 |
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.
A few comments, overall it looks great, well done @rnorth !
Relates to #65 Fixes #60 Relates to #67 This PR implements a global PR closing command. It introduces a new `update-prs` verb which has only one option at the moment: `--close`. It uses the same mechanism as in #67, looking at the PRs and identifying the one related to the campain, then closes it. It handles the case where there is no open PR.
Marked as draft until #72 is in. |
* Adds `update-prs` with `close` feature Relates to #65 Fixes #60 Relates to #67 This PR implements a global PR closing command. It introduces a new `update-prs` verb which has only one option at the moment: `--close`. It uses the same mechanism as in #67, looking at the PRs and identifying the one related to the campain, then closes it. It handles the case where there is no open PR. * Update after PR comments - typos - Readme addition Signed-off-by: Sebastien Le Digabel <sledigabel@gmail.com> Co-authored-by: Richard North <rich.north@gmail.com>
Ah, the @sledigabel do you remember if there's such a strong need for i.e. in:
This code is rejecting the below status response, for example:
|
@rnorth Upon a very late check, I don't think the |
Awesome, thanks for clarifying @sledigabel! |
Now producing far more sensible output, e.g:
|
The
|
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.
adds a command to show the current state of turbolift raised prs
The `pr-status` command was added after and needed the extra danse to include the new repo file option. Also renamed the `pr_status` package into `prstatus` as gofumpt told me packages should not include underscores. https://go.dev/blog/package-names
* Optional repo file Fixes #74 Adds a new flag for all commands `--repos=<filename>`, which gives the ability to select a different file from the default `repos.txt` one. * Fixing defaultOptions naming * Renaming test * Fix typo on CampaignOptions * Updates following PR - Changed error text to include filename last Signed-off-by: Sebastien Le Digabel <sledigabel@gmail.com> * Adding repofile to update_pr * Rebasing after #67 The `pr-status` command was added after and needed the extra danse to include the new repo file option. Also renamed the `pr_status` package into `prstatus` as gofumpt told me packages should not include underscores. https://go.dev/blog/package-names * Changed the campaign start message with the repo filename .. addressing the PR comment. Also renamed the update_prs package name for the same reason as the pr_status one. * Fixing the parsing for foreach Adding a manual parsing of the foreach parameters and extra testing. Also added some details in the Readme * Rephrasing comment in foreach * Removing extraneous comment --------- Signed-off-by: Sebastien Le Digabel <sledigabel@gmail.com> Co-authored-by: Cat from Catalyst <catscanner@users.noreply.github.com> Co-authored-by: Richard North <rich.north@gmail.com>
pr-status
commandFixes #18, #26
Alternative solution to #58
Example:
TODO: