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

ci: create semantic pr title GHA #3783

Merged
merged 1 commit into from
Nov 17, 2022
Merged

ci: create semantic pr title GHA #3783

merged 1 commit into from
Nov 17, 2022

Conversation

michael-siek
Copy link
Member

<< Describe the changes >>

Closes issue:

@michael-siek michael-siek requested a review from a team as a code owner November 15, 2022 02:21
]
console.log('Validating PR title: "%s"', TITLE)
for (const type of types) {
if (TITLE.startsWith(type)) {
Copy link
Contributor

@straker straker Nov 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to see this improved so it doesn't generate false positives and negatives. Each of the following titles would pass this check even though they don't follow conventional commit specification:

  • fixture tests
  • fix the tests
  • circle ci failures
  • fix
  • fix(build) update build failures
  • fix(build):update build failures

This also does not allow for case insensitivity, so FIX should be allowed as a type

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not make this more complicated than it needs to be. This action is copypasta from dozens of other repos. We've never had an issue with it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WilcoFiers a 👎 without explanation is meaningless.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm with Steve on this. I'd rather have no action than one that gives me undeserved confidence. We shouldn't be copy/pasting code across repos like this either. We easily can, and should do better.

Is there any reason for us not to use this?
https://github.com/marketplace/actions/semantic-pull-request

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather have no action than one that gives me undeserved confidence.

This would flag PRs that are clearly wrong. It'd also give contributors the heads up that something needs to change. The rest should be left up to the human brain IMO.

We shouldn't be copy/pasting code across repos like this either.

A little copying is better than a little dependency. Also there's nothing stopping us from making this a public action.

Is there any reason for us not to use this?

Nope, I'd be fine with that. This was setup before that existed and has worked well for us (and other teams) for the past several months.


You and Steve seem to do a lot of gatekeeping in this repository. Michael is simply trying to help out by taking care of some low-hanging fruit. This seems like a pointless way of using your time.

@WilcoFiers WilcoFiers merged commit d5c3b91 into develop Nov 17, 2022
@WilcoFiers WilcoFiers deleted the michael-siek-patch-3 branch November 17, 2022 15:32
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.

4 participants