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

[git propose] Allow passing a --title and --body #3207

Open
ruudk opened this issue Mar 1, 2024 · 1 comment
Open

[git propose] Allow passing a --title and --body #3207

ruudk opened this issue Mar 1, 2024 · 1 comment

Comments

@ruudk
Copy link
Contributor

ruudk commented Mar 1, 2024

I'd like to be able to pass a title and body when proposing a change (creating a pull request).

GitHub supports this, by sending the following query parameters: ?expand=1&title=title&body=body.

I'd like to use this in my custom script that automatically finds a title (using AI) and a body (by taking all commit messages).

It would be great if the body can also be passed via stdin like gh cli does:

echo "long\nbody" | gh pr create --web --title "$TITLE" --body-file -
@ruudk
Copy link
Contributor Author

ruudk commented Mar 1, 2024

When you create a PR on GitHub and there is only 1 commit, GitHub will use the commit title as the title of the PR.

Maybe Git Town can do the same. If there is only 1 commit, then use that as a title. If there are more than 1 commit, ask for a custom title.

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

No branches or pull requests

1 participant