-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Better end user visibility for failures in agit PRs #32965
Comments
I resolve the problems via resync of all git hooks because there are no |
I can reproduce this (or similar) fault locally - lack of collaborator status prevents user from submitting agit PR, which is not forwarded to them:
I in the original text I meant that the error should be made more visible (and descriptive), which I figured is more of a enhancement that an a bug. Some errors - like the lack of collaborator status - are worth forwarding to user in my opinion. |
If I understand correctly , only the "Gitea:" prefixed line is outputed by Gitea. Other lines are from git, which are not controllable |
That's on success though, which could also make use of the highlighted strings like: My point here was that I can submit a PR for this once we agree on the scope - where to put highlighted strings and which errors should be passed down to user (or which should not, whichever is easier). |
However, we cannot modify the git buildin information, such as the error: proc-receive exited abnormally shown in your screenshot. |
Agree to improve these error message. Actually it was even worse long time ago 🤣 .... I have managed to do some improvements (maybe there might be something interesting, FYI: Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" (#23687)). And yes, I still didn't make it good enough at that moment, so there are still a lot of things to do. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, forgive my poor English |
I've looked through (probably) most errors and I think that the Which also led me to discovering: #33013 |
Feature Description
The error messages in agit PRs aren't very visible to the end user. I think that adding an error label for fails would make them pop out more (if one has color enabled). See screenshots for full options.
I encountered this while trying to submit an agit PR to docs, which uncovered a missing UserMsg, which would've been helpful:
gitea/routers/private/hook_proc_receive.go
Lines 31 to 34 in 7553ae1
and I've glanced over it before, so I think having a color before it would be helpful.
Similarly an instruction for setting up branch tracking would be a good improvement - no idea how to set it up though.
Screenshots
Possible options:
The text was updated successfully, but these errors were encountered: