Skip to content

Conversation

@shortcuts
Copy link
Member

🧭 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

@shortcuts shortcuts requested a review from eunjae-lee April 21, 2022 10:38
@shortcuts shortcuts self-assigned this Apr 21, 2022
@netlify
Copy link

netlify bot commented Apr 21, 2022

Deploy Preview for api-clients-automation canceled.

Name Link
🔨 Latest commit 804a723
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/6261341b42c8050009e9dea3
@algolia-bot
Copy link
Collaborator

algolia-bot commented Apr 21, 2022

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the main branch.


if (isCodeGenCommit) {
const hash = commitMessage
.split(text.commitStartMessage)[1]
Copy link
Collaborator

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 ?

Copy link
Member Author

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:

Copy link
Collaborator

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

Copy link
Collaborator

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

Copy link
Member Author

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

Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants