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
286: Add a link to CSR in the PR's first comment #1244
Conversation
|
Webrevs
|
@lgxbslgx This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@magicus, @erikj79) but any other Committer may sponsor as well.
|
Overall I like this change. I'm wondering if we should add something like "CSR" either before or after the CSR link to make it clearer what the issue link is. I would suggest a bold CSR within normal parentheses after the title. This matches the formatting of the reviewer attributions further down in the body. |
var relationship = link.relationship(); | ||
if (relationship.isPresent() && relationship.get().equals("csr for")) { | ||
csr = link.issue().orElseThrow( | ||
() -> new IllegalStateException("Link with title 'csr for' does not contain issue") |
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.
I don't think we should throw an exception here. If we do, then a bad state in JBS will completely prevent the PullRequestBot from updating the status of the affected PR. I would prefer logging a warning and returning Optional.empty().
Thanks for the review. I updated the code just now.
Added.
Fixed. And I find the intergration blocker shouldn't invoke the method |
@erikj79 @magicusThanks for the reviews. Could I get your help to sponsor this patch? /integrate |
I updated the code to reduce the nested |
/integrate |
/sponsor |
Going to push as commit 43aedeb. |
Hi all,
This patch adds a link to the csr in the PR's first comment under Issue.
And the corresponding test is added.
Thanks for taking the time to review.
Best Regards,
-- Guoxiong
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/skara pull/1244/head:pull/1244
$ git checkout pull/1244
Update a local copy of the PR:
$ git checkout pull/1244
$ git pull https://git.openjdk.java.net/skara pull/1244/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1244
View PR using the GUI difftool:
$ git pr show -t 1244
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/skara/pull/1244.diff