diff --git a/docs/source/mr/reopen.md b/docs/source/mr/reopen.md index 424f11b32531b62f8151575137dec427d5a9649e..ae089e016a6bf123f418cc39a1145a6c1cb5ab74 100644 --- a/docs/source/mr/reopen.md +++ b/docs/source/mr/reopen.md @@ -26,14 +26,14 @@ open ## Examples ```console -Reopen merge request 123 -- glab mr reopen 123 +# Reopen merge request 123 +$ glab mr reopen 123 -Reopen merge requests 123, 456, and 789 -- glab mr reopen 123 456 789 +# Reopen merge requests 123, 456, and 789 +$ glab mr reopen 123 456 789 -Reopen merge requests from branches branch-1 and branch-2 -- glab mr reopen branch-1 branch-2 +# Reopen merge requests from branches branch-1 and branch-2 +$ glab mr reopen branch-1 branch-2 ``` diff --git a/docs/source/mr/revoke.md b/docs/source/mr/revoke.md index 6dca0a926288d9fabf54909c6618a3cdba412e80..16a0b9d612934fc84dc7a037342e2084694c69ee 100644 --- a/docs/source/mr/revoke.md +++ b/docs/source/mr/revoke.md @@ -26,15 +26,15 @@ unapprove ## Examples ```console -Revoke approval on a merge request -- glab mr revoke 123 -- glab mr unapprove 123 -- glab mr revoke branch - -Revoke approval on the currently checked out branch -- glab mr revoke -Revoke approval on merge request 123 on branch 456 -- glab mr revoke 123 branch 456 +# Revoke approval on a merge request +$ glab mr revoke 123 +$ glab mr unapprove 123 +$ glab mr revoke branch + +# Revoke approval on the currently checked out branch +$ glab mr revoke +# Revoke approval on merge request 123 on branch 456 +$ glab mr revoke 123 branch 456 ``` diff --git a/docs/source/mr/subscribe.md b/docs/source/mr/subscribe.md index 2e5b0a36227d121f712606fcec0f3de9733a14ce..dbf63e3aee3256d63e7d786f4861185220926d82 100644 --- a/docs/source/mr/subscribe.md +++ b/docs/source/mr/subscribe.md @@ -26,13 +26,13 @@ sub ## Examples ```console -Subscribe to a merge request -- glab mr subscribe 123 -- glab mr sub 123 -- glab mr subscribe branch +# Subscribe to a merge request +$ glab mr subscribe 123 +$ glab mr sub 123 +$ glab mr subscribe branch -Subscribe to multiple merge requests -- glab mr subscribe 123 branch +# Subscribe to multiple merge requests +$ glab mr subscribe 123 branch ``` diff --git a/docs/source/mr/unsubscribe.md b/docs/source/mr/unsubscribe.md index 6c58bc5b1e3dac265a03f84481e43514133a1483..0fa856e3892b66a672345cb62d9c6b0141a56fc8 100644 --- a/docs/source/mr/unsubscribe.md +++ b/docs/source/mr/unsubscribe.md @@ -26,13 +26,13 @@ unsub ## Examples ```console -Unsubscribe from a merge request -- glab mr unsubscribe 123 -- glab mr unsub 123 -- glab mr unsubscribe branch +# Unsubscribe from a merge request +$ glab mr unsubscribe 123 +$ glab mr unsub 123 +$ glab mr unsubscribe branch -Unsubscribe from multiple merge requests -- glab mr unsubscribe 123 branch +# Unsubscribe from multiple merge requests +$ glab mr unsubscribe 123 branch ``` diff --git a/docs/source/mr/update.md b/docs/source/mr/update.md index c366e0ec0a8a63001a1d3ad9ded7bc80472e1a0d..dd0b1907d3c665c594085b84d779bc2be1edc943 100644 --- a/docs/source/mr/update.md +++ b/docs/source/mr/update.md @@ -20,17 +20,17 @@ glab mr update [ | ] [flags] ## Examples ```console -Mark a merge request as ready -- glab mr update 23 --ready +# Mark a merge request as ready +$ glab mr update 23 --ready -Mark a merge request as draft -- glab mr update 23 --draft +# Mark a merge request as draft +$ glab mr update 23 --draft -Updates the merge request for the current branch -- glab mr update --draft +# Updates the merge request for the current branch +$ glab mr update --draft -Update merge request with commit information -- glab mr update 23 --fill --fill-commit-body --yes +# Update merge request with commit information +$ glab mr update 23 --fill --fill-commit-body --yes ``` diff --git a/internal/commands/mr/reopen/mr_reopen.go b/internal/commands/mr/reopen/mr_reopen.go index 76d23871826b41218642143509f6fffde31d29d3..dc9b99e66450e239b9b8e9e2b65c920b316229cb 100644 --- a/internal/commands/mr/reopen/mr_reopen.go +++ b/internal/commands/mr/reopen/mr_reopen.go @@ -19,14 +19,14 @@ func NewCmdReopen(f cmdutils.Factory) *cobra.Command { Use: "reopen [... | ...]", Short: `Reopen a merge request.`, Example: heredoc.Doc(` - Reopen merge request 123 - - glab mr reopen 123 + # Reopen merge request 123 + $ glab mr reopen 123 - Reopen merge requests 123, 456, and 789 - - glab mr reopen 123 456 789 + # Reopen merge requests 123, 456, and 789 + $ glab mr reopen 123 456 789 - Reopen merge requests from branches branch-1 and branch-2 - - glab mr reopen branch-1 branch-2 + # Reopen merge requests from branches branch-1 and branch-2 + $ glab mr reopen branch-1 branch-2 `), Aliases: []string{"open"}, Annotations: map[string]string{ diff --git a/internal/commands/mr/revoke/mr_revoke.go b/internal/commands/mr/revoke/mr_revoke.go index ed63f495faa73295a2738e457237548fd46ca718..fa366ed7bbbcd6bc92ac390c9dfa8a6a0c426817 100644 --- a/internal/commands/mr/revoke/mr_revoke.go +++ b/internal/commands/mr/revoke/mr_revoke.go @@ -19,15 +19,15 @@ func NewCmdRevoke(f cmdutils.Factory) *cobra.Command { Long: ``, Aliases: []string{"unapprove"}, Example: heredoc.Doc(` - Revoke approval on a merge request - - glab mr revoke 123 - - glab mr unapprove 123 - - glab mr revoke branch + # Revoke approval on a merge request + $ glab mr revoke 123 + $ glab mr unapprove 123 + $ glab mr revoke branch - Revoke approval on the currently checked out branch - - glab mr revoke - Revoke approval on merge request 123 on branch 456 - - glab mr revoke 123 branch 456 + # Revoke approval on the currently checked out branch + $ glab mr revoke + # Revoke approval on merge request 123 on branch 456 + $ glab mr revoke 123 branch 456 `), Annotations: map[string]string{ mcpannotations.Destructive: "true", diff --git a/internal/commands/mr/subscribe/mr_subscribe.go b/internal/commands/mr/subscribe/mr_subscribe.go index 68c08c66e7b923bbc05cae4277a57c30b6a42d19..ff4e3d180615cb6941e896aa6e0f6c6a0b67c527 100644 --- a/internal/commands/mr/subscribe/mr_subscribe.go +++ b/internal/commands/mr/subscribe/mr_subscribe.go @@ -29,13 +29,13 @@ func NewCmdSubscribe(f cmdutils.Factory) *cobra.Command { Long: ``, Aliases: []string{"sub"}, Example: heredoc.Doc(` - Subscribe to a merge request - - glab mr subscribe 123 - - glab mr sub 123 - - glab mr subscribe branch + # Subscribe to a merge request + $ glab mr subscribe 123 + $ glab mr sub 123 + $ glab mr subscribe branch - Subscribe to multiple merge requests - - glab mr subscribe 123 branch + # Subscribe to multiple merge requests + $ glab mr subscribe 123 branch `), Annotations: map[string]string{ mcpannotations.Destructive: "true", diff --git a/internal/commands/mr/unsubscribe/mr_unsubscribe.go b/internal/commands/mr/unsubscribe/mr_unsubscribe.go index 8415ac0efe17531596052997baa0e45d8aa213a2..bdebfd990d07be12be38cb825c2e4c416c1da8aa 100644 --- a/internal/commands/mr/unsubscribe/mr_unsubscribe.go +++ b/internal/commands/mr/unsubscribe/mr_unsubscribe.go @@ -29,13 +29,13 @@ func NewCmdUnsubscribe(f cmdutils.Factory) *cobra.Command { Long: ``, Aliases: []string{"unsub"}, Example: heredoc.Doc(` - Unsubscribe from a merge request - - glab mr unsubscribe 123 - - glab mr unsub 123 - - glab mr unsubscribe branch + # Unsubscribe from a merge request + $ glab mr unsubscribe 123 + $ glab mr unsub 123 + $ glab mr unsubscribe branch - Unsubscribe from multiple merge requests - - glab mr unsubscribe 123 branch + # Unsubscribe from multiple merge requests + $ glab mr unsubscribe 123 branch `), Annotations: map[string]string{ mcpannotations.Destructive: "true", diff --git a/internal/commands/mr/update/mr_update.go b/internal/commands/mr/update/mr_update.go index c87547f56d69a6bb7d308e847aa2f2daef3128fc..7a66ed44d6a676815df3ab8de7e8d2ab17ab4596 100644 --- a/internal/commands/mr/update/mr_update.go +++ b/internal/commands/mr/update/mr_update.go @@ -24,17 +24,17 @@ func NewCmdUpdate(f cmdutils.Factory) *cobra.Command { Short: `Update a merge request.`, Long: ``, Example: heredoc.Doc(` - Mark a merge request as ready - - glab mr update 23 --ready + # Mark a merge request as ready + $ glab mr update 23 --ready - Mark a merge request as draft - - glab mr update 23 --draft + # Mark a merge request as draft + $ glab mr update 23 --draft - Updates the merge request for the current branch - - glab mr update --draft + # Updates the merge request for the current branch + $ glab mr update --draft - Update merge request with commit information - - glab mr update 23 --fill --fill-commit-body --yes + # Update merge request with commit information + $ glab mr update 23 --fill --fill-commit-body --yes `), Args: cobra.MaximumNArgs(1), Annotations: map[string]string{