-
Notifications
You must be signed in to change notification settings - Fork 21
chore: make spread codegen commit cleaner #412
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
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 |
|
||
if (isCodeGenCommit) { | ||
const hash = commitMessage | ||
.split(text.commitStartMessage)[1] |
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.
won't that split on spaces by default ?
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.
Sorry I'm not sure to understand, could you elaborate pls? D:
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.
for me this split will juste return generated
because you split on spaces
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 no ok that's a weird use of split ahah, I get it
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.
I split on text.commitStartMessage
which is chore: generated code for commit
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.
I can change it to a regex if you prefer but it seemed easy enough like this
🧭 What and Why
🎟 JIRA Ticket: -
Changes included:
Commits from codegen loses context on other repositories (see algolia/algoliasearch-client-java@80ba40c), this PR aims at providing a link to the commit from the automation repository.
🧪 Test
CI :D