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/commit template #1422

Conversation

selfdocumentingcode
Copy link
Contributor

Hello!

I'm back with a new (and separate) PR for the commit template feature I developed a while ago. I hope it's still welcomed.

The feature can be described as follows:

  • Adds a new commit_template property to use for "fake" PRs in HYBRID and COMMIT modes.
    In this version, if no commit_template is provided it falls back to using pr_template.
    I think in a future version it should become mandatory when using the action in HYBRID or COMMIT modes.

  • Adds an optional mode property for category which makes it possible to define a category that only applies to either real PRs or fake PRs.
    By default it's in HYBRID mode which makes it apply to both types of PRs just like before.

I did my best to keep it backwards compatible, but there might be some issues with cached configurations. In the local tests, the way the configuration is loaded and prioritized works a bit differently than it does in "prod" from what I observed, so it's hard to say if it's 100% backwards compatible.

Add information about category.mode and commit_pr inputs.
Add section for commit_pr template placeholders.
@mikepenz
Copy link
Owner

Thank you so much for the PR.

Given the size it likely will take me a bit to review it in depth.

@mikepenz
Copy link
Owner

merged here: #1427

@mikepenz mikepenz closed this Jan 31, 2025
@mikepenz
Copy link
Owner

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

Successfully merging this pull request may close these issues.

2 participants