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: add renovate APIC-490 #522

Merged
merged 8 commits into from
May 20, 2022
Merged

chore: add renovate APIC-490 #522

merged 8 commits into from
May 20, 2022

Conversation

millotp
Copy link
Collaborator

@millotp millotp commented May 19, 2022

🧭 What and Why

🎟 JIRA Ticket: APCI-490

Add renovate to our repository, only for dev dependencies, not the clients one.
Basically copy pasted the config from the Crawler, it will open a PR every friday and open 1 PR per deps, then merge into chore/renovateBaseBranch if the CI passes, and then we can review the final PR.

Changes included:

  • Add the renovate script to open PR
  • refacto GITHUB_TOKEN a bit
  • create github actions schedule

🧪 Test

CI

@millotp millotp self-assigned this May 19, 2022
@netlify
Copy link

netlify bot commented May 19, 2022

Deploy Preview for api-clients-automation canceled.

Name Link
🔨 Latest commit 41b2ff8
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/62879c1941daa10008dff2d4

@algolia-bot
Copy link
Collaborator

algolia-bot commented May 19, 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.

owner: OWNER,
title,
body: `Weekly dependencies update.
Contributes to #523
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I will update this issue number once the renovate dashboard is open

Copy link
Member

Choose a reason for hiding this comment

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

I won't open things you can try to guess the next number :D

@millotp millotp marked this pull request as ready for review May 20, 2022 10:33
@millotp millotp requested review from a team, eunjae-lee and shortcuts and removed request for a team May 20, 2022 10:33
Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

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

Love it :D

.github/workflows/renovate.yml Outdated Show resolved Hide resolved
Comment on lines +21 to +22
"prHourlyLimit": 10,
"prConcurrentLimit": 50
Copy link
Member

Choose a reason for hiding this comment

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

our CI will 🔥

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm sure it can handle it 😬

scripts/ci/codegen/spreadGeneration.ts Outdated Show resolved Hide resolved
scripts/common.ts Outdated Show resolved Hide resolved
owner: OWNER,
title,
body: `Weekly dependencies update.
Contributes to #523
Copy link
Member

Choose a reason for hiding this comment

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

I won't open things you can try to guess the next number :D

@millotp millotp requested a review from shortcuts May 20, 2022 12:27
Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

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

last thing sorry

@@ -308,7 +305,7 @@ async function processRelease(): Promise<void> {
)) {
const { tempGitDir } = await cloneRepository({
lang: lang as Language,
githubToken: process.env.GITHUB_TOKEN,
githubToken: GITHUB_TOKEN!,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
githubToken: GITHUB_TOKEN!,
githubToken: GITHUB_TOKEN,

@@ -26,6 +27,7 @@ export const REPO_URL = `https://github.com/${OWNER}/${REPO}`;
export const CI = Boolean(process.env.CI);
export const DOCKER = Boolean(process.env.DOCKER);
export const BUNDLE_WITH_DOC = process.env.BUNDLE_WITH_DOC === 'true';
export const GITHUB_TOKEN = process.env.GITHUB_TOKEN;
Copy link
Member

Choose a reason for hiding this comment

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

We don't need it we can enforce calling ensureGitHubToken everywhere no?

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
export const GITHUB_TOKEN = process.env.GITHUB_TOKEN;
export const GITHUB_TOKEN = ensureGitHubToken();

or maybe?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no because this file is in a lot of other scripts that don't need the token, we want it to throw only when we need it.

Copy link
Member

Choose a reason for hiding this comment

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

ahhh I thought it was the release common make sense

@@ -81,7 +81,7 @@ async function spreadGeneration(): Promise<void> {
for (const lang of langs) {
const { tempGitDir } = await cloneRepository({
lang,
githubToken: process.env.GITHUB_TOKEN,
githubToken: GITHUB_TOKEN!,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
githubToken: GITHUB_TOKEN!,
githubToken: GITHUB_TOKEN,

@millotp millotp requested a review from shortcuts May 20, 2022 13:48
@millotp millotp enabled auto-merge (squash) May 20, 2022 13:48
Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

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

Noice!

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