Skip to content
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

Be transparent about which part of pr create flow failed #1603

Merged
merged 1 commit into from
Sep 1, 2020

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