Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

testing: convert conventional commit PR titles to labels #383

Merged
merged 1 commit into from
May 18, 2022

Conversation

grayside
Copy link
Collaborator

This is part of #360. It lifts conventional commit prefixes from PR titles to labels, where the GitHub release notes can pick up things like breaking changes per the configuration in #382. These labels also help ensure the write labels are on the PRs, avoiding metadata gaps or manual work where the prefixes are used correctly.

@grayside grayside requested a review from a team as a code owner May 17, 2022 23:36
uses: bcoe/conventional-release-labels@v1
with:
type_labels:
feat: 'type: feature request'
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: should we have one for the chore prefix?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The default behavior (if I recall) was to exclude that, and let issues fall into miscellaneous bucket. My thought was to test what happens a bit and refine.

type_labels:
feat: 'type: feature request'
fix: 'type: bug'
breaking: 'semver: major'
Copy link
Contributor

@ace-n ace-n May 18, 2022

Choose a reason for hiding this comment

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

Nit: does this accept the "exclamation mark" notation?

(i.e. feat!(website): move from Flask to Lit)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It should detect this as a breaking change and flag as semver: major

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also: We can use the component in the title if we want, but my next PR will auto-assign component labels based on files changed.

@grayside grayside merged commit 4b890a9 into main May 18, 2022
@grayside grayside deleted the conventional-commit-labels branch May 18, 2022 21:18
@grayside grayside self-assigned this May 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants