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

Improve the error messages #415

Open
korthout opened this issue Mar 1, 2024 · 0 comments
Open

Improve the error messages #415

korthout opened this issue Mar 1, 2024 · 0 comments
Labels
enhancement New feature or request prio: next Planning to work on this issue next

Comments

@korthout
Copy link
Owner

korthout commented Mar 1, 2024

Is your feature request related to a problem? Please describe.
Most comments by the action for errors are unclear, unhelpful, and appear to come from nowhere.

Example no permission to push to repo:

Git push to origin failed for case5-backport-target with exitcode 1

Describe the solution you'd like
Error messages should be clear about what was attempted, what went wrong, and what can be done to recover. For example:

Backport-action failed to generate a pull request cherry-picking these changes (workflow run). Tried to push branch backport-x-to-y, but not permitted to push to this repo.

You can use a Personal Access Token (PAT) with repo scope as the token input of the actions/checkout-action step to permit pushing to the repo.

Describe alternatives you've considered
..

Additional context
Some other example errors:

Not permitted to create pull request:

Resource not accessible by integration

Unable to cherry-pick

This error is clear about what happened, what went wrong, and how to recover. However, it still appears to come out of nowhere. A link to the workflow run would help.

Backport failed for stable/8.2, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin stable/8.2
git worktree add -d .worktree/backport-16634-to-stable/8.2 origin/stable/8.2
cd .worktree/backport-16634-to-stable/8.2
git switch --create backport-16634-to-stable/8.2
git cherry-pick -x a472372cdb055835682b13515442139655126034 02910366c2d4aff900c41a4dfd8de1f0e926dfae
@korthout korthout added the enhancement New feature or request label Mar 1, 2024
@korthout korthout added the prio: next Planning to work on this issue next label Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request prio: next Planning to work on this issue next
Projects
None yet
Development

No branches or pull requests

1 participant