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] Pull request title based on files diff #26

Open
AdrielBento opened this issue Mar 16, 2023 · 2 comments
Open

[Feature Request] Pull request title based on files diff #26

AdrielBento opened this issue Mar 16, 2023 · 2 comments

Comments

@AdrielBento
Copy link
Contributor

AdrielBento commented Mar 16, 2023

Context

I know that the purpose of the CLI is to help create commit messages, but it would be nice to have the option to suggest pull request titles based on differences in modified files.

In this example, the user should copy the suggested title, I don't think there's a simple way to automate this.

Example

➜ opencommit --pull-request
┌  open-commit
│
◇  1 staged files:
  example-repo/test.js
│
◇  📝 Commit message generated
│
└  Commit message:
——————————————————
* feat(test.js): add test file
——————————————————

│
◇  Confirm the commit message
│  Yes
│
└  ✔ successfully committed

│
└  [main] * feat(test.js): add test file
 1 files changed, 1 insertions(+), 0 deletions(-)

│
◇  📖  Pull Request title generated
│
└  Pull Request title:
——————————————————
* feat: Create sample test file
——————————————————

│
◇  Do you want to run `git push`?
│  Yes
│
◇  ✔ successfully pushed all commits
@di-sukharev
Copy link
Owner

thats great, i think just generating PR title of git log --oneline and no commit message when you run opencommit --prt is less confusing. WDYT?

@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

2 participants