Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] push automatically with a config FORCE_PUSH #24

Open
josephtole opened this issue Mar 15, 2023 · 5 comments
Open

[FEATURE REQUEST] push automatically with a config FORCE_PUSH #24

josephtole opened this issue Mar 15, 2023 · 5 comments

Comments

@josephtole
Copy link

  • 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.

@di-sukharev di-sukharev changed the title [FEATURE REQUEST] More options [FEATURE REQUEST] push automatically with a config FORCE_PUSH Mar 16, 2023
@di-sukharev
Copy link
Owner

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

@josephtole
Copy link
Author

  • 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
Copy link
Author

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.

@hrasekj
Copy link

hrasekj commented Apr 6, 2023

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.

@github-actions
Copy link

Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants