-
-
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
Add new CLI flags to set name and scopes when creating a user with access token #34080
Conversation
After more testing, I think your old approach (using separate flags) is better and clearer. I prefixed these new flags with
Does it look to you? |
I'll be able to check this out later today |
Decided to add two more unit tests to cover using of |
One more thing I thought about. We currently create a user even if the access token-related flags are misused, so we do create a user but end up not creating an access token if they are misused. Should we catch this misuse earlier to avoid this? |
… in case there is anything wrong
Maybe like this ac86171? |
LGTM! Not able to approve since I'm the PR author |
…cess token (go-gitea#34080) Resolves go-gitea#33474. --------- Co-authored-by: wxiaoguang <[email protected]> # Conflicts: # cmd/admin_user_create_test.go # routers/web/user/setting/applications.go
…cess token (go-gitea#34080) Resolves go-gitea#33474. --------- Co-authored-by: wxiaoguang <[email protected]> # Conflicts: # cmd/admin_user_create_test.go # routers/web/user/setting/applications.go
…cess token (go-gitea#34080) Resolves go-gitea#33474. --------- Co-authored-by: wxiaoguang <[email protected]> # Conflicts: # cmd/admin_user_create_test.go # routers/web/user/setting/applications.go
…cess token (#34080) (#34103) Backport #34080 Co-authored-by: Kemal Zebari <[email protected]>
* giteaofficial/main: Refactor Branch struct in package modules/git (go-gitea#33980) Support creating relative link to raw path in markdown (go-gitea#34105) Add new CLI flags to set name and scopes when creating a user with access token (go-gitea#34080) Do not show 500 error when default branch doesn't exist (go-gitea#34096) Return default avatar url when user id is zero rather than updating database (go-gitea#34094) [skip ci] Updated translations via Crowdin Fix return bug (go-gitea#34093) Move ParseCommitWithSSHSignature to service layer (go-gitea#34087) fix(i18n): clarify ownership in password change error messages (go-gitea#34092) Enable addtional linters (go-gitea#34085) Add flat-square action badge style (go-gitea#34062) Fix some UI bugs and clean up unused tests (go-gitea#34088)
Resolves #33474.