Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mislav
Copy link
Contributor

@mislav mislav commented Aug 31, 2020

When applying metadata to the new PR such as assignees or reviewers, if the operation fails, an error message would get printed:

failed to create pull request: <API error text>

This was misleading, because the PR did get created; it's just that updating it failed. The new error message is:

https://github.com/OWNER/REPO/pull/123
pull request update failed: <API error text>

The PR URL is printed on stdout and the error message is printed on stderr. In case of any errors, the exit code is still non-zero.

Fixes #1576

When applying metadata to the new PR such as assignees or reviewers, if
the operation fails, an error message would get printed:

    failed to create pull request: <API error text>

This was misleading, because the PR did get created; it's just that
updating it failed. The new error message is:

    https://github.com/OWNER/REPO/pull/123
    pull request update failed: <API error text>

The PR URL is printed on stdout and the error message is printed on
stderr. In case of any errors, the exit code is still non-zero.
@vilmibm vilmibm merged commit 734959c into trunk Sep 1, 2020
@mislav mislav deleted the create-pr-metadata-failure branch September 1, 2020 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shows that pull request creation failed, while it is really created.

2 participants