You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
opt('-h', '--head', help='Head branch (default: auto-detect from parent repo)')(
640
-
flag('-i', '--issue', help='Create an issue instead of a PR')(
641
-
flag('-n', '--dry-run', help='Show what would be done without creating')(
642
-
opt('-r', '--repo', help='Repository (owner/repo format, default: auto-detect)')(
643
-
opt('-y', '--yes', count=True, default=0, help='Skip prompt: once = create then view, twice = create silently (default: open web editor during creation)')(
644
-
create
645
-
)
646
-
)
647
-
)
648
-
)
649
-
)
650
-
)
651
-
)
652
-
)
672
+
@cli.command(name='create', help='Create PR/Issue (default: web editor; use -y for API mode)')
673
+
@opt('-y', '--yes', count=True, default=0, help='Skip web editor: -y = create via API then view, -yy = create silently (default: interactive web editor)')
674
+
@opt('-r', '--repo', help='Repository (owner/repo format, default: auto-detect)')
675
+
@flag('-n', '--dry-run', help='Show what would be done without creating')
676
+
@flag('-i', '--issue', help='Create an issue instead of a PR')
677
+
@opt('-h', '--head', help='Head branch (default: auto-detect from parent repo)')
678
+
@flag('-d', '--draft', help='Create as draft PR (requires -y; incompatible with web editor)')
help='Output format (default: auto - img for images, url for others)')(
107
-
opt('-a', '--alt', help='Alt text for markdown/img format')(
108
-
upload
109
-
)
110
-
)
111
-
)
112
-
)
113
-
)
102
+
103
+
@cli.command()
104
+
@opt('-a', '--alt', help='Alt text for markdown/img format')
105
+
@opt('-f', '--format', type=Choice(['url', 'markdown', 'img', 'auto']), default='auto', help='Output format (default: auto - img for images, url for others)')
106
+
@opt('-b', '--branch', default='assets', help='Branch name in gist (default: assets)')
0 commit comments