Skip to content

Commit 56e0ee3

Browse files
committed
chore: rename lts to sla because... it's really sla
1 parent 4a17706 commit 56e0ee3

File tree

15 files changed

+11
-11
lines changed

15 files changed

+11
-11
lines changed

config/release.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"name": "algolia-bot",
2323
"email": "[email protected]"
2424
},
25-
"lts": {
25+
"sla": {
2626
"csharp": {
2727
"6.1.17": {
2828
"start": "2024-01-01",

scripts/cli/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { startTestServer } from '../cts/testServer';
99
import { formatter } from '../formatter.js';
1010
import { generate } from '../generate.js';
1111
import { playground } from '../playground.js';
12-
import { createReleasePR, updateLTS } from '../release/createReleasePR.js';
12+
import { createReleasePR, updateSLA } from '../release/createReleasePR.js';
1313
import type { Versions } from '../release/types.js';
1414
import { snippetsGenerateMany } from '../snippets/generate.js';
1515
import type { Language } from '../types.js';
@@ -208,7 +208,7 @@ program
208208
setVerbose(Boolean(verbose));
209209

210210
if (generateGraph) {
211-
await updateLTS({} as Versions, true);
211+
await updateSLA({} as Versions, true);
212212

213213
return;
214214
}

scripts/release/createReleasePR.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -393,16 +393,16 @@ async function prepareGitEnvironment(): Promise<void> {
393393
await run('git pull origin $(git branch --show-current)');
394394
}
395395

396-
// updates the release.config.json file for the lts field, which contains a release history of start and end date support
396+
// updates the release.config.json file for the sla field, which contains a release history of start and end date support
397397
// inspired by node: https://github.com/nodejs/Release/blob/main/schedule.json, following https://github.com/nodejs/release#release-schedule, leveraging https://github.com/nodejs/lts-schedule
398-
export async function updateLTS(versions: Versions, graphOnly?: boolean): Promise<void> {
398+
export async function updateSLA(versions: Versions, graphOnly?: boolean): Promise<void> {
399399
const start = new Date();
400400
const end = new Date(new Date().setMonth(new Date().getMonth() + 24));
401401

402402
let queryStart = start;
403403
let queryEnd = end;
404404

405-
for (const [lang, supportedVersions] of Object.entries(fullReleaseConfig.lts)) {
405+
for (const [lang, supportedVersions] of Object.entries(fullReleaseConfig.sla)) {
406406
if (!graphOnly) {
407407
const next = versions[lang].next;
408408
const current = versions[lang].current;
@@ -425,8 +425,8 @@ export async function updateLTS(versions: Versions, graphOnly?: boolean): Promis
425425
// patch because we support SLA at minor level
426426
if (versions[lang].releaseType !== 'major' && currentMinor[1] === nextMinor[1]) {
427427
delete supportedVersions[current];
428-
// if it's a major or not the same minor, it means we release a new latest versions, so the current lts go
429-
// in maintenance mode
428+
// if it's a major or not the same minor, it means we release a new latest versions, so the
429+
// current SLA goes in maintenance mode
430430
} else {
431431
delete supportedVersions[current].lts;
432432

@@ -472,7 +472,7 @@ export async function updateLTS(versions: Versions, graphOnly?: boolean): Promis
472472
lts.create({
473473
queryStart,
474474
queryEnd,
475-
png: toAbsolutePath(`website/static/img/${lang}-lts.png`),
475+
png: toAbsolutePath(`website/static/img/${lang}-sla.png`),
476476
data: supportedVersions,
477477
projectName: '',
478478
});
@@ -507,7 +507,7 @@ export async function createReleasePR({
507507
major,
508508
});
509509

510-
await updateLTS(versions, false);
510+
await updateSLA(versions, false);
511511

512512
const versionChanges = getVersionChangesText(versions);
513513

website/src/components/SLAMapping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function SLAMapping() {
1010
{languagesTabValues.map((languageTabValues) => (
1111
<div>
1212
<h2>{languageTabValues.label}</h2>
13-
<img src={useBaseUrl(`/img/${languageTabValues.value}-lts.png`)} />
13+
<img src={useBaseUrl(`/img/${languageTabValues.value}-sla.png`)} />
1414
</div>
1515
))}
1616
</>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)