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

feat(scripts): consider specs commits for versioning #523

Merged
merged 2 commits into from
May 20, 2022

Conversation

shortcuts
Copy link
Member

@shortcuts shortcuts commented May 20, 2022

🧭 What and Why

🎟 JIRA Ticket: https://algolia.atlassian.net/browse/APIC-493

Changes included:

specs commit are currently considered as unknown-language-scope, while they should bump all languages.

  • Add specs to the conditions when detecting a commit scope/language
  • Add tests for it

🧪 Test

CI :D

@shortcuts shortcuts requested a review from a team May 20, 2022 07:42
@shortcuts shortcuts self-assigned this May 20, 2022
@shortcuts shortcuts requested review from eunjae-lee and millotp and removed request for a team May 20, 2022 07:42
@netlify
Copy link

netlify bot commented May 20, 2022

Deploy Preview for api-clients-automation canceled.

Name Link
🔨 Latest commit 8bb2039
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/628765ccd4c4290008496ea5

@algolia-bot
Copy link
Collaborator

algolia-bot commented May 20, 2022

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the main branch.
You can still access the code generated on main via this commit.

@@ -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'];
Copy link
Collaborator

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 ?

Copy link
Member Author

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Seems correct 8bb2039

@shortcuts shortcuts requested a review from millotp May 20, 2022 09:57
Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

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

nice

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.

3 participants