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

chore: Add PR title validation #169

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Conversation

bgins
Copy link
Contributor

@bgins bgins commented Jun 18, 2024

Review Type Requested (choose one):

  • Glance - superficial check (from domain experts)
  • Logic - thorough check (from everybody doing review)

Summary

This pull request adds a PR title validation GitHub action. The action checks that PR titles use conventional commits from a custom list matching our task types.

The GitHub action also labels PRs based on the task type. The custom_labels give us longer form titles for the labels. (These labels are optional, but seem like a nice bonus feature.)

This PR sets the stage for using conventional commits for semantic versioning. We want to validate before merging to main to determine the new release version.

Task/Issue reference

Implements: #168

@bgins bgins force-pushed the bgins/chore-add-pr-title-validation branch 3 times, most recently from d4ea868 to b5b31b1 Compare June 18, 2024 23:29
- name: PR Conventional Commit Validation
uses: ytanikin/[email protected]
with:
task_types: '["fix","feat","refactor","spike","hotfix","revert","chore","docs","test","build"]'
Copy link
Contributor

@AquiGorka AquiGorka Jun 19, 2024

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We haven't included those in our guide in Notion, but we could. IIRC, we thought ci didn't add much that build doesn't already cover, but perf could be an interesting one to add.

@richardbremner
Copy link
Contributor

@bgins this feels like something we need to socialise so that the team are aware how to write their PR titles

@bgins
Copy link
Contributor Author

bgins commented Jun 20, 2024

@bgins this feels like something we need to socialise so that the team are aware how to write their PR titles

Yes absolutely! I'll give a quick presentation at engineering catchup tomorrow.

@richardbremner
Copy link
Contributor

thanks @bgins !

@github-actions github-actions bot added the chore label Jun 20, 2024
@bgins bgins changed the title chore: Add PR title validation Add PR title validation Jun 20, 2024
@bgins bgins force-pushed the bgins/chore-add-pr-title-validation branch from b5b31b1 to 4cc3ca4 Compare June 20, 2024 17:37
@bgins bgins removed the chore label Jun 20, 2024
@bgins bgins changed the title Add PR title validation chore: Add PR title validation Jun 20, 2024
@github-actions github-actions bot added the chore label Jun 20, 2024
@bgins bgins changed the title chore: Add PR title validation Add PR title validation Jun 20, 2024
@bgins bgins removed the chore label Jun 20, 2024
@bgins bgins changed the title Add PR title validation chore: Add PR title validation Jun 20, 2024
@github-actions github-actions bot added the chore label Jun 20, 2024
@bgins bgins merged commit b3201ab into main Jun 20, 2024
1 of 2 checks passed
@bgins bgins deleted the bgins/chore-add-pr-title-validation branch June 20, 2024 22:12
@bgins bgins self-assigned this Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants