From 26f76d879aeb35be6e59a4d36326c69458b4c608 Mon Sep 17 00:00:00 2001 From: Wei Dong <40835867+dw511214992@users.noreply.github.com> Date: Thu, 13 Jan 2022 15:32:01 +0800 Subject: [PATCH] add comment in ci.yaml (#2544) --- tools/js-sdk-release-tools/package.json | 2 +- tools/js-sdk-release-tools/src/utils/changeCiYaml.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/js-sdk-release-tools/package.json b/tools/js-sdk-release-tools/package.json index e4fae166f..13a99cb65 100644 --- a/tools/js-sdk-release-tools/package.json +++ b/tools/js-sdk-release-tools/package.json @@ -1,6 +1,6 @@ { "name": "@azure-tools/js-sdk-release-tools", - "version": "1.0.8", + "version": "1.0.9", "description": "", "scripts": { "start": "node dist/changelogToolCli.js", diff --git a/tools/js-sdk-release-tools/src/utils/changeCiYaml.ts b/tools/js-sdk-release-tools/src/utils/changeCiYaml.ts index affa1ba3d..bd664de67 100644 --- a/tools/js-sdk-release-tools/src/utils/changeCiYaml.ts +++ b/tools/js-sdk-release-tools/src/utils/changeCiYaml.ts @@ -45,11 +45,14 @@ export function modifyOrGenerateCiYaml(azureSDKForJSRepoRoot: string, changedPac changed = addExcludeBranch(ciYaml?.pr?.branches) || changed; changed = addArtifact(ciYaml?.extends?.parameters?.Artifacts, name, safeName) || changed; if (changed) { - fs.writeFileSync(ciYamlPath, yaml.stringify(ciYaml), {encoding: 'utf-8'}); + fs.writeFileSync(ciYamlPath, `# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. + +${yaml.stringify(ciYaml)}`, {encoding: 'utf-8'}); } } else { relativeRpFolderPath = relativeRpFolderPath.replace(/\\/g, '/'); const ciYaml = `# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. + trigger: branches: include: