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

chore: make CI push code to main #369

Merged
merged 2 commits into from
Apr 12, 2022
Merged

chore: make CI push code to main #369

merged 2 commits into from
Apr 12, 2022

Conversation

shortcuts
Copy link
Member

🧭 What and Why

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

Changes included:

Remove the generated/main logic to make the CI push generated code to main as a short term solution. We should iterate on the long term solution once we have time to dedicate to this.

Next step:

GitHub hook to remove generated code on pre-commit

🧪 Test

CI :D

@shortcuts shortcuts requested a review from a team April 11, 2022 16:00
@shortcuts shortcuts self-assigned this Apr 11, 2022
@shortcuts shortcuts requested review from eunjae-lee and damcou and removed request for a team April 11, 2022 16:00
@netlify
Copy link

netlify bot commented Apr 11, 2022

Deploy Preview for api-clients-automation canceled.

Name Link
🔨 Latest commit d5458c7
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/6254534e1aa3700008065e99

@algolia-bot
Copy link
Collaborator

algolia-bot commented Apr 11, 2022

✗ The generated branch has been deleted.

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

@shortcuts shortcuts enabled auto-merge (squash) April 11, 2022 16:02
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.

Is this enough ? the generated/main branch should not exists anymore after this, but you are pushing the generated commit to generatedCodeBranch

@shortcuts
Copy link
Member Author

Is this enough ? the generated/main branch should not exists anymore after this, but you are pushing the generated commit to generatedCodeBranch

Good eyes 👀

console.log(`Checking codegen status on '${baseBranch}'.`);

const nbDiff = await getNbGitDiff({
branch: 'origin/generated/main',
branch: baseBranch,
Copy link
Collaborator

Choose a reason for hiding this comment

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

baseBranch is not very true, it should be currentBranch, but it's not important

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