Skip to content
Snippets Groups Projects
  • Caleb Connolly's avatar
    c7243cd8
    add a wrapper script using ttq with git push-options (MR 2) · c7243cd8
    Caleb Connolly authored
    
    It's possible to push to a branch and open an MR with a single command
    on GitLab with
    
      git push -o merge_request.create
    
    One can also adjust the MR title and description with
    
      merge_request.title="beep"
      merge_request.description="boop"
    
    However, it isn't possible to include newline literals in git push
    options. As a workaround GitLab will automatically convert all '\n'
    literals into newlines.
    
    To enable using this with TTQ, add a simple wrapper script which runs
    TTQ through awk to convert all newline literals into '\n'.
    
    Signed-off-by: default avatarCaleb Connolly <caleb.connolly@linaro.org>
    add a wrapper script using ttq with git push-options (MR 2)
    Caleb Connolly authored
    
    It's possible to push to a branch and open an MR with a single command
    on GitLab with
    
      git push -o merge_request.create
    
    One can also adjust the MR title and description with
    
      merge_request.title="beep"
      merge_request.description="boop"
    
    However, it isn't possible to include newline literals in git push
    options. As a workaround GitLab will automatically convert all '\n'
    literals into newlines.
    
    To enable using this with TTQ, add a simple wrapper script which runs
    TTQ through awk to convert all newline literals into '\n'.
    
    Signed-off-by: default avatarCaleb Connolly <caleb.connolly@linaro.org>
ttqs 583 B