Skip to content

fix: skip Permission Mode selector when robot create has sufficient CLI flags#980

Open
rakshityadav1868 wants to merge 1 commit into
goharbor:mainfrom
rakshityadav1868:skip-selector-robot-create
Open

fix: skip Permission Mode selector when robot create has sufficient CLI flags#980
rakshityadav1868 wants to merge 1 commit into
goharbor:mainfrom
rakshityadav1868:skip-selector-robot-create

Conversation

@rakshityadav1868

Copy link
Copy Markdown

fixes #979

Summary

This PR fixes a bug where harbor robot create still opened the interactive Permission Mode selector even when sufficient CLI flags were provided for a non-interactive workflow.

  • Bug fix

Changes

  • Updated getProjectPermissions() to accept the all flag.
  • Added a non-interactive path when --project is provided:
    • If --all-permission is set, automatically assign all project permissions and skip all permission prompts.
    • If --all-permission is not set, skip the Permission Mode selector and go directly to project permission selection.
  • Added handling for system-level robots created with --all-permission.
  • Preserved the existing interactive workflow when required flags are not provided.

Before:

Screen.Recording.2026-06-05.at.12.54.58.PM.mp4

After:

Screen.Recording.2026-06-05.at.12.58.04.PM.mp4

Signed-off-by: Rakshit Yadav <yadavrakshit60@gmail.com>
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.

[bug]: robot create opens Permission Mode selector despite sufficient CLI flags

1 participant