opencommit icon indicating copy to clipboard operation
opencommit copied to clipboard

[FEATURE REQUEST] `push` automatically with a config FORCE_PUSH

Open josephtole opened this issue 2 years ago • 5 comments

  • I do not want to be asked to push commits and do not want the commits pushed by oc.
    • Alternatively, some people may want the option to automatically push commits without being asked.
  • Some people, not me, but some people may want the commit message used automatically without confirmation.

These all seem like great things to add as options IMHO.

josephtole avatar Mar 15 '23 15:03 josephtole

@jetole thanks for the suggestion, do you want to make a PR?

di-sukharev avatar Mar 16 '23 14:03 di-sukharev

  • I don't have the time and have not used ts in years but if I have the time I might.
  • If someone has the time and thinks this is a reasonable request then I would be greatful for the changes.
  • I am not sure if the title change is accurate. While I do propose a force_push option, I am, primarily and for myself, asking for a no push and no prompt in that I won't be asked and no push will be done. I am proposing three separate options:
    • No prompt, no push
    • No prompt, push
    • Comment w/o prompt

josephtole avatar Mar 17 '23 15:03 josephtole

Maybe...

  • Bool for push: If true than pushes are enabled and if false they are not (configurable bool)
  • Bool to prompt for push: If true than prompt to push and if false than push w/o prompt.
  • Bool to prompt for comment: If true, ask if the comment is acceptable and if false than use comment w/o user verification.

josephtole avatar Mar 17 '23 15:03 josephtole

Yeah settings for push prompt would be nice.

Also there is one more thing. As default behavior oc should recognize if branch have upstream, and ask for push only when the upstream is set.

hrasekj avatar Apr 06 '23 10:04 hrasekj

Stale issue message

github-actions[bot] avatar May 16 '23 21:05 github-actions[bot]