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

Scoped commits #27

Open
johan-lejdung opened this issue Oct 21, 2021 · 8 comments
Open

Scoped commits #27

johan-lejdung opened this issue Oct 21, 2021 · 8 comments
Labels
enhancement New feature or request

Comments

@johan-lejdung
Copy link

Hi,

We were trying to use this Action but we normally scope our commits, so the messages look like this:

  • fix(xxx): did something
  • chore(xxx): did something

Rather than:

  • fix: did something
  • chore: did something

We noticed that this action didn't properly tag PR's that were using the scoped message style. Any plans to support it or are we using it incorrectly?

@bcoe
Copy link
Owner

bcoe commented Oct 25, 2021

Hello @johan-lejdung, would love to have you use the action 😄

Could you provide an example of this not working with scoped commits? I've tested with scoped commits, I'm wondering if something else might be biting you.

bcoe/test-generated-release-notes#10

@johan-lejdung
Copy link
Author

Hi,

Maybe we've misunderstood the action. We thought it tagged a PR based on the commit messages, I didn't realise that the PR title also had to follow Conventional Commits.

If there any way to get it to work on Commits rather than PR?

@bcoe
Copy link
Owner

bcoe commented Oct 27, 2021

@johan-lejdung we could certainly make it work based on commits too, my only question would be how the behavior should work with multiple commits?

@johan-lejdung
Copy link
Author

I've thought about that as well. I think for our use case the highest level commit would be responsible for tagging the PR.

Eg:
feat: xxx
fix: xxx
=>
Feature

chore: xxx
fix: breaking xxx
=>
Breaking fix

Ect... 🤓

Does that make sense?

@bcoe bcoe added the enhancement New feature or request label Oct 29, 2021
@bcoe
Copy link
Owner

bcoe commented Oct 29, 2021

@johan-lejdung seems like a reasonable approach to me.

I would happily take a patch for this, if you're interested. Perhaps we could fallback to the commits if and only if the title isn't a conventional commit?

@johan-lejdung
Copy link
Author

Much appreciated!

That sounds like an excellent idea 🙂

@johan-lejdung
Copy link
Author

Will you update this thread once it's released? 🙏

@vincentchalamon
Copy link

I can confirm chore(xxx): did something works like a charm :-)

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

No branches or pull requests

3 participants