di-sukharev / di-sukharev/opencommit

Auto-confirm commit message and push via CLI argument

Open
#226 2 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
7.5k
Forks
445
Avg merge
18m
Merged PRs (30d)
2

Description

First of all, very cool project! Question for you:

Is there an argument (or arguments) that can be passed (e.g. oco --confirm yes --push yes) to enable the oco command to complete a commit and push without user input? Would like to use this as part of a custom CI/CD script but need to automate these steps first.

Thanks!

https://github.com/di-sukharev/opencommit/blob/916ddf02d1fcbf6082362e153262e177e39b743b/src/commands/commit.ts#L66C5-L66C5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/commands/commit.ts around line 66, where the commit flow is referenced, and trace how confirmation and pushing currently wait for user input. Check the CLI argument handling and existing tests, if present. Done means CI/CD can invoke oco with arguments that complete both commit confirmation and push without interactive input.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, typescript
Domain
cli, devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.