-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat(scripts): consider specs
commits for versioning
#523
Conversation
✅ Deploy Preview for api-clients-automation canceled.
|
✗ The generated branch has been deleted.If the PR has been merged, you can check the generated code on the |
@@ -102,15 +102,17 @@ export function parseCommit(commit: string): Commit { | |||
message = message.slice(message.indexOf(':') + 1).trim(); | |||
type = matchResult[1]; | |||
const lang = matchResult[2] as Language; | |||
// A spec commit should be added to every clients, as it mostly imply a client change. | |||
const allowedLanguages = [...LANGUAGES, 'specs']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not actually lang anymore, but more of a scope, the type above is wrong too, can you rename all of it pls ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes that make sense, especially if we introduce other ones later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems correct 8bb2039
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
🧭 What and Why
🎟 JIRA Ticket: https://algolia.atlassian.net/browse/APIC-493
Changes included:
specs
commit are currently considered asunknown-language-scope
, while they should bump all languages.specs
to the conditions when detecting a commit scope/language🧪 Test
CI :D