github.com/zaquestion/lab@v0.25.1/docs/lab_mr_discussion.md (about) 1 ## lab mr discussion 2 3 Start a discussion on an MR on GitLab 4 5 ``` 6 lab mr discussion [remote] [<MR ID or branch>] [flags] 7 ``` 8 9 ### Examples 10 11 ``` 12 lab mr discussion 13 lab mr discussion origin 14 lab mr discussion my_remote -m "discussion comment" 15 lab mr discussion upstream -F my_comment.txt 16 lab mr discussion --commit abcdef123456 17 lab mr discussion my-topic-branch 18 lab mr discussion origin 123 19 lab mr discussion origin my-topic-branch 20 lab mr discussion --commit abcdef123456 --position=main.c:+100,100 21 ``` 22 23 ### Options 24 25 ``` 26 -c, --commit string start a thread on a commit 27 -F, --file string use the given file as the message 28 -h, --help help for discussion 29 -m, --message strings use the given <msg>; multiple -m are concatenated as separate paragraphs 30 --position string start a thread on a specific line of the diff 31 argument must be of the form <file>":"["+" | "-" | " "]<old_line>","<new_line> 32 that is, the file name, followed by the line type - one of "+" (added line), 33 "-" (deleted line) or a space character (context line) - followed by 34 the line number in the old version of the file, a ",", and finally 35 the line number in the new version of the file. If the line type is "+", then 36 <old_line> is ignored. If the line type is "-", then <new_line> is ignored. 37 38 Here's an example diff that explains how to determine the old/new line numbers: 39 40 --- a/README.md old new 41 +++ b/README.md 42 @@ -100,3 +100,4 @@ 43 pre-context line 100 100 44 -deleted line 101 101 45 +added line 1 101 102 46 +added line 2 101 103 47 post-context line 102 104 48 49 # Comment on "deleted line": 50 lab mr discussion --commit=commit-id --position=README.md:-101,101 51 # Comment on "added line 2": 52 lab mr discussion --commit=commit-id --position=README.md:+101,103 53 # Comment on the "post-context line": 54 lab mr discussion --commit=commit-id --position=README.md:\ 102,104 55 ``` 56 57 ### Options inherited from parent commands 58 59 ``` 60 --debug Enable debug logging level 61 --no-pager Do not pipe output into a pager 62 --quiet Turn off any sort of logging. Only command output is printed 63 ``` 64 65 ### SEE ALSO 66 67 * [lab mr](lab_mr.md) - Describe, list, and create merge requests 68 69 ###### Auto generated by spf13/cobra on 27-Jun-2022