Maybe I did not understand how, but when I create an issue with berg I have no way of knowing the ID of the newly created issue. This would be very useful IMHO. Just writing the issue id or the issue URL to stdout sounds would be great.
[Feature request] Return issue id after creation #163
Closed
opened 2025年01月09日 09:48:38 +01:00 by nicoco
·
1 comment
nicoco
commented 2025年01月09日 09:48:38 +01:00
Maybe I did not understand how, but when I create an issue with `berg` I have no way of knowing the ID of the newly created issue. This would be very useful IMHO. Just writing the issue id or the issue URL to stdout sounds would be great.
Aviac
commented 2025年09月15日 20:58:44 +02:00
This should now be possible through the structured output, see #227
You can run berg --output-mode json <action> to get json output on stdout. For your use case, you can just combine this with jq to access the desired fields.
Thanks for the issue! Let me know if that is not satisfying enough yet. Closing this for now.
This should now be possible through the structured output, see #227
You can run `berg --output-mode json <action>` to get json output on stdout. For your use case, you can just combine this with `jq` to access the desired fields.
Thanks for the issue! Let me know if that is not satisfying enough yet. Closing this for now.
Aviac
closed this issue 2025年09月15日 20:58:44 +02:00
Sign in to join this conversation.
No Branch/Tag specified
Labels
Clear labels
Something is not working
Contributions are very welcome, get started here
No description
This issue or pull request already exists
Interested in contributing? Get started here.
Need some help
Something is wrong
More information is needed
No description
Related to an upstream repository, already reported there
actions
bug
Something is not working
build
chore
CI
cleanup
CLI
contribution welcome
Contributions are very welcome, get started here
docs
No description
duplicate
This issue or pull request already exists
enhancement
feature
fix
good first issue
Interested in contributing? Get started here.
help wanted
Need some help
invalid
Something is wrong
perf
question
More information is needed
refactor
release
revert
style
test
tracking
No description
UI
upstream
Related to an upstream repository, already reported there
UX
No labels
actions
bug
build
chore
CI
cleanup
CLI
contribution welcome
docs
duplicate
enhancement
feature
fix
good first issue
help wanted
invalid
perf
question
refactor
release
revert
style
test
tracking
UI
upstream
UX
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
Aviac/codeberg-cli#163
Loading...
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?