-
Notifications
You must be signed in to change notification settings - Fork 81
Change pull request status to NEEDS_WORK instead of resetting approval. #190
base: master
Are you sure you want to change the base?
Conversation
|
Hi @tommywo, thanks for this! Can you remove remove the three irrelevant commits from your PR? |
|
Hi @t-8ch. |
| } | ||
|
|
||
|
|
||
| public String getUserSlug() { |
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.
This seems unused.
| return credentials.getLogin(); | ||
| } | ||
|
|
||
|
|
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.
This PR seems to use two blank lines between functions, while the existing code only uses one.
| } | ||
| } | ||
|
|
||
|
|
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.
Remove this blank line
|
|
||
| put(request, | ||
| json, | ||
| MessageFormat.format(PULL_REQUEST_APPROVAL_POST_ERROR_MESSAGE, pr.repository(), pr.pullRequestId())); |
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 custom error message would be better.
| pr.pullRequestId(), | ||
| credentials.getUserSlug()); | ||
| JsonObject json = new JsonObject(); | ||
| json.put("status","NEEDS_WORK"); |
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.
Needs a space after ,.
|
@tommywo I still have a few minor nit-picks. |
|
@tommywo Thanks! Please squash the commits into one. As approving/un-approving and approving/"needs work" are mutually exclusive I propose to merge the setting into I admit the naming is a little bit unintuitive but we
What do you think? |
|
How about defining |
|
To be honest I would prefer not introduce a deprecation warning and force users to change their working configuration. Should we release a incompatible version 2.0 in the future we could change the setting name. |
|
Reopening to restart tests |
No description provided.