-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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 message when an invalid assignee is used in pr create
#3224
Comments
Hi, could you link us to the exact code that uses GitHub CLI which results in the error you're seeing? I'm looking at this workflow file but I can't see where GitHub CLI is being used. Thank you |
@mislav about the
I look forward to your reply, I think |
@yi-Xu-0100 Thanks! I see now that you've used this flag for pr create: This won't work, as the bot user Perhaps we need a better error message in this case. |
@mislav Thanks, I think I know how to modify it. If you don’t need to track this issue, just close it without telling me. 😊 |
pr create
This comment has been minimized.
This comment has been minimized.
@mislav I have a little confused about the above test, in which I change the config username before using |
No, GitHub CLI does not respect git's When GitHub CLI creates an object, for example a new pull request, that object will be owned by whoever owns the GITHUB_TOKEN. In the case of |
@mislav Thank you very much for your detailed explanation! |
Describe the bug
GraphQL error: Could not resolve to a User with the login of 'github-actions[bot]'.
Steps to reproduce the behavior
I try to use the actions to make a PR. But I don' t know how to set the git user.
Expected vs actual behavior
Create the pr successfully.
Logs
https://github.com/yi-Xu-0100/test/runs/2106162302 Use the different user, But it also got the same error.
The text was updated successfully, but these errors were encountered: