Skip to content

Commit

Permalink
Merge branch 'main' into chore/auto-close-contribution
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored Sep 26, 2024
2 parents 1a3d8b3 + 4c7e4a5 commit 09add23
Show file tree
Hide file tree
Showing 31 changed files with 3,993 additions and 501 deletions.
3,675 changes: 3,675 additions & 0 deletions config/versions.history.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
ignorePatterns: ['**.yml', 'tsconfig.json'],
ignorePatterns: ['**.yml', 'tsconfig.json', 'foo'],

extends: "../.eslintrc.cjs",

Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/codegen/createGitHubReleases.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-console */

import { ensureGitHubToken, getOctokit, OWNER, run, setVerbose, toAbsolutePath } from '../../common';
import { isPreRelease } from '../../release/sla';
import { isPreRelease } from '../../release/versionsHistory';
import type { Language } from '../../types';
import { cloneRepository } from '../utils';

Expand Down
9 changes: 0 additions & 9 deletions scripts/ci/codegen/pushToAlgoliaDoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,6 @@ async function pushToAlgoliaDoc(): Promise<void> {
head: targetBranch,
});

await octokit.issues.createComment({
owner: OWNER,
repo: repository,
issue_number: data.number,
body: [
`[**Preview SLA changes&rarr;**](https://deploy-preview-${data.number}--algolia-docs.netlify.app/doc/libraries/supported-versions/)`,
].join('\n\n'),
});

console.log(`Pull request created on ${OWNER}/${repository}`);
console.log(` > ${data.url}`);
}
Expand Down
10 changes: 5 additions & 5 deletions scripts/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { formatter } from '../formatter.js';
import { generate } from '../generate.js';
import { playground } from '../playground.js';
import { createReleasePR } from '../release/createReleasePR.js';
import { generateSLA } from '../release/sla.js';
import { generateVersionsHistory } from '../release/versionsHistory.js';
import { snippetsGenerateMany } from '../snippets/generate.js';
import { buildSpecs } from '../specs';
import type { Language } from '../types.js';
Expand Down Expand Up @@ -255,13 +255,13 @@ program
undefined,
)
.option('-d, --dry-run', 'does not push anything to GitHub')
.option('-sla, --sla-only', 'only generates the sla policy', false)
.option('-vh, --versions-history', 'only generates the versions-history policy', false)
.option('-b --breaking', 'allow breaking change on the CI', false)
.action(async ({ verbose, releaseType, dryRun, slaOnly, breaking }) => {
.action(async ({ verbose, releaseType, dryRun, versionsHistory, breaking }) => {
setVerbose(Boolean(verbose));

if (slaOnly) {
await generateSLA({});
if (versionsHistory) {
await generateVersionsHistory({});

return;
}
Expand Down
231 changes: 0 additions & 231 deletions scripts/release/__tests__/sla.test.ts

This file was deleted.

Loading

0 comments on commit 09add23

Please sign in to comment.