From 002e7be89c69c0be32039a9c0452e7df4bc7ded9 Mon Sep 17 00:00:00 2001 From: Johnathon Bowers Date: Tue, 14 Nov 2023 17:12:43 -0500 Subject: [PATCH 001/242] Test commit Signed-off-by: Johnathon Bowers --- test.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 test.txt diff --git a/test.txt b/test.txt new file mode 100644 index 000000000000..e69de29bb2d1 From a074b34254d52701a0dc79c49a385f73c4be17c0 Mon Sep 17 00:00:00 2001 From: qiwen li Date: Tue, 14 Nov 2023 17:59:59 -0500 Subject: [PATCH 002/242] test commit to project branch from Signed-off-by: qiwen li --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index e69de29bb2d1..2f153caed8dd 100644 --- a/test.txt +++ b/test.txt @@ -0,0 +1 @@ +Riley \ No newline at end of file From 7d2cc219f00394f779b77cf2cef0ef2c263b71e4 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Fri, 17 Nov 2023 17:41:31 +0000 Subject: [PATCH 003/242] creating '/chanelogs/fragments' folder and adding change_set_template.yml file Signed-off-by: Samuel Valdes Gutierrez --- changelogs/change_set_template.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelogs/change_set_template.yml diff --git a/changelogs/change_set_template.yml b/changelogs/change_set_template.yml new file mode 100644 index 000000000000..c296a5f621e8 --- /dev/null +++ b/changelogs/change_set_template.yml @@ -0,0 +1 @@ +# Template From 8045014c59776a56ddd2835e631f76893deb9e98 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Fri, 17 Nov 2023 17:42:53 +0000 Subject: [PATCH 004/242] creating '/chanelogs/fragments' folder and adding 'change_set_template.yml' file Signed-off-by: Samuel Valdes Gutierrez --- changelogs/change_set_template.yml | 1 - changelogs/fragments/change_set_template.yml | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) delete mode 100644 changelogs/change_set_template.yml create mode 100644 changelogs/fragments/change_set_template.yml diff --git a/changelogs/change_set_template.yml b/changelogs/change_set_template.yml deleted file mode 100644 index c296a5f621e8..000000000000 --- a/changelogs/change_set_template.yml +++ /dev/null @@ -1 +0,0 @@ -# Template diff --git a/changelogs/fragments/change_set_template.yml b/changelogs/fragments/change_set_template.yml new file mode 100644 index 000000000000..1a6fa32bf8fb --- /dev/null +++ b/changelogs/fragments/change_set_template.yml @@ -0,0 +1,7 @@ +# Template + +bugfixes: + - This is a sample fixed + +feature: + - Introduces a new feature From 7b249c98dc8774ff8b7ee2f4c66ed187d4638877 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Fri, 17 Nov 2023 19:22:01 +0000 Subject: [PATCH 005/242] updating 'change_set_template.yml' file Signed-off-by: Samuel Valdes Gutierrez --- changelogs/fragments/change_set_template.yml | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/changelogs/fragments/change_set_template.yml b/changelogs/fragments/change_set_template.yml index 1a6fa32bf8fb..c5a336112cd4 100644 --- a/changelogs/fragments/change_set_template.yml +++ b/changelogs/fragments/change_set_template.yml @@ -1,7 +1,41 @@ # Template +# 💥 Breaking Changes +breaking: + - This is a breaking change + +# 🚨 Deprecations +deprecations: + - This is a deprecation change + +# 🛡 Security +security: + - This is a security change + +# 🐛 Bug Fixes bugfixes: - This is a sample fixed +# 📈 Features/Enhancements feature: - Introduces a new feature + +# 🚞 Infrastructure +infrastructure: + - This is an infrastructure change + +# 📝 Documentation +documentation: + - This is a documentation change + +# 🛠 Maintenance +maintenance: + - This is a maintenance change + +# 🪛 Refactoring +refactoring: + - This is a refactoring change + +# 🔩 Tests +tests: + - This is a test change From 048803809564c7553ae02293b0d493d4a3667036 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Tue, 21 Nov 2023 16:44:43 +0000 Subject: [PATCH 006/242] updating change set .yml template file according what agreed last meeting Signed-off-by: Samuel Valdes Gutierrez --- changelogs/fragments/change_set_template.yml | 52 +++++++------------- 1 file changed, 17 insertions(+), 35 deletions(-) diff --git a/changelogs/fragments/change_set_template.yml b/changelogs/fragments/change_set_template.yml index c5a336112cd4..477a31afee4d 100644 --- a/changelogs/fragments/change_set_template.yml +++ b/changelogs/fragments/change_set_template.yml @@ -1,41 +1,23 @@ -# Template +# ######################################## +# Change set template +# Filename: _category_.yml +# ######################################## -# 💥 Breaking Changes -breaking: - - This is a breaking change +# category: , , , , , +# , , or +# merged: +# --- -# 🚨 Deprecations -deprecations: - - This is a deprecation change - -# 🛡 Security -security: - - This is a security change +# - ([#]()) -# 🐛 Bug Fixes -bugfixes: - - This is a sample fixed +# ######################################## +# Example +# Filename: 5465_infra_2023_11_10.yml +# ######################################## -# 📈 Features/Enhancements -feature: - - Introduces a new feature -# 🚞 Infrastructure -infrastructure: - - This is an infrastructure change +# category: infra +# merged: 2023-11-10 +# --- -# 📝 Documentation -documentation: - - This is a documentation change - -# 🛠 Maintenance -maintenance: - - This is a maintenance change - -# 🪛 Refactoring -refactoring: - - This is a refactoring change - -# 🔩 Tests -tests: - - This is a test change +# - Bump `chromedriver` from `107.0.3` to `119.0.1` ([#5465](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5465)) From 18a6555a8586b246826ff7c1839a71351e4778e0 Mon Sep 17 00:00:00 2001 From: Johnathon Bowers Date: Tue, 21 Nov 2023 20:23:33 -0500 Subject: [PATCH 007/242] Add 'Changelog' section to PR template Signed-off-by: Johnathon Bowers --- .github/pull_request_template.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 3cb6f172b119..1c16f9de7462 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -2,16 +2,32 @@ +### Changelog Entry + + + ### Issues Resolved -## Screenshot +### Screenshot -## Testing the changes +### Testing the changes \ No newline at end of file From 5207ba5f26cb6d5a9626b531bcf007c9ae8f9331 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 23 Nov 2023 18:02:07 +0000 Subject: [PATCH 015/242] removing dummy changesets Signed-off-by: Samuel Valdes Gutierrez --- changelogs/fragments/5889.yml | 5 ----- changelogs/fragments/5967.yml | 4 ---- changelogs/fragments/5990.yml | 2 -- changelogs/fragments/5995.yml | 7 ------ changelogs/fragments/change_set_template.yml | 23 -------------------- 5 files changed, 41 deletions(-) delete mode 100644 changelogs/fragments/5889.yml delete mode 100644 changelogs/fragments/5967.yml delete mode 100644 changelogs/fragments/5990.yml delete mode 100644 changelogs/fragments/5995.yml delete mode 100644 changelogs/fragments/change_set_template.yml diff --git a/changelogs/fragments/5889.yml b/changelogs/fragments/5889.yml deleted file mode 100644 index ab29e8ff6a4c..000000000000 --- a/changelogs/fragments/5889.yml +++ /dev/null @@ -1,5 +0,0 @@ -fix: - - fix 1 - Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Elit ([#5889](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5889)) - - fix 2 - Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Elit ([#5889](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5889)) -deprecate: - - deprecate 1 - Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Elit ([#5889](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5889)) diff --git a/changelogs/fragments/5967.yml b/changelogs/fragments/5967.yml deleted file mode 100644 index 1cf86357b9a2..000000000000 --- a/changelogs/fragments/5967.yml +++ /dev/null @@ -1,4 +0,0 @@ -feat: - - feat 1 - Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Elit ([#5967](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5967)) -doc: - - doc 1 - Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Elit ([#5967](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5967)) diff --git a/changelogs/fragments/5990.yml b/changelogs/fragments/5990.yml deleted file mode 100644 index 2f8fde055041..000000000000 --- a/changelogs/fragments/5990.yml +++ /dev/null @@ -1,2 +0,0 @@ -feat: - - feat 2 - Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Elit ([#5990](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5990)) diff --git a/changelogs/fragments/5995.yml b/changelogs/fragments/5995.yml deleted file mode 100644 index 56d0c6d1814e..000000000000 --- a/changelogs/fragments/5995.yml +++ /dev/null @@ -1,7 +0,0 @@ -doc: - - doc 1 - Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Elit ([#5995](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5995)) -feat: - - feat 3 - Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Elit ([#5995](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5995)) - - feat 4 - Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Elit ([#5995](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5995)) -infra: - - infra 1 - Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Elit ([#5995](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5995)) diff --git a/changelogs/fragments/change_set_template.yml b/changelogs/fragments/change_set_template.yml deleted file mode 100644 index 477a31afee4d..000000000000 --- a/changelogs/fragments/change_set_template.yml +++ /dev/null @@ -1,23 +0,0 @@ -# ######################################## -# Change set template -# Filename: _category_.yml -# ######################################## - -# category: , , , , , -# , , or -# merged: -# --- - -# - ([#]()) - -# ######################################## -# Example -# Filename: 5465_infra_2023_11_10.yml -# ######################################## - - -# category: infra -# merged: 2023-11-10 -# --- - -# - Bump `chromedriver` from `107.0.3` to `119.0.1` ([#5465](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5465)) From 806e427638dfb1e48ea050e0bd6f7ca5b68af19b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 23 Nov 2023 18:05:53 +0000 Subject: [PATCH 016/242] Add changeset for PR #2 --- changelogs/fragments/changeset-2.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/changelogs/fragments/changeset-2.yml b/changelogs/fragments/changeset-2.yml index 5c65d294d4b3..4e68930ab59f 100644 --- a/changelogs/fragments/changeset-2.yml +++ b/changelogs/fragments/changeset-2.yml @@ -4,6 +4,9 @@ fix: feat: - Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) +test: +- test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + unknown: - skip --> \ No newline at end of file From f9497ff6345e0ba317b2ebfbf20236dae83ca632 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 23 Nov 2023 18:05:54 +0000 Subject: [PATCH 017/242] Add changeset for PR #2 From e30f4a8bc1c62158293b35a519f4570dfdb3b6f1 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 23 Nov 2023 18:09:39 +0000 Subject: [PATCH 018/242] updating pull_request_template.md for changelog entries Signed-off-by: Samuel Valdes Gutierrez --- .github/pull_request_template.md | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 1c16f9de7462..f59fa4f4bb00 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -2,32 +2,16 @@ -### Changelog Entry - - - ### Issues Resolved -### Screenshot +## Screenshot -### Testing the changes +## Testing the changes +## Changelog + + ### Check List - [ ] All tests pass From 5dc2433f1524b6dccbf18bf121e5a0ba1b7fee57 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 23 Nov 2023 18:10:45 +0000 Subject: [PATCH 019/242] Add changeset for PR #2 From d0209e98d52e7378e8792c5a675c80e70dc5912d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 23 Nov 2023 18:18:35 +0000 Subject: [PATCH 020/242] Add changeset for PR #2 --- changelogs/fragments/changeset-2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/changeset-2.yml b/changelogs/fragments/changeset-2.yml index 4e68930ab59f..ea2110b8de9e 100644 --- a/changelogs/fragments/changeset-2.yml +++ b/changelogs/fragments/changeset-2.yml @@ -5,7 +5,7 @@ feat: - Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) test: -- test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) +- testing a test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) unknown: - skip From 560cff8052a60e54824251c9c0c61b9fac2b6312 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 23 Nov 2023 18:28:41 +0000 Subject: [PATCH 021/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 changelogs/fragments/2.yml diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml new file mode 100644 index 000000000000..01612f6d5039 --- /dev/null +++ b/changelogs/fragments/2.yml @@ -0,0 +1,12 @@ +fix: +- Updates the graph ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +feat: +- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +test: +- testing a new test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +unknown: +- skip +--> \ No newline at end of file From a9b64cd1e4ac268731491b03475317f9863a2815 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 23 Nov 2023 18:29:44 +0000 Subject: [PATCH 022/242] removing old changeset with wrong format Signed-off-by: Samuel Valdes Gutierrez --- changelogs/fragments/changeset-2.yml | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 changelogs/fragments/changeset-2.yml diff --git a/changelogs/fragments/changeset-2.yml b/changelogs/fragments/changeset-2.yml deleted file mode 100644 index ea2110b8de9e..000000000000 --- a/changelogs/fragments/changeset-2.yml +++ /dev/null @@ -1,12 +0,0 @@ -fix: -- Updates the graph ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -feat: -- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -test: -- testing a test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -unknown: -- skip ---> \ No newline at end of file From caeb6c98e5eadddf5bad05f24117c1dad9e59628 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 23 Nov 2023 18:30:19 +0000 Subject: [PATCH 023/242] Add changeset for PR #2 From c85d009dd2dc63225a2bf87ba21e56d443cf23f9 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 23 Nov 2023 18:39:35 +0000 Subject: [PATCH 024/242] adding change sets dummy files 1.yml, 3.yml and 4.yml Signed-off-by: Samuel Valdes Gutierrez --- changelogs/fragments/1.yml | 6 ++++++ changelogs/fragments/2.yml | 4 ---- changelogs/fragments/3.yml | 7 +++++++ changelogs/fragments/4.yml | 2 ++ 4 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 changelogs/fragments/1.yml create mode 100644 changelogs/fragments/3.yml create mode 100644 changelogs/fragments/4.yml diff --git a/changelogs/fragments/1.yml b/changelogs/fragments/1.yml new file mode 100644 index 000000000000..a0ca4f664458 --- /dev/null +++ b/changelogs/fragments/1.yml @@ -0,0 +1,6 @@ +fix: +- Updates the graph ([#1](https://github.com/BigSamu/OpenSearch-Dashboards/pull/1)) +- Updates the picture ([#1](https://github.com/BigSamu/OpenSearch-Dashboards/pull/1)) + +infra: +- testing ingra ([#1](https://github.com/BigSamu/OpenSearch-Dashboards/pull/1)) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 01612f6d5039..211b02b9c5db 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -6,7 +6,3 @@ feat: test: - testing a new test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -unknown: -- skip ---> \ No newline at end of file diff --git a/changelogs/fragments/3.yml b/changelogs/fragments/3.yml new file mode 100644 index 000000000000..404ca8772b84 --- /dev/null +++ b/changelogs/fragments/3.yml @@ -0,0 +1,7 @@ +fix: +- Updates the graph ([#3](https://github.com/BigSamu/OpenSearch-Dashboards/pull/3)) + +doc: +- Creating docs 1 ([#3](https://github.com/BigSamu/OpenSearch-Dashboards/pull/3)) +- Creating docs 2 ([#3](https://github.com/BigSamu/OpenSearch-Dashboards/pull/3)) +- Creating docs 3 ([#3](https://github.com/BigSamu/OpenSearch-Dashboards/pull/3)) diff --git a/changelogs/fragments/4.yml b/changelogs/fragments/4.yml new file mode 100644 index 000000000000..7d7e6cb909b3 --- /dev/null +++ b/changelogs/fragments/4.yml @@ -0,0 +1,2 @@ +refactor: +- Refactor huge code([#4](https://github.com/BigSamu/OpenSearch-Dashboards/pull/4)) From 8f11b83e74a09b358dfe8508740590c007bf9ef3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 23 Nov 2023 18:41:01 +0000 Subject: [PATCH 025/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 211b02b9c5db..01612f6d5039 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -6,3 +6,7 @@ feat: test: - testing a new test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +unknown: +- skip +--> \ No newline at end of file From cab6b50d4f05712a414e962e46c582c31147c91b Mon Sep 17 00:00:00 2001 From: Qiwen Li Date: Thu, 23 Nov 2023 16:12:44 -0500 Subject: [PATCH 026/242] fix a line in changeset 2.yml file, add scripting for updating the changelog.md and generate a opensearch-dashboards.release-notes-pkgVersion.md when we make a release, have not implemented deleting all the changeset files in the script Signed-off-by: Qiwen Li --- changelogs/fragments/2.yml | 9 +- package.json | 3 +- scripts/generate_release_note.js | 7 ++ src/dev/generate_release_note.ts | 148 +++++++++++++++++++++++++++++++ 4 files changed, 161 insertions(+), 6 deletions(-) create mode 100644 scripts/generate_release_note.js create mode 100644 src/dev/generate_release_note.ts diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 01612f6d5039..1afabe25ef11 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,12 +1,11 @@ fix: -- Updates the graph ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + - Updates the graph ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) feat: -- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + - Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) test: -- testing a new test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + - testing a new test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) unknown: -- skip ---> \ No newline at end of file + - skip diff --git a/package.json b/package.json index b95306a049e7..2a0dca89da99 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,8 @@ "docs:acceptApiChanges": "scripts/use_node --max-old-space-size=6144 scripts/check_published_api_changes.js --accept", "osd:bootstrap": "scripts/use_node scripts/build_ts_refs && scripts/use_node scripts/register_git_hook", "spec_to_console": "scripts/use_node scripts/spec_to_console", - "pkg-version": "scripts/use_node -e \"console.log(require('./package.json').version)\"" + "pkg-version": "scripts/use_node -e \"console.log(require('./package.json').version)\"", + "release_note:generate": "scripts/use_node scripts/generate_release_note" }, "repository": { "type": "git", diff --git a/scripts/generate_release_note.js b/scripts/generate_release_note.js new file mode 100644 index 000000000000..35a1581fea6d --- /dev/null +++ b/scripts/generate_release_note.js @@ -0,0 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + +require('../src/setup_node_env'); +require('../src/dev/generate_release_note'); diff --git a/src/dev/generate_release_note.ts b/src/dev/generate_release_note.ts new file mode 100644 index 000000000000..95b89c98f375 --- /dev/null +++ b/src/dev/generate_release_note.ts @@ -0,0 +1,148 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + +import { resolve } from 'path'; +import { readFileSync, writeFileSync, readdirSync } from 'fs'; +import { load as loadYaml } from 'js-yaml'; +import { version as pkgVersion } from '../../package.json'; + +// Path to the file +const filePath = resolve(__dirname, '..', '..', 'CHANGELOG.md'); + +function addContentAfterUnreleased(path: string, newContent: string): void { + // Read the existing content of the file + let fileContent = readFileSync(path, 'utf8'); + + // Define the target string to search for + const targetString = '## [Unreleased]'; + + // Find the index of the target string + const targetIndex = fileContent.indexOf(targetString); + if (targetIndex !== -1) { + // Find the end of the line containing the target string + const endOfLineIndex = fileContent.indexOf('\n', targetIndex); + + if (endOfLineIndex !== -1) { + // Insert the new content after the end of the target line + fileContent = + fileContent.slice(0, endOfLineIndex + 1) + + '\n' + + newContent + + fileContent.slice(endOfLineIndex + 1); + } else { + // eslint-disable-next-line no-console + console.warn('End of line for target string not found.'); + return; + } + } else { + // eslint-disable-next-line no-console + console.warn("'## [Unreleased]' not found in the file."); + return; + } + + // Write the modified content back to the file + writeFileSync(path, fileContent); +} + +function getCurrentDateFormatted(): string { + const now = new Date(); + const year = now.getFullYear(); + const month = now.getMonth() + 1; // Months are 0-based + const day = now.getDate(); + + // Pad the month and day with leading zeros if necessary + const formattedMonth = month < 10 ? `0${month}` : `${month}`; + const formattedDay = day < 10 ? `0${day}` : `${day}`; + + return `${year}-${formattedMonth}-${formattedDay}`; +} + +const currentDate = getCurrentDateFormatted(); + +const SECTION_MAPPING = { + breaking: '💥 Breaking Changes', + deprecate: 'Deprecations', + security: '🛡 Security', + feat: '📈 Features/Enhancements', + fix: '🐛 Bug Fixes', + infra: '🚞 Infrastructure', + doc: '📝 Documentation', + chore: '🛠 Maintenance', + refactor: '🪛 Refactoring', + test: '🔩 Tests', +}; + +const SECTION_KEYS = Object.keys(SECTION_MAPPING); +type SectionKey = keyof typeof SECTION_MAPPING; +type Changelog = Record; + +// const sections: Partial = {}; +const sections: Changelog = { + breaking: [], + deprecate: [], + security: [], + feat: [], + fix: [], + infra: [], + doc: [], + chore: [], + refactor: [], + test: [], +}; + +const fragmentDirPath = resolve(__dirname, '..', '..', 'changelogs', 'fragments'); +const fragmentPaths = readdirSync(fragmentDirPath).filter( + (path) => path.endsWith('.yml') || path.endsWith('.yaml') +); + +for (const fragmentFilename of fragmentPaths) { + const fragmentPath = resolve(fragmentDirPath, fragmentFilename); + const fragmentContents = readFileSync(fragmentPath, { encoding: 'utf-8' }); + const fragmentYaml = loadYaml(fragmentContents) as Changelog; + + // const prNumber = fragmentFilename.split('.').slice(0, -1).join('.'); + + for (const [sectionKey, entries] of Object.entries(fragmentYaml)) { + if (!SECTION_KEYS.includes(sectionKey)) { + // shouldnt be any unknown section coz they are handled during the changesets generation + // eslint-disable-next-line no-console + console.log(`Unknown section ${sectionKey} with skip. SKipping`); + continue; + } + + const section = sections[sectionKey as SectionKey] || (sections[sectionKey as SectionKey] = []); + section.push(...entries); + } +} + +const changelogSections = []; + +for (const [sectionKey, entries] of Object.entries(sections)) { + const sectionName = SECTION_MAPPING[sectionKey as SectionKey]; + if (entries.length === 0) { + changelogSections.push(`### ${sectionName}`); + continue; + } + changelogSections.push(`### ${sectionName} + +${entries.map((entry) => ` - ${entry}`).join('\n')}`); +} + +const changelog = `## [${pkgVersion}-${currentDate}](https://github.com/opensearch-project/OpenSearch-Dashboards/releases/tag/${pkgVersion}) + +${changelogSections.join('\n\n')} +`; +// generate the release note in the /release-notes folder +const REALEASENOTE_FILENAME = `opensearch-dashboards.release-notes-${pkgVersion}.md`; +const REALEASENOTE_HEADER = `# VERSION ${pkgVersion} Release Note`; +const releasenote = `${REALEASENOTE_HEADER} + +${changelogSections.join('\n\n')} +`; +// console.log(`${changelogSections.join('\n\n')}`); +// console.log(resolve(__dirname, '..', '..', 'release-notes', REALEASENOTE_FILENAME)); +writeFileSync(resolve(__dirname, '..', '..', 'release-notes', REALEASENOTE_FILENAME), releasenote); +// writeFileSync(resolve(__dirname, '..', '..', 'CHANGELOG.md'), changelog + fileContent); +addContentAfterUnreleased(filePath, changelog); From 932c8cbbf848f47ef54ab1b0d18e469bdcc3b26c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 23 Nov 2023 21:16:04 +0000 Subject: [PATCH 027/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 1afabe25ef11..01612f6d5039 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,11 +1,12 @@ fix: - - Updates the graph ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) +- Updates the graph ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) feat: - - Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) +- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) test: - - testing a new test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) +- testing a new test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) unknown: - - skip +- skip +--> \ No newline at end of file From c2b9ac1fe782afb930a5e1a6dcbb6d2bb7f4340d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 23 Nov 2023 22:05:16 +0000 Subject: [PATCH 028/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 01612f6d5039..1f4ba3133622 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -8,5 +8,4 @@ test: - testing a new test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) unknown: -- skip ---> \ No newline at end of file +- skip \ No newline at end of file From 205f0a1d1d2fa5e69670ab0a66c502380c5c253c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 24 Nov 2023 04:04:28 +0000 Subject: [PATCH 029/242] Add changeset for PR #2 From d5a37dc12ece167361f5ed89657a584b76e40440 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 24 Nov 2023 04:07:04 +0000 Subject: [PATCH 030/242] Add changeset for PR #2 From 0b25ce377616831d1f27536f257d522bfc20503e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 24 Nov 2023 04:13:22 +0000 Subject: [PATCH 031/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 1f4ba3133622..ef6c94fafd4c 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -4,6 +4,9 @@ fix: feat: - Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) +doc: +- Adds new documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + test: - testing a new test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) From 915ac6444294ab970b7426854cb60c81124b3e21 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 24 Nov 2023 04:17:51 +0000 Subject: [PATCH 032/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index ef6c94fafd4c..2cca4d00b0e5 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,14 +1,18 @@ fix: - Updates the graph ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) +- Updates the graph ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) feat: - Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) +- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +unknown: +- skip +--> +- skip doc: - Adds new documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) test: -- testing a new test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -unknown: -- skip \ No newline at end of file +- testing a new test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From a19b5271c1016a4b8702cbabae728d759d1eb571 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 24 Nov 2023 04:47:29 +0000 Subject: [PATCH 033/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 2cca4d00b0e5..e753692f010d 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,18 +1,11 @@ fix: -- Updates the graph ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) -- Updates the graph ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) +- This is a fix ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) feat: -- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) -- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -unknown: -- skip ---> -- skip - -doc: -- Adds new documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) +- This is a feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) test: -- testing a new test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- This is a test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +unknown: +- skip \ No newline at end of file From 4efcc6d7533771499b266325347285c604f85484 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 24 Nov 2023 14:04:06 +0000 Subject: [PATCH 034/242] Add changeset for PR #2 From 245b559990e2cdc1c14afbec75209eb4c9408c6c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 24 Nov 2023 14:08:47 +0000 Subject: [PATCH 035/242] Add changeset for PR #2 From 6b7409776be2dc0d21ee76c073cde3f7ddc3bc6f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 24 Nov 2023 14:39:21 +0000 Subject: [PATCH 036/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index e753692f010d..49e68151e555 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,11 +1,8 @@ fix: -- This is a fix ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) +- Updates the graph ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) feat: -- This is a feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) +- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) test: -- This is a test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -unknown: -- skip \ No newline at end of file +- test test test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 034b742d0060085dc72f922bff1612678ae9932d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 24 Nov 2023 17:28:22 +0000 Subject: [PATCH 037/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 49e68151e555..6bfc8dbcde8b 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -5,4 +5,4 @@ feat: - Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) test: -- test test test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- test test test test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From d82cfca2f3f133dd152625ea51b6f281abb867b6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 24 Nov 2023 17:29:35 +0000 Subject: [PATCH 038/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 6bfc8dbcde8b..c683e824de96 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -2,7 +2,4 @@ fix: - Updates the graph ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) feat: -- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -test: -- test test test test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From bdaba2f7e98b121dd4efe813a8e387c02345b2e2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 24 Nov 2023 17:29:40 +0000 Subject: [PATCH 039/242] Add changeset for PR #2 From ec41ec0e6854e33f3adbbaca544b93299cf196c2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 25 Nov 2023 02:56:38 +0000 Subject: [PATCH 040/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index c683e824de96..a8685c4587f4 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -2,4 +2,7 @@ fix: - Updates the graph ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) feat: -- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +doc: +- new documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From e3840817bc4dffa45fd9433d65e13fc4dfa91f0f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 25 Nov 2023 03:46:59 +0000 Subject: [PATCH 041/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index a8685c4587f4..4abbaa1563fd 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -4,5 +4,11 @@ fix: feat: - Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) +test: +- test test test3 ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + doc: -- new documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- new documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +unknown: +## \ No newline at end of file From 621aa2fa1ae10136635993e2f86a94043da2d49d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 25 Nov 2023 03:52:50 +0000 Subject: [PATCH 042/242] Add changeset for PR #2 From f65914a00fe1b02224eea930d9767ee8b1f56bb8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 25 Nov 2023 03:55:11 +0000 Subject: [PATCH 043/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 4abbaa1563fd..e243da4ae924 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -5,10 +5,10 @@ feat: - Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) test: -- test test test3 ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) +- test test test4 ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) doc: -- new documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) +- newish documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) unknown: ## \ No newline at end of file From f951e7b89f4598b7582bef88178b2bc3714b4ce8 Mon Sep 17 00:00:00 2001 From: Johnathon Bowers Date: Fri, 24 Nov 2023 23:47:14 -0500 Subject: [PATCH 044/242] Bump actions/checkout from v2 to v4 Signed-off-by: Johnathon Bowers --- .github/workflows/create_change_set_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create_change_set_workflow.yml b/.github/workflows/create_change_set_workflow.yml index ecd034a90bc4..0a057a9e7ca9 100644 --- a/.github/workflows/create_change_set_workflow.yml +++ b/.github/workflows/create_change_set_workflow.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Update Changelog uses: BigSamu/OpenSearch_Change_Set_Create_Action@main with: From 2c4c1defbe6a58098184a1a6c3ca661723f5f0bd Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 25 Nov 2023 04:51:16 +0000 Subject: [PATCH 045/242] Add changeset for PR #2 From 5460b25b6fb48f264636445b327e5d0b1701da93 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 25 Nov 2023 04:52:50 +0000 Subject: [PATCH 046/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index e243da4ae924..527c6f22a961 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -5,7 +5,7 @@ feat: - Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) test: -- test test test4 ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) +- test test test5 ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) doc: - newish documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) From d43c874b5f99abc2a2e57ec82ad5045b801cf619 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 25 Nov 2023 18:03:33 +0000 Subject: [PATCH 047/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 527c6f22a961..b1ba09ed1ae9 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -5,10 +5,8 @@ feat: - Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) test: +- test test test test test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - test test test5 ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) doc: -- newish documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -unknown: -## \ No newline at end of file +- newish documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 78aabf65a4d84f575c124bbd2c69e01a8db58184 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 25 Nov 2023 18:47:52 +0000 Subject: [PATCH 048/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index b1ba09ed1ae9..15a2deaf34b5 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,12 +1,2 @@ -fix: -- Updates the graph ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -feat: -- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -test: -- test test test test test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) -- test test test5 ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -doc: -- newish documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +unknown: +- unknown: Feat/chanelog project \ No newline at end of file From 8a1b35f73025bdfcd8ddd7d4a70d5e1ad64c3fb3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 25 Nov 2023 18:49:23 +0000 Subject: [PATCH 049/242] Add changeset for PR #2 From 9cb4afb895e5646d29c560ae00fd565196f46bb6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 25 Nov 2023 18:53:12 +0000 Subject: [PATCH 050/242] Add changeset for PR #2 From e7fe1bbf9c23695bf01552d33f3ee84522bbb88a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 25 Nov 2023 18:57:13 +0000 Subject: [PATCH 051/242] Add changeset for PR #2 From 80eb6f2c4053bccde1779461c6b8855e5b742aa7 Mon Sep 17 00:00:00 2001 From: CMDWillYang Date: Sat, 25 Nov 2023 14:28:40 -0500 Subject: [PATCH 052/242] release note script refactor + deletes fragment added the deletiong of fragment files at the end. Did minor refactoring/cleanup Signed-off-by: CMDWillYang --- src/dev/generate_release_note.ts | 96 +++++++++++++------------------- 1 file changed, 39 insertions(+), 57 deletions(-) diff --git a/src/dev/generate_release_note.ts b/src/dev/generate_release_note.ts index 95b89c98f375..e639ae2e6d40 100644 --- a/src/dev/generate_release_note.ts +++ b/src/dev/generate_release_note.ts @@ -4,28 +4,25 @@ */ import { resolve } from 'path'; -import { readFileSync, writeFileSync, readdirSync } from 'fs'; +import { readFileSync, writeFileSync, readdirSync, unlinkSync } from 'fs'; import { load as loadYaml } from 'js-yaml'; import { version as pkgVersion } from '../../package.json'; -// Path to the file +// Define constant paths const filePath = resolve(__dirname, '..', '..', 'CHANGELOG.md'); +const fragmentDirPath = resolve(__dirname, '..', '..', 'changelogs', 'fragments'); +const releaseNotesDirPath = resolve(__dirname, '..', '..', 'release-notes'); +// Function to add content after the 'Unreleased' section in the changelog function addContentAfterUnreleased(path: string, newContent: string): void { - // Read the existing content of the file let fileContent = readFileSync(path, 'utf8'); - - // Define the target string to search for const targetString = '## [Unreleased]'; - - // Find the index of the target string const targetIndex = fileContent.indexOf(targetString); + if (targetIndex !== -1) { - // Find the end of the line containing the target string const endOfLineIndex = fileContent.indexOf('\n', targetIndex); if (endOfLineIndex !== -1) { - // Insert the new content after the end of the target line fileContent = fileContent.slice(0, endOfLineIndex + 1) + '\n' + @@ -42,25 +39,25 @@ function addContentAfterUnreleased(path: string, newContent: string): void { return; } - // Write the modified content back to the file writeFileSync(path, fileContent); } +// Function to format the current date function getCurrentDateFormatted(): string { const now = new Date(); const year = now.getFullYear(); - const month = now.getMonth() + 1; // Months are 0-based + const month = now.getMonth() + 1; const day = now.getDate(); - // Pad the month and day with leading zeros if necessary - const formattedMonth = month < 10 ? `0${month}` : `${month}`; - const formattedDay = day < 10 ? `0${day}` : `${day}`; + const formattedMonth = month.toString().padStart(2, '0'); + const formattedDay = day.toString().padStart(2, '0'); return `${year}-${formattedMonth}-${formattedDay}`; } const currentDate = getCurrentDateFormatted(); +// Define section mapping const SECTION_MAPPING = { breaking: '💥 Breaking Changes', deprecate: 'Deprecations', @@ -74,25 +71,15 @@ const SECTION_MAPPING = { test: '🔩 Tests', }; -const SECTION_KEYS = Object.keys(SECTION_MAPPING); type SectionKey = keyof typeof SECTION_MAPPING; type Changelog = Record; -// const sections: Partial = {}; -const sections: Changelog = { - breaking: [], - deprecate: [], - security: [], - feat: [], - fix: [], - infra: [], - doc: [], - chore: [], - refactor: [], - test: [], -}; +// Initialize sections +const sections: Changelog = (Object.fromEntries( + Object.keys(SECTION_MAPPING).map((key) => [key, []]) +) as unknown) as Changelog; -const fragmentDirPath = resolve(__dirname, '..', '..', 'changelogs', 'fragments'); +// Read fragment files and populate sections const fragmentPaths = readdirSync(fragmentDirPath).filter( (path) => path.endsWith('.yml') || path.endsWith('.yaml') ); @@ -102,47 +89,42 @@ for (const fragmentFilename of fragmentPaths) { const fragmentContents = readFileSync(fragmentPath, { encoding: 'utf-8' }); const fragmentYaml = loadYaml(fragmentContents) as Changelog; - // const prNumber = fragmentFilename.split('.').slice(0, -1).join('.'); - for (const [sectionKey, entries] of Object.entries(fragmentYaml)) { - if (!SECTION_KEYS.includes(sectionKey)) { - // shouldnt be any unknown section coz they are handled during the changesets generation + if (!SECTION_MAPPING[sectionKey as SectionKey]) { // eslint-disable-next-line no-console - console.log(`Unknown section ${sectionKey} with skip. SKipping`); + console.warn(`Unknown section ${sectionKey}. Skipping.`); continue; } - const section = sections[sectionKey as SectionKey] || (sections[sectionKey as SectionKey] = []); - section.push(...entries); + sections[sectionKey as SectionKey].push(...entries); } } -const changelogSections = []; - -for (const [sectionKey, entries] of Object.entries(sections)) { +// Generate changelog sections +const changelogSections = Object.entries(sections).map(([sectionKey, entries]) => { const sectionName = SECTION_MAPPING[sectionKey as SectionKey]; - if (entries.length === 0) { - changelogSections.push(`### ${sectionName}`); - continue; - } - changelogSections.push(`### ${sectionName} - -${entries.map((entry) => ` - ${entry}`).join('\n')}`); -} + return entries.length === 0 + ? `### ${sectionName}` + : `### ${sectionName}\n\n${entries.map((entry) => ` - ${entry}`).join('\n')}`; +}); +// Generate full changelog const changelog = `## [${pkgVersion}-${currentDate}](https://github.com/opensearch-project/OpenSearch-Dashboards/releases/tag/${pkgVersion}) ${changelogSections.join('\n\n')} `; -// generate the release note in the /release-notes folder -const REALEASENOTE_FILENAME = `opensearch-dashboards.release-notes-${pkgVersion}.md`; -const REALEASENOTE_HEADER = `# VERSION ${pkgVersion} Release Note`; -const releasenote = `${REALEASENOTE_HEADER} -${changelogSections.join('\n\n')} -`; -// console.log(`${changelogSections.join('\n\n')}`); -// console.log(resolve(__dirname, '..', '..', 'release-notes', REALEASENOTE_FILENAME)); -writeFileSync(resolve(__dirname, '..', '..', 'release-notes', REALEASENOTE_FILENAME), releasenote); -// writeFileSync(resolve(__dirname, '..', '..', 'CHANGELOG.md'), changelog + fileContent); +// Generate release note +const releaseNoteFilename = `opensearch-dashboards.release-notes-${pkgVersion}.md`; +const releaseNoteHeader = `# VERSION ${pkgVersion} Release Note`; +const releaseNote = `${releaseNoteHeader}\n\n${changelogSections.join('\n\n')}`; +writeFileSync(resolve(releaseNotesDirPath, releaseNoteFilename), releaseNote); + +// Update changelog file addContentAfterUnreleased(filePath, changelog); + +// Delete fragment files +for (const fragmentFilename of fragmentPaths) { + const fragmentPath = resolve(fragmentDirPath, fragmentFilename); + unlinkSync(fragmentPath); +} From 7cb63de51393838c1f20d3bb87f1f0c9520c5963 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 27 Nov 2023 23:43:37 +0000 Subject: [PATCH 053/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 15a2deaf34b5..d5f33e35857f 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,2 +1,8 @@ -unknown: -- unknown: Feat/chanelog project \ No newline at end of file +fix: +- Updates the graph ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +feat: +- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +test: +- test test test test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 34cfb78923043157f57adc3be2b9fccfc096f24e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 27 Nov 2023 23:56:30 +0000 Subject: [PATCH 054/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index d5f33e35857f..3a7a6f6ed261 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -5,4 +5,4 @@ feat: - Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) test: -- test test test test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 45072e8c7479b752c9bbee12f2b625e08a654ef1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 27 Nov 2023 23:59:08 +0000 Subject: [PATCH 055/242] Add changeset for PR #2 From 698398dd5ea8828be23bd2c64a7b5dbc8d379d04 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 28 Nov 2023 04:09:39 +0000 Subject: [PATCH 056/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 3a7a6f6ed261..777017942edf 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,8 +1,5 @@ -fix: -- Updates the graph ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - feat: - Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) -test: -- test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +refactor: +- Modifies function ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 9cc2a72b10c791c32e585ac037ee075f93d14142 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 28 Nov 2023 04:11:20 +0000 Subject: [PATCH 057/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 777017942edf..4d71cb225bb5 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -2,4 +2,7 @@ feat: - Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) refactor: -- Modifies function ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- Modifies function ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +doc: +- adds documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From c0b93e0ad05be8f12168f61afd9d2a630c96da63 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 28 Nov 2023 04:30:58 +0000 Subject: [PATCH 058/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 4d71cb225bb5..d041d7fe68e7 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,8 +1,9 @@ feat: - Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) +- Adds another new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) refactor: - Modifies function ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) doc: -- adds documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- Adds documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From f715f53a672f086eb0d2508c52b1e9c670801ef9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 28 Nov 2023 05:58:56 +0000 Subject: [PATCH 059/242] Add changeset for PR #2 From 5c3739177ff25e59f3a5a79ad561e462356de4ba Mon Sep 17 00:00:00 2001 From: Johnathon Bowers Date: Tue, 28 Nov 2023 20:19:20 -0500 Subject: [PATCH 060/242] Update language in 'Changelog' section of PR template Signed-off-by: Johnathon Bowers --- .github/pull_request_template.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index f59fa4f4bb00..b5fe6881d1c2 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -25,10 +25,12 @@ Add each of the changelog entries as a line item in this section. e.g. - fix: Updates the graph - feat: Adds a new feature -If this chnage does not need to added to the changelog, just add a single `skip` line e.g. +If this change does not need to added to the changelog, just add a single `skip` line e.g. - skip -Valid prefixes: breaking, deprecate, feat, fix, infra, doc, chore, refactor, test +Valid prefixes: breaking, chore, deprecate, doc, feat, fix, infra, refactor, test + +Descriptions following the prefixes must be 50 characters or less --> ### Check List From ad76b43c4d3d576283045a70b1b3fd17197d93cd Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 29 Nov 2023 01:20:16 +0000 Subject: [PATCH 061/242] Add changeset for PR #2 From 04bdb2b10d0b70f465dc15835bdc5fc9f342900c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 29 Nov 2023 12:00:33 +0000 Subject: [PATCH 062/242] Add changeset for PR #2 From d5fe14275857f1ebcbd4c18abac918d82a3f9cb0 Mon Sep 17 00:00:00 2001 From: Qiwen Li Date: Wed, 29 Nov 2023 09:53:33 -0500 Subject: [PATCH 063/242] Update src/dev/generate_release_note.ts Co-authored-by: Ashwin P Chandran Signed-off-by: Qiwen Li --- src/dev/generate_release_note.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev/generate_release_note.ts b/src/dev/generate_release_note.ts index e639ae2e6d40..d7fc29af2743 100644 --- a/src/dev/generate_release_note.ts +++ b/src/dev/generate_release_note.ts @@ -30,7 +30,7 @@ function addContentAfterUnreleased(path: string, newContent: string): void { fileContent.slice(endOfLineIndex + 1); } else { // eslint-disable-next-line no-console - console.warn('End of line for target string not found.'); + console.warn('End of line for "Unreleased" section not found.'); return; } } else { From 894430e3bded210dd34e52ea673b6931f57f10da Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 29 Nov 2023 14:54:54 +0000 Subject: [PATCH 064/242] Add changeset for PR #2 From 70dbb55c5e204a45721c5ea4f1023444d7763673 Mon Sep 17 00:00:00 2001 From: Johnathon Bowers Date: Wed, 29 Nov 2023 10:04:07 -0500 Subject: [PATCH 065/242] Add first draft of changelog process README Signed-off-by: Johnathon Bowers --- changelogs/README.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 changelogs/README.md diff --git a/changelogs/README.md b/changelogs/README.md new file mode 100644 index 000000000000..61c8d06c7c77 --- /dev/null +++ b/changelogs/README.md @@ -0,0 +1,40 @@ +# Revised Changelog and Release Notes Process + +- [Introduction](#introduction) +- [Process Overview](#process-overview) + +## Introduction + +On March 20, 2023, Josh Romero issued a [call for proposals](https://github.com/opensearch-project/.github/issues/148) that would "solve the entire collection of issues around generating both ongoing CHANGELOGs, and release notes during GA of the product, for all OpenSearch project repositories." + +On May 4, 2023, a working group voted unanimously to move forward with the "Automation" variation of [Ashwin Chandran's proposal](https://github.com/opensearch-project/.github/issues/156). This proposal has now been implemented, and the details of the new changelog and release notes process are set out below. + +## Process Overview + +The updated changelog and release notes process involves four primary changes in the repository: + +1. Creating a new `changelogs` directory in the root folder of the repository. + +2. Adding a "Changelog" section to the PR description template, with instructions for how contributors can add valid changelog entries to this section. + +3. Using a GitHub Actions workflow to extract entries from the "Changelog" section of each PR description, create or update a changeset file in `.yml` format, and add this file to the new `changelogs/fragments` directory. The generated changeset file is automatically included as part of the changes to be merged when the PR is approved. + +4. Implementing a script that, when manually triggered from the command line upon general availability of a new product version, will cull the `changelogs/fragments` directory for changeset files and use those files to populate the release notes for the new version. + +Details on each of these changes are available in the "[Process Details](#process-details)" section below. + +## Benefits of the New Process + +The new changelog and release notes process improves both contributor experience as well as the efficiency of product development and release. + +Previously, when a contributor opened a PR, they would be prompted to indicate whether or not they had manually added an entry to the changelog. However, they could not add an entry to the changelog without having a PR number to reference. + +This resulted in an inefficient two-step process, in which contributors had to (1) open a PR with their committed code and, once they had the PR number to reference in the changelog, (2) add an entry to the changelog, which then required pushing a new commit to their PR. + + + +## Process Details + +This section discusses in greater detail the four primary changes listed in the "[Process Overview](#process-overview)" section above. + +### 1. Creating a New `changelogs` Directory \ No newline at end of file From 1211af25844a4897d28143dd49707fef6c744ab2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 29 Nov 2023 15:05:45 +0000 Subject: [PATCH 066/242] Add changeset for PR #2 From ef3f61ec977354426a7cb9ee069238993eca86db Mon Sep 17 00:00:00 2001 From: CMDWillYang Date: Wed, 29 Nov 2023 11:02:12 -0500 Subject: [PATCH 067/242] changed error handling behaviors. Signed-off-by: CMDWillYang --- src/dev/generate_release_note.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/dev/generate_release_note.ts b/src/dev/generate_release_note.ts index d7fc29af2743..0d0d7b06f945 100644 --- a/src/dev/generate_release_note.ts +++ b/src/dev/generate_release_note.ts @@ -34,9 +34,7 @@ function addContentAfterUnreleased(path: string, newContent: string): void { return; } } else { - // eslint-disable-next-line no-console - console.warn("'## [Unreleased]' not found in the file."); - return; + throw new Error("'## [Unreleased]' not found in the file."); } writeFileSync(path, fileContent); @@ -91,9 +89,7 @@ for (const fragmentFilename of fragmentPaths) { for (const [sectionKey, entries] of Object.entries(fragmentYaml)) { if (!SECTION_MAPPING[sectionKey as SectionKey]) { - // eslint-disable-next-line no-console - console.warn(`Unknown section ${sectionKey}. Skipping.`); - continue; + throw new Error(`Unknown section ${sectionKey}.`); } sections[sectionKey as SectionKey].push(...entries); From 981ef3e73dcf1dc94c798722dec7a666305f59e6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 29 Nov 2023 16:02:52 +0000 Subject: [PATCH 068/242] Add changeset for PR #2 From c1945a9abbea535933000178c56cd931b5dc93b2 Mon Sep 17 00:00:00 2001 From: Johnathon Bowers Date: Wed, 29 Nov 2023 12:00:01 -0500 Subject: [PATCH 069/242] Add more details to changelog README Signed-off-by: Johnathon Bowers --- changelogs/README.md | 105 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 101 insertions(+), 4 deletions(-) diff --git a/changelogs/README.md b/changelogs/README.md index 61c8d06c7c77..d084c20cfc3d 100644 --- a/changelogs/README.md +++ b/changelogs/README.md @@ -1,7 +1,14 @@ # Revised Changelog and Release Notes Process -- [Introduction](#introduction) -- [Process Overview](#process-overview) +- [Revised Changelog and Release Notes Process](#revised-changelog-and-release-notes-process) + - [Introduction](#introduction) + - [Process Overview](#process-overview) + - [Benefits of the New Process](#benefits-of-the-new-process) + - [Process Details](#process-details) + - [1. Creating a New `changelogs` Directory](#1-creating-a-new-changelogs-directory) + - [2. Adding a "Changelog" Section to the PR Description Template](#2-adding-a-changelog-section-to-the-pr-description-template) + - [3. Using a GitHub Actions Workflow to Generate Changeset Files](#3-using-a-github-actions-workflow-to-generate-changeset-files) + - [4. Implementing a Release Notes Script](#4-implementing-a-release-notes-script) ## Introduction @@ -15,7 +22,7 @@ The updated changelog and release notes process involves four primary changes in 1. Creating a new `changelogs` directory in the root folder of the repository. -2. Adding a "Changelog" section to the PR description template, with instructions for how contributors can add valid changelog entries to this section. +2. Adding a "Changelog" section to the PR template, with instructions for how contributors can add valid changelog entries to this section. 3. Using a GitHub Actions workflow to extract entries from the "Changelog" section of each PR description, create or update a changeset file in `.yml` format, and add this file to the new `changelogs/fragments` directory. The generated changeset file is automatically included as part of the changes to be merged when the PR is approved. @@ -37,4 +44,94 @@ This resulted in an inefficient two-step process, in which contributors had to ( This section discusses in greater detail the four primary changes listed in the "[Process Overview](#process-overview)" section above. -### 1. Creating a New `changelogs` Directory \ No newline at end of file +### 1. Creating a New `changelogs` Directory + +To centralize information pertinent to the new changelog process, a new `changelogs` directory has been added to the root of the repository. This directory is the new location for `CHANGELOG.md`. + +It also houses the `fragments` subdirectory, which includes changeset files in `.yml` format that have been generated from merged PRs. (Only one changeset file is generated per PR.) + +Changeset files are named with the PR number they correspond to. (E.g., `5218.yml`.) + +### 2. Adding a "Changelog" Section to the PR Description Template + +The PR template has been updated with a new "Changelog" section. The comment block in this section provides contributors with instructions for how to add properly-formatted changelog entries to their PR. + +Below are the formatting standards for changelog entries: +- Each entry line must begin with a hyphen (-) in the Markdown source file. +- Contributors must categorize their changes by using one of the following prefixes, followed by a colon. + - `breaking` + - `chore` + - `deprecate` + - `doc` + - `feat` + - `fix` + - `infra` + - `refactor` + - `test` +- If the changes in a PR are minor (e.g., fixing a typo), contributors can enter `- skip` in the "Changelog" section to instruct the workflow not to generate a changeset file. + - If `-skip` is entered in the "Changelog" section, no other categories or descriptions can be present. +- After the colon, contributors should provide a concise description of their changes. Descriptions must be 50 characters or less. + +Below is an example of a valid entry in the "Changelog" section of the PR description. (Contributors can add more than one entry if they are contributing more than one type of change in their PR. They do not need to delete the comment block in this section, although they can. If they leave the comment block, they should ensure that the changelog entries they add to their PR lie *outside* of the comment block.) + +```markdown +## Changelog + + +- feat: Adds a new feature +- refactor: Improves an existing feature +``` + +Below are examples of invalid entries: + +``` +// Including "skip" with another category +- skip +- feat: Adds a new feature +``` +``` +// Missing a hyphen +feat: Adds a new feature +``` +``` +// Invalid category prefix +- new: Adds something new +``` +``` +// Missing description +- feat +``` +``` +// Description longer than 50 characters +- feat: Adds a new feature that is simply too excellent to be described in 50 characters or less +``` + +### 3. Using a GitHub Actions Workflow to Generate Changeset Files + +Whenever a contributor opens a PR or edits an existing PR, a GitHub Actions workflow is triggered that extracts the metadata from the PR and checks what a contributor has entered in the "Changelog" section of the PR description. + +If a contributor has entered valid changelog entries (see formatting requirements in previous section above), the workflow will categorize these entries and either create or update a `.yml` changeset file in the `changelogs/fragments` directory of the repository. + +This changeset file will include changelog descriptions under their proper category and also add a link to the PR that generated these changes. Below is an example of what the contents of a changeset file will look like: + +```yaml +feat: + - Adds a new feature ([#532](https://github.com/.../pull/532)) + +refactor: + - Improves an existing feature ([#532](https://github.com/.../pull/532)) + +test: + - Add unit testing to new feature ([#532](https://github.com/.../pull/532)) + - Update unit testing for existing feature ([#532](https://github.com/.../pull/532)) +``` + +This changeset file will become part of the code that is merged when the PR is approved. + +If the workflow encounters a `- skip` line in the PR, and there are no other changelog entries present, it will skip the creation of a changeset file, and the workflow will terminate successfully. + +If the workflow encounters an error (e.g., an empty "Changelog" section or an invalid changelog entry), it will fail, and a custom error message will be printed to the workflow logs explaining the reason for the failure. + +Contributors can then address the error and update their PR, which will trigger the workflow to run again. + +### 4. Implementing a Release Notes Script \ No newline at end of file From c777b6662a97a0268ee74a8efd088e0945e95b64 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 29 Nov 2023 17:01:10 +0000 Subject: [PATCH 070/242] Add changeset for PR #2 From 4775d6f45765394c3b05ae7fc0768728702a2817 Mon Sep 17 00:00:00 2001 From: qiwen li Date: Wed, 29 Nov 2023 12:15:37 -0500 Subject: [PATCH 071/242] added error Signed-off-by: qiwen li --- src/dev/generate_release_note.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/dev/generate_release_note.ts b/src/dev/generate_release_note.ts index 0d0d7b06f945..b002711f151e 100644 --- a/src/dev/generate_release_note.ts +++ b/src/dev/generate_release_note.ts @@ -29,9 +29,7 @@ function addContentAfterUnreleased(path: string, newContent: string): void { newContent + fileContent.slice(endOfLineIndex + 1); } else { - // eslint-disable-next-line no-console - console.warn('End of line for "Unreleased" section not found.'); - return; + throw new Error('End of line for "Unreleased" section not found.'); } } else { throw new Error("'## [Unreleased]' not found in the file."); From 81f1c59490f695a59ed7f9fdffb6ad21742ce922 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 29 Nov 2023 17:18:03 +0000 Subject: [PATCH 072/242] Add changeset for PR #2 From 89337de8bdfcaf537aee8375e82ef2dfdaae01e3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 29 Nov 2023 17:59:11 +0000 Subject: [PATCH 073/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index d041d7fe68e7..975b36f774b3 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,9 +1,2 @@ feat: -- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) -- Adds another new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -refactor: -- Modifies function ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -doc: -- Adds documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- Adds new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 7620ffad8c838f3e9131fefc8ff26ef0c92df013 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 29 Nov 2023 18:28:17 +0000 Subject: [PATCH 074/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 975b36f774b3..0400aacb4120 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,2 +1,5 @@ feat: -- Adds new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +doc: +- Adds new documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 7a567c3da1a9dfdd55a6f1b11b77da9f71a311fe Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 30 Nov 2023 03:12:51 +0000 Subject: [PATCH 075/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 0400aacb4120..e69de29bb2d1 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,5 +0,0 @@ -feat: -- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -doc: -- Adds new documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 31232dbd462cc70c59359e9783928a67b2d24428 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 30 Nov 2023 03:42:30 +0000 Subject: [PATCH 076/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index e69de29bb2d1..4c4a03839787 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -0,0 +1,2 @@ +feat: +- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 86f10bd4df5f5c476ab687bdd0126928936c0951 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 3 Dec 2023 06:29:06 +0000 Subject: [PATCH 077/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 4c4a03839787..28d7843ab68d 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,2 +1,5 @@ feat: -- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +fix: +- Fixes a bug ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From c3843c61f579dc488fc44214e196f4a3bf8f2435 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 3 Dec 2023 21:11:30 +0000 Subject: [PATCH 078/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 28d7843ab68d..43e4e0f2ab6b 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -2,4 +2,7 @@ feat: - Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) fix: -- Fixes a bug ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- Fixes a bug ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +doc: +- Adds documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 72c3d896581dd373118ea7a4d85613680bdafb23 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 5 Dec 2023 00:52:40 +0000 Subject: [PATCH 079/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 43e4e0f2ab6b..28d7843ab68d 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -2,7 +2,4 @@ feat: - Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) fix: -- Fixes a bug ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -doc: -- Adds documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- Fixes a bug ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 204c363383f8f037917676f3b27755debaf5828f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 5 Dec 2023 22:10:09 +0000 Subject: [PATCH 080/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 28d7843ab68d..462d8398fd3b 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,5 +1 @@ -feat: -- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -fix: -- Fixes a bug ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +skip: From 3b0b2f29c98a363eb211d622bfe8b6201f390ef5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 5 Dec 2023 22:18:19 +0000 Subject: [PATCH 081/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 462d8398fd3b..4c4a03839787 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1 +1,2 @@ -skip: +feat: +- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From a875300f97d294d73f95ebe3ccdde92377e29e50 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 5 Dec 2023 23:13:44 +0000 Subject: [PATCH 082/242] Add changeset for PR #2 From 941dd6c731f9a0035d65d5c3de97ef41b6407564 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 6 Dec 2023 17:42:51 +0000 Subject: [PATCH 083/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 4c4a03839787..5cd56d56ab2b 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,2 +1,2 @@ feat: -- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- Adds a feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From b80f45f601a0e0b6637fe26ac774c88c08a2eb86 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 6 Dec 2023 18:56:03 +0000 Subject: [PATCH 084/242] Add changeset for PR #2 From 6795bc01fd4dbe137cb437a2d17ad10b5e72d313 Mon Sep 17 00:00:00 2001 From: Johnathon Bowers Date: Wed, 6 Dec 2023 14:45:03 -0500 Subject: [PATCH 085/242] Abbreviate README and link to workflow README Signed-off-by: Johnathon Bowers --- changelogs/README.md | 136 +------------------------------------------ 1 file changed, 2 insertions(+), 134 deletions(-) diff --git a/changelogs/README.md b/changelogs/README.md index d084c20cfc3d..bc4504f98fde 100644 --- a/changelogs/README.md +++ b/changelogs/README.md @@ -1,137 +1,5 @@ # Revised Changelog and Release Notes Process -- [Revised Changelog and Release Notes Process](#revised-changelog-and-release-notes-process) - - [Introduction](#introduction) - - [Process Overview](#process-overview) - - [Benefits of the New Process](#benefits-of-the-new-process) - - [Process Details](#process-details) - - [1. Creating a New `changelogs` Directory](#1-creating-a-new-changelogs-directory) - - [2. Adding a "Changelog" Section to the PR Description Template](#2-adding-a-changelog-section-to-the-pr-description-template) - - [3. Using a GitHub Actions Workflow to Generate Changeset Files](#3-using-a-github-actions-workflow-to-generate-changeset-files) - - [4. Implementing a Release Notes Script](#4-implementing-a-release-notes-script) +For information regarding the revised changelog and release notes process, please consult the README in the GitHub Actions repository that this process utilizes. To view this README, follow the link below: -## Introduction - -On March 20, 2023, Josh Romero issued a [call for proposals](https://github.com/opensearch-project/.github/issues/148) that would "solve the entire collection of issues around generating both ongoing CHANGELOGs, and release notes during GA of the product, for all OpenSearch project repositories." - -On May 4, 2023, a working group voted unanimously to move forward with the "Automation" variation of [Ashwin Chandran's proposal](https://github.com/opensearch-project/.github/issues/156). This proposal has now been implemented, and the details of the new changelog and release notes process are set out below. - -## Process Overview - -The updated changelog and release notes process involves four primary changes in the repository: - -1. Creating a new `changelogs` directory in the root folder of the repository. - -2. Adding a "Changelog" section to the PR template, with instructions for how contributors can add valid changelog entries to this section. - -3. Using a GitHub Actions workflow to extract entries from the "Changelog" section of each PR description, create or update a changeset file in `.yml` format, and add this file to the new `changelogs/fragments` directory. The generated changeset file is automatically included as part of the changes to be merged when the PR is approved. - -4. Implementing a script that, when manually triggered from the command line upon general availability of a new product version, will cull the `changelogs/fragments` directory for changeset files and use those files to populate the release notes for the new version. - -Details on each of these changes are available in the "[Process Details](#process-details)" section below. - -## Benefits of the New Process - -The new changelog and release notes process improves both contributor experience as well as the efficiency of product development and release. - -Previously, when a contributor opened a PR, they would be prompted to indicate whether or not they had manually added an entry to the changelog. However, they could not add an entry to the changelog without having a PR number to reference. - -This resulted in an inefficient two-step process, in which contributors had to (1) open a PR with their committed code and, once they had the PR number to reference in the changelog, (2) add an entry to the changelog, which then required pushing a new commit to their PR. - - - -## Process Details - -This section discusses in greater detail the four primary changes listed in the "[Process Overview](#process-overview)" section above. - -### 1. Creating a New `changelogs` Directory - -To centralize information pertinent to the new changelog process, a new `changelogs` directory has been added to the root of the repository. This directory is the new location for `CHANGELOG.md`. - -It also houses the `fragments` subdirectory, which includes changeset files in `.yml` format that have been generated from merged PRs. (Only one changeset file is generated per PR.) - -Changeset files are named with the PR number they correspond to. (E.g., `5218.yml`.) - -### 2. Adding a "Changelog" Section to the PR Description Template - -The PR template has been updated with a new "Changelog" section. The comment block in this section provides contributors with instructions for how to add properly-formatted changelog entries to their PR. - -Below are the formatting standards for changelog entries: -- Each entry line must begin with a hyphen (-) in the Markdown source file. -- Contributors must categorize their changes by using one of the following prefixes, followed by a colon. - - `breaking` - - `chore` - - `deprecate` - - `doc` - - `feat` - - `fix` - - `infra` - - `refactor` - - `test` -- If the changes in a PR are minor (e.g., fixing a typo), contributors can enter `- skip` in the "Changelog" section to instruct the workflow not to generate a changeset file. - - If `-skip` is entered in the "Changelog" section, no other categories or descriptions can be present. -- After the colon, contributors should provide a concise description of their changes. Descriptions must be 50 characters or less. - -Below is an example of a valid entry in the "Changelog" section of the PR description. (Contributors can add more than one entry if they are contributing more than one type of change in their PR. They do not need to delete the comment block in this section, although they can. If they leave the comment block, they should ensure that the changelog entries they add to their PR lie *outside* of the comment block.) - -```markdown -## Changelog - - -- feat: Adds a new feature -- refactor: Improves an existing feature -``` - -Below are examples of invalid entries: - -``` -// Including "skip" with another category -- skip -- feat: Adds a new feature -``` -``` -// Missing a hyphen -feat: Adds a new feature -``` -``` -// Invalid category prefix -- new: Adds something new -``` -``` -// Missing description -- feat -``` -``` -// Description longer than 50 characters -- feat: Adds a new feature that is simply too excellent to be described in 50 characters or less -``` - -### 3. Using a GitHub Actions Workflow to Generate Changeset Files - -Whenever a contributor opens a PR or edits an existing PR, a GitHub Actions workflow is triggered that extracts the metadata from the PR and checks what a contributor has entered in the "Changelog" section of the PR description. - -If a contributor has entered valid changelog entries (see formatting requirements in previous section above), the workflow will categorize these entries and either create or update a `.yml` changeset file in the `changelogs/fragments` directory of the repository. - -This changeset file will include changelog descriptions under their proper category and also add a link to the PR that generated these changes. Below is an example of what the contents of a changeset file will look like: - -```yaml -feat: - - Adds a new feature ([#532](https://github.com/.../pull/532)) - -refactor: - - Improves an existing feature ([#532](https://github.com/.../pull/532)) - -test: - - Add unit testing to new feature ([#532](https://github.com/.../pull/532)) - - Update unit testing for existing feature ([#532](https://github.com/.../pull/532)) -``` - -This changeset file will become part of the code that is merged when the PR is approved. - -If the workflow encounters a `- skip` line in the PR, and there are no other changelog entries present, it will skip the creation of a changeset file, and the workflow will terminate successfully. - -If the workflow encounters an error (e.g., an empty "Changelog" section or an invalid changelog entry), it will fail, and a custom error message will be printed to the workflow logs explaining the reason for the failure. - -Contributors can then address the error and update their PR, which will trigger the workflow to run again. - -### 4. Implementing a Release Notes Script \ No newline at end of file +[GitHub Actions Workflow README](https://github.com/BigSamu/OpenSearch_Change_Set_Create_Action/blob/main/README.md) \ No newline at end of file From 7ba8a701ddea2aee62454151f6ff9ab1a8c07721 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 6 Dec 2023 19:45:39 +0000 Subject: [PATCH 086/242] Add changeset for PR #2 From da6ad8e202d093fc4892a9d142afcf2a2fead580 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 9 Dec 2023 00:53:03 +0000 Subject: [PATCH 087/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 5cd56d56ab2b..addb3aaefc46 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,2 +1,9 @@ feat: -- Adds a feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) +- Adds a second feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +test: +- Adds a new test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +fix: +- Fixes a bug ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 6e9a40111983c3612e88d22510d40ecaf07983f7 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Sat, 9 Dec 2023 14:22:50 +0000 Subject: [PATCH 088/242] deleting test.txt file used to test if other contributors of project were able to push updates to this branch Signed-off-by: Samuel Valdes Gutierrez --- test.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 test.txt diff --git a/test.txt b/test.txt deleted file mode 100644 index 2f153caed8dd..000000000000 --- a/test.txt +++ /dev/null @@ -1 +0,0 @@ -Riley \ No newline at end of file From efdbf39f2f39cbcc06636980b7d30f399c444245 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 9 Dec 2023 14:24:50 +0000 Subject: [PATCH 089/242] Add changeset for PR #2 From 941bf621eebf49ceb36ab2b2fc0b4aeef519d25b Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Sat, 9 Dec 2023 14:25:30 +0000 Subject: [PATCH 090/242] fixing formatting in create_change_set_workflow.yml file Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/create_change_set_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create_change_set_workflow.yml b/.github/workflows/create_change_set_workflow.yml index 0a057a9e7ca9..705f7bd4b3ef 100644 --- a/.github/workflows/create_change_set_workflow.yml +++ b/.github/workflows/create_change_set_workflow.yml @@ -15,5 +15,5 @@ jobs: - name: Update Changelog uses: BigSamu/OpenSearch_Change_Set_Create_Action@main with: - token: ${{ secrets.GITHUB_TOKEN}} + token: ${{secrets.GITHUB_TOKEN}} changeset_path: changelogs/fragments From 36e3fd5b98e550e61911d5c4021fe999f1c5ea28 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Sat, 9 Dec 2023 14:27:03 +0000 Subject: [PATCH 091/242] updating title for README.md in changelogs directory Signed-off-by: Samuel Valdes Gutierrez --- changelogs/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/changelogs/README.md b/changelogs/README.md index bc4504f98fde..94705302945a 100644 --- a/changelogs/README.md +++ b/changelogs/README.md @@ -1,5 +1,5 @@ -# Revised Changelog and Release Notes Process +# Changelog and Release Notes For information regarding the revised changelog and release notes process, please consult the README in the GitHub Actions repository that this process utilizes. To view this README, follow the link below: -[GitHub Actions Workflow README](https://github.com/BigSamu/OpenSearch_Change_Set_Create_Action/blob/main/README.md) \ No newline at end of file +[GitHub Actions Workflow README](https://github.com/BigSamu/OpenSearch_Change_Set_Create_Action/blob/main/README.md) From f91889778761de2ed9170cff9241f8b5a79e0e15 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Sat, 9 Dec 2023 14:27:48 +0000 Subject: [PATCH 092/242] updating description of README.md in changelogs directory Signed-off-by: Samuel Valdes Gutierrez --- changelogs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/README.md b/changelogs/README.md index 94705302945a..a4620754cfd1 100644 --- a/changelogs/README.md +++ b/changelogs/README.md @@ -1,5 +1,5 @@ # Changelog and Release Notes -For information regarding the revised changelog and release notes process, please consult the README in the GitHub Actions repository that this process utilizes. To view this README, follow the link below: +For information regarding the changelog and release notes process, please consult the README in the GitHub Actions repository that this process utilizes. To view this README, follow the link below: [GitHub Actions Workflow README](https://github.com/BigSamu/OpenSearch_Change_Set_Create_Action/blob/main/README.md) From afc82b3ec3604c414d3429d0fb6fa59be345fdc9 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Sat, 9 Dec 2023 14:41:21 +0000 Subject: [PATCH 093/242] removing demo fragments and adding new single one specifiying new feat of Changelog and Release Notes projects in this PR Signed-off-by: Samuel Valdes Gutierrez --- changelogs/fragments/1.yml | 6 ------ changelogs/fragments/2.yml | 9 --------- changelogs/fragments/3.yml | 7 ------- changelogs/fragments/4.yml | 2 -- changelogs/fragments/5519.yml | 4 ++++ 5 files changed, 4 insertions(+), 24 deletions(-) delete mode 100644 changelogs/fragments/1.yml delete mode 100644 changelogs/fragments/2.yml delete mode 100644 changelogs/fragments/3.yml delete mode 100644 changelogs/fragments/4.yml create mode 100644 changelogs/fragments/5519.yml diff --git a/changelogs/fragments/1.yml b/changelogs/fragments/1.yml deleted file mode 100644 index a0ca4f664458..000000000000 --- a/changelogs/fragments/1.yml +++ /dev/null @@ -1,6 +0,0 @@ -fix: -- Updates the graph ([#1](https://github.com/BigSamu/OpenSearch-Dashboards/pull/1)) -- Updates the picture ([#1](https://github.com/BigSamu/OpenSearch-Dashboards/pull/1)) - -infra: -- testing ingra ([#1](https://github.com/BigSamu/OpenSearch-Dashboards/pull/1)) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml deleted file mode 100644 index addb3aaefc46..000000000000 --- a/changelogs/fragments/2.yml +++ /dev/null @@ -1,9 +0,0 @@ -feat: -- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) -- Adds a second feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -test: -- Adds a new test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -fix: -- Fixes a bug ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file diff --git a/changelogs/fragments/3.yml b/changelogs/fragments/3.yml deleted file mode 100644 index 404ca8772b84..000000000000 --- a/changelogs/fragments/3.yml +++ /dev/null @@ -1,7 +0,0 @@ -fix: -- Updates the graph ([#3](https://github.com/BigSamu/OpenSearch-Dashboards/pull/3)) - -doc: -- Creating docs 1 ([#3](https://github.com/BigSamu/OpenSearch-Dashboards/pull/3)) -- Creating docs 2 ([#3](https://github.com/BigSamu/OpenSearch-Dashboards/pull/3)) -- Creating docs 3 ([#3](https://github.com/BigSamu/OpenSearch-Dashboards/pull/3)) diff --git a/changelogs/fragments/4.yml b/changelogs/fragments/4.yml deleted file mode 100644 index 7d7e6cb909b3..000000000000 --- a/changelogs/fragments/4.yml +++ /dev/null @@ -1,2 +0,0 @@ -refactor: -- Refactor huge code([#4](https://github.com/BigSamu/OpenSearch-Dashboards/pull/4)) diff --git a/changelogs/fragments/5519.yml b/changelogs/fragments/5519.yml new file mode 100644 index 000000000000..f67e6baed1f6 --- /dev/null +++ b/changelogs/fragments/5519.yml @@ -0,0 +1,4 @@ +feat: +- Designed new procedure for automating the process for updates of changelogs and release notes ([#5519](https://github.com/BigSamu/OpenSearch-Dashboards/pull/5519)) +- Created Github workflow automating creation of changeset files (i.e. fragments) with changelog entries related to update([#5519](https://github.com/BigSamu/OpenSearch-Dashboards/pull/5519)) +- Created script automating the update of CHANGELOG.md file and release notes files ([#5519](https://github.com/BigSamu/OpenSearch-Dashboards/pull/5519)) From 3af0f221baa05103d77bb5a7252bb1377fca3bc3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 9 Dec 2023 14:42:55 +0000 Subject: [PATCH 094/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 changelogs/fragments/2.yml diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml new file mode 100644 index 000000000000..addb3aaefc46 --- /dev/null +++ b/changelogs/fragments/2.yml @@ -0,0 +1,9 @@ +feat: +- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) +- Adds a second feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +test: +- Adds a new test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +fix: +- Fixes a bug ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 7d9145a6a365cb492b07b0f0f48778bd60305ee1 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Sat, 9 Dec 2023 14:46:28 +0000 Subject: [PATCH 095/242] removing demo fragment 2.yml Signed-off-by: Samuel Valdes Gutierrez --- changelogs/fragments/2.yml | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 changelogs/fragments/2.yml diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml deleted file mode 100644 index addb3aaefc46..000000000000 --- a/changelogs/fragments/2.yml +++ /dev/null @@ -1,9 +0,0 @@ -feat: -- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) -- Adds a second feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -test: -- Adds a new test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -fix: -- Fixes a bug ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From e907bc8bd81abfadf7af0a60c72ca1b56ba440a7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 9 Dec 2023 14:47:11 +0000 Subject: [PATCH 096/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 changelogs/fragments/2.yml diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml new file mode 100644 index 000000000000..addb3aaefc46 --- /dev/null +++ b/changelogs/fragments/2.yml @@ -0,0 +1,9 @@ +feat: +- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) +- Adds a second feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +test: +- Adds a new test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +fix: +- Fixes a bug ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 79813cb31252a6f8b0d46f025649bd82fcb5a3e5 Mon Sep 17 00:00:00 2001 From: CMDWillYang Date: Mon, 11 Dec 2023 12:57:14 -0500 Subject: [PATCH 097/242] removed fragment thats too long. added helper file, used async functions, and added validation. Signed-off-by: CMDWillYang --- changelogs/fragments/5519.yml | 4 - scripts/generate_release_note.js | 1 + src/dev/generate_release_note.ts | 137 +++++++++++------------- src/dev/generate_release_note_helper.ts | 66 ++++++++++++ 4 files changed, 128 insertions(+), 80 deletions(-) delete mode 100644 changelogs/fragments/5519.yml create mode 100644 src/dev/generate_release_note_helper.ts diff --git a/changelogs/fragments/5519.yml b/changelogs/fragments/5519.yml deleted file mode 100644 index f67e6baed1f6..000000000000 --- a/changelogs/fragments/5519.yml +++ /dev/null @@ -1,4 +0,0 @@ -feat: -- Designed new procedure for automating the process for updates of changelogs and release notes ([#5519](https://github.com/BigSamu/OpenSearch-Dashboards/pull/5519)) -- Created Github workflow automating creation of changeset files (i.e. fragments) with changelog entries related to update([#5519](https://github.com/BigSamu/OpenSearch-Dashboards/pull/5519)) -- Created script automating the update of CHANGELOG.md file and release notes files ([#5519](https://github.com/BigSamu/OpenSearch-Dashboards/pull/5519)) diff --git a/scripts/generate_release_note.js b/scripts/generate_release_note.js index 35a1581fea6d..4721fe0dec35 100644 --- a/scripts/generate_release_note.js +++ b/scripts/generate_release_note.js @@ -5,3 +5,4 @@ require('../src/setup_node_env'); require('../src/dev/generate_release_note'); +require('../src/dev/generate_release_note_helper'); diff --git a/src/dev/generate_release_note.ts b/src/dev/generate_release_note.ts index b002711f151e..4f6fd6743e48 100644 --- a/src/dev/generate_release_note.ts +++ b/src/dev/generate_release_note.ts @@ -6,12 +6,18 @@ import { resolve } from 'path'; import { readFileSync, writeFileSync, readdirSync, unlinkSync } from 'fs'; import { load as loadYaml } from 'js-yaml'; +import { readdir } from 'fs/promises'; import { version as pkgVersion } from '../../package.json'; - -// Define constant paths -const filePath = resolve(__dirname, '..', '..', 'CHANGELOG.md'); -const fragmentDirPath = resolve(__dirname, '..', '..', 'changelogs', 'fragments'); -const releaseNotesDirPath = resolve(__dirname, '..', '..', 'release-notes'); +import { + validateFragment, + getCurrentDateFormatted, + Changelog, + SECTION_MAPPING, + fragmentDirPath, + SectionKey, + releaseNotesDirPath, + filePath, +} from './generate_release_note_helper'; // Function to add content after the 'Unreleased' section in the changelog function addContentAfterUnreleased(path: string, newContent: string): void { @@ -38,87 +44,66 @@ function addContentAfterUnreleased(path: string, newContent: string): void { writeFileSync(path, fileContent); } -// Function to format the current date -function getCurrentDateFormatted(): string { - const now = new Date(); - const year = now.getFullYear(); - const month = now.getMonth() + 1; - const day = now.getDate(); - - const formattedMonth = month.toString().padStart(2, '0'); - const formattedDay = day.toString().padStart(2, '0'); - - return `${year}-${formattedMonth}-${formattedDay}`; -} - const currentDate = getCurrentDateFormatted(); -// Define section mapping -const SECTION_MAPPING = { - breaking: '💥 Breaking Changes', - deprecate: 'Deprecations', - security: '🛡 Security', - feat: '📈 Features/Enhancements', - fix: '🐛 Bug Fixes', - infra: '🚞 Infrastructure', - doc: '📝 Documentation', - chore: '🛠 Maintenance', - refactor: '🪛 Refactoring', - test: '🔩 Tests', -}; - -type SectionKey = keyof typeof SECTION_MAPPING; -type Changelog = Record; - // Initialize sections const sections: Changelog = (Object.fromEntries( Object.keys(SECTION_MAPPING).map((key) => [key, []]) ) as unknown) as Changelog; // Read fragment files and populate sections -const fragmentPaths = readdirSync(fragmentDirPath).filter( - (path) => path.endsWith('.yml') || path.endsWith('.yaml') -); - -for (const fragmentFilename of fragmentPaths) { - const fragmentPath = resolve(fragmentDirPath, fragmentFilename); - const fragmentContents = readFileSync(fragmentPath, { encoding: 'utf-8' }); - const fragmentYaml = loadYaml(fragmentContents) as Changelog; - - for (const [sectionKey, entries] of Object.entries(fragmentYaml)) { - if (!SECTION_MAPPING[sectionKey as SectionKey]) { - throw new Error(`Unknown section ${sectionKey}.`); +async function readFragments() { + const fragmentPaths = await readdir(fragmentDirPath, { withFileTypes: true }); + for (const fragmentFilename of fragmentPaths) { + // skip non yml or yaml files + if (!fragmentFilename.name.endsWith('.yml') && !fragmentFilename.name.endsWith('.yaml')) { + // eslint-disable-next-line no-console + console.warn(`Skipping non yml or yaml file ${fragmentFilename.name}`); + continue; + } + + const fragmentPath = resolve(fragmentDirPath, fragmentFilename.name); + const fragmentContents = readFileSync(fragmentPath, { encoding: 'utf-8' }); + + validateFragment(fragmentContents); + + const fragmentYaml = loadYaml(fragmentContents) as Changelog; + + for (const [sectionKey, entries] of Object.entries(fragmentYaml)) { + sections[sectionKey as SectionKey].push(...entries); } + } - sections[sectionKey as SectionKey].push(...entries); + // Delete fragment files + for (const fragmentFilename of fragmentPaths) { + const fragmentPath = resolve(fragmentDirPath, fragmentFilename.name); + unlinkSync(fragmentPath); } } -// Generate changelog sections -const changelogSections = Object.entries(sections).map(([sectionKey, entries]) => { - const sectionName = SECTION_MAPPING[sectionKey as SectionKey]; - return entries.length === 0 - ? `### ${sectionName}` - : `### ${sectionName}\n\n${entries.map((entry) => ` - ${entry}`).join('\n')}`; -}); - -// Generate full changelog -const changelog = `## [${pkgVersion}-${currentDate}](https://github.com/opensearch-project/OpenSearch-Dashboards/releases/tag/${pkgVersion}) - -${changelogSections.join('\n\n')} -`; - -// Generate release note -const releaseNoteFilename = `opensearch-dashboards.release-notes-${pkgVersion}.md`; -const releaseNoteHeader = `# VERSION ${pkgVersion} Release Note`; -const releaseNote = `${releaseNoteHeader}\n\n${changelogSections.join('\n\n')}`; -writeFileSync(resolve(releaseNotesDirPath, releaseNoteFilename), releaseNote); - -// Update changelog file -addContentAfterUnreleased(filePath, changelog); - -// Delete fragment files -for (const fragmentFilename of fragmentPaths) { - const fragmentPath = resolve(fragmentDirPath, fragmentFilename); - unlinkSync(fragmentPath); -} +(async () => { + await readFragments(); + + // Generate changelog sections + const changelogSections = Object.entries(sections).map(([sectionKey, entries]) => { + const sectionName = SECTION_MAPPING[sectionKey as SectionKey]; + return entries.length === 0 + ? `### ${sectionName}` + : `### ${sectionName}\n\n${entries.map((entry) => ` - ${entry}`).join('\n')}`; + }); + + // Generate full changelog + const changelog = `## [${pkgVersion}-${currentDate}](https://github.com/opensearch-project/OpenSearch-Dashboards/releases/tag/${pkgVersion}) + + ${changelogSections.join('\n\n')} + `; + + // Generate release note + const releaseNoteFilename = `opensearch-dashboards.release-notes-${pkgVersion}.md`; + const releaseNoteHeader = `# VERSION ${pkgVersion} Release Note`; + const releaseNote = `${releaseNoteHeader}\n\n${changelogSections.join('\n\n')}`; + writeFileSync(resolve(releaseNotesDirPath, releaseNoteFilename), releaseNote); + + // Update changelog file + addContentAfterUnreleased(filePath, changelog); +})(); diff --git a/src/dev/generate_release_note_helper.ts b/src/dev/generate_release_note_helper.ts new file mode 100644 index 000000000000..a895edf03703 --- /dev/null +++ b/src/dev/generate_release_note_helper.ts @@ -0,0 +1,66 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + +import { resolve } from 'path'; + +export const filePath = resolve(__dirname, '..', '..', 'CHANGELOG.md'); +export const fragmentDirPath = resolve(__dirname, '..', '..', 'changelogs', 'fragments'); +export const releaseNotesDirPath = resolve(__dirname, '..', '..', 'release-notes'); + +export function getCurrentDateFormatted(): string { + const now = new Date(); + const year = now.getFullYear(); + const month = now.getMonth() + 1; + const day = now.getDate(); + + const formattedMonth = month.toString().padStart(2, '0'); + const formattedDay = day.toString().padStart(2, '0'); + + return `${year}-${formattedMonth}-${formattedDay}`; +} + +export const SECTION_MAPPING = { + breaking: '💥 Breaking Changes', + deprecate: 'Deprecations', + security: '🛡 Security', + feat: '📈 Features/Enhancements', + fix: '🐛 Bug Fixes', + infra: '🚞 Infrastructure', + doc: '📝 Documentation', + chore: '🛠 Maintenance', + refactor: '🪛 Refactoring', + test: '🔩 Tests', +}; + +export type SectionKey = keyof typeof SECTION_MAPPING; +export type Changelog = Record; + +const MAX_ENTRY_LENGTH = 50; + +// validate format of fragment files +export function validateFragment(content: string) { + const sections = content.split('\n\n'); + + // validate each section + for (const section of sections) { + const lines = section.split('\n'); + const sectionName = lines[0]; + const sectionKey = sectionName.slice(0, -1); + + if (!SECTION_MAPPING[sectionKey as SectionKey] || !sectionName.endsWith(':')) { + throw new Error(`Unknown section ${sectionKey}.`); + } + // validate entries. each entry must start with '-' and a space. then followed by a string. string must be non-empty and less than 50 characters + const entryRegex = new RegExp(`^-.{1,${MAX_ENTRY_LENGTH}}\\(\\[#.+]\\(.+\\)\\)$`); + for (const entry of lines.slice(1)) { + if (entry === '') { + continue; + } + if (!entryRegex.test(entry)) { + throw new Error(`Invalid entry ${entry} in section ${sectionKey}.`); + } + } + } +} From db0024effb3ca6f861f3b2270517b40f761c053b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 11 Dec 2023 17:58:23 +0000 Subject: [PATCH 098/242] Add changeset for PR #2 From 2090f1c69d19bf1059975ce16d8ba5ae02e0ba15 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 12 Dec 2023 21:45:15 +0000 Subject: [PATCH 099/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index addb3aaefc46..89246cb73db0 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,9 +1,5 @@ feat: -- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) -- Adds a second feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) +- Adds new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) -test: -- Adds a new test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -fix: -- Fixes a bug ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +doc: +- Adds documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From b200102be28e60c9ae7479231e0516cdbe009219 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 12 Dec 2023 22:12:12 +0000 Subject: [PATCH 100/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 89246cb73db0..462d8398fd3b 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,5 +1 @@ -feat: -- Adds new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -doc: -- Adds documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +skip: From c6bcd39d5ab28810a601761011871569a03939c4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 12 Dec 2023 23:06:53 +0000 Subject: [PATCH 101/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 462d8398fd3b..167427ca4c1b 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1 +1,5 @@ -skip: +feat: +- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +doc: +- Adds documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 48e6b56f04ad451fcc5e468307945f8a5ffba18d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 13 Dec 2023 05:11:55 +0000 Subject: [PATCH 102/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 167427ca4c1b..4c4a03839787 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,5 +1,2 @@ feat: -- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -doc: -- Adds documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From c24773b92ff42208e43beca6a5bbcbf7c3da94d8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 13 Dec 2023 05:14:51 +0000 Subject: [PATCH 103/242] Add changeset for PR #2 From 616290fc0a8f79da564476f3740c719f0db7d726 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 13 Dec 2023 05:20:22 +0000 Subject: [PATCH 104/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 4c4a03839787..975b36f774b3 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,2 +1,2 @@ feat: -- Adds a new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- Adds new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 2d2a42527338a2fb51b119486ec5e9c83f692ab9 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Wed, 13 Dec 2023 11:41:21 +0000 Subject: [PATCH 105/242] adding 5519.yml fragment file and removing 2.yml dummy fragment file Signed-off-by: Samuel Valdes Gutierrez --- changelogs/fragments/2.yml | 2 -- changelogs/fragments/5519.yml | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 changelogs/fragments/2.yml create mode 100644 changelogs/fragments/5519.yml diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml deleted file mode 100644 index 975b36f774b3..000000000000 --- a/changelogs/fragments/2.yml +++ /dev/null @@ -1,2 +0,0 @@ -feat: -- Adds new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file diff --git a/changelogs/fragments/5519.yml b/changelogs/fragments/5519.yml new file mode 100644 index 000000000000..f67e6baed1f6 --- /dev/null +++ b/changelogs/fragments/5519.yml @@ -0,0 +1,4 @@ +feat: +- Designed new procedure for automating the process for updates of changelogs and release notes ([#5519](https://github.com/BigSamu/OpenSearch-Dashboards/pull/5519)) +- Created Github workflow automating creation of changeset files (i.e. fragments) with changelog entries related to update([#5519](https://github.com/BigSamu/OpenSearch-Dashboards/pull/5519)) +- Created script automating the update of CHANGELOG.md file and release notes files ([#5519](https://github.com/BigSamu/OpenSearch-Dashboards/pull/5519)) From 862b72b64f00b89cbe42d9cae182ec009eda6ae8 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Wed, 13 Dec 2023 11:43:31 +0000 Subject: [PATCH 106/242] updating changeset worflow removing syncronize option Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/create_change_set_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create_change_set_workflow.yml b/.github/workflows/create_change_set_workflow.yml index 705f7bd4b3ef..be90c1f5e09b 100644 --- a/.github/workflows/create_change_set_workflow.yml +++ b/.github/workflows/create_change_set_workflow.yml @@ -2,7 +2,7 @@ name: Create Change Set on: pull_request: - types: [synchronize, opened, edited] + types: [opened, edited] paths-ignore: - 'changelogs/fragments/**/*' From 4f63874959b7cba43ff3e2ad753f0980d020ba55 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Wed, 13 Dec 2023 11:58:01 +0000 Subject: [PATCH 107/242] deleting 5519.yml fragment file (now will be generated by workflow) Signed-off-by: Samuel Valdes Gutierrez --- changelogs/fragments/5519.yml | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 changelogs/fragments/5519.yml diff --git a/changelogs/fragments/5519.yml b/changelogs/fragments/5519.yml deleted file mode 100644 index f67e6baed1f6..000000000000 --- a/changelogs/fragments/5519.yml +++ /dev/null @@ -1,4 +0,0 @@ -feat: -- Designed new procedure for automating the process for updates of changelogs and release notes ([#5519](https://github.com/BigSamu/OpenSearch-Dashboards/pull/5519)) -- Created Github workflow automating creation of changeset files (i.e. fragments) with changelog entries related to update([#5519](https://github.com/BigSamu/OpenSearch-Dashboards/pull/5519)) -- Created script automating the update of CHANGELOG.md file and release notes files ([#5519](https://github.com/BigSamu/OpenSearch-Dashboards/pull/5519)) From aef2861207ea90cac6976efc29b6b56951624885 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 13 Dec 2023 15:18:42 +0000 Subject: [PATCH 108/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/2.yml diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml new file mode 100644 index 000000000000..975b36f774b3 --- /dev/null +++ b/changelogs/fragments/2.yml @@ -0,0 +1,2 @@ +feat: +- Adds new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From f359dfbd5572e8cb86d3d6bc6ce7ef8ef47e5c88 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 13 Dec 2023 15:22:57 +0000 Subject: [PATCH 109/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 975b36f774b3..89246cb73db0 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,2 +1,5 @@ feat: -- Adds new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- Adds new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +doc: +- Adds documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From c258342e8980f592a1c09e044de5c18fc3b77bde Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Wed, 13 Dec 2023 15:42:14 +0000 Subject: [PATCH 110/242] removing 2.yml fragment dummy file Signed-off-by: Samuel Valdes Gutierrez --- changelogs/fragments/2.yml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 changelogs/fragments/2.yml diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml deleted file mode 100644 index 89246cb73db0..000000000000 --- a/changelogs/fragments/2.yml +++ /dev/null @@ -1,5 +0,0 @@ -feat: -- Adds new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -doc: -- Adds documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From d117bd522a7f5aabc61d4788afc09ffcf27cf25e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 13 Dec 2023 15:46:39 +0000 Subject: [PATCH 111/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 changelogs/fragments/2.yml diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml new file mode 100644 index 000000000000..89246cb73db0 --- /dev/null +++ b/changelogs/fragments/2.yml @@ -0,0 +1,5 @@ +feat: +- Adds new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +doc: +- Adds documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 996b6ecde060f70b879961f87bdbca1178d7830f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 13 Dec 2023 15:48:59 +0000 Subject: [PATCH 112/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 89246cb73db0..99b1a4662008 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -2,4 +2,7 @@ feat: - Adds new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) doc: -- Adds documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- Adds documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +test: +- Test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From ced0e10d665876db041b84784e0f236064c633e2 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Wed, 13 Dec 2023 15:50:04 +0000 Subject: [PATCH 113/242] removing 2.yml fragment dummy file Signed-off-by: Samuel Valdes Gutierrez --- changelogs/fragments/2.yml | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 changelogs/fragments/2.yml diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml deleted file mode 100644 index 99b1a4662008..000000000000 --- a/changelogs/fragments/2.yml +++ /dev/null @@ -1,8 +0,0 @@ -feat: -- Adds new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -doc: -- Adds documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -test: -- Test ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 9387e34340d41b0125906e6e9b6044c9fe5449fa Mon Sep 17 00:00:00 2001 From: CMDWillYang Date: Wed, 13 Dec 2023 11:27:22 -0500 Subject: [PATCH 114/242] refactored code (deleteFragments, readFragments returns sections and paths) Signed-off-by: CMDWillYang --- src/dev/generate_release_note.ts | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/src/dev/generate_release_note.ts b/src/dev/generate_release_note.ts index 4f6fd6743e48..c3fd387d4a63 100644 --- a/src/dev/generate_release_note.ts +++ b/src/dev/generate_release_note.ts @@ -4,7 +4,7 @@ */ import { resolve } from 'path'; -import { readFileSync, writeFileSync, readdirSync, unlinkSync } from 'fs'; +import { readFileSync, writeFileSync, unlinkSync, Dirent } from 'fs'; import { load as loadYaml } from 'js-yaml'; import { readdir } from 'fs/promises'; import { version as pkgVersion } from '../../package.json'; @@ -44,15 +44,21 @@ function addContentAfterUnreleased(path: string, newContent: string): void { writeFileSync(path, fileContent); } -const currentDate = getCurrentDateFormatted(); - -// Initialize sections -const sections: Changelog = (Object.fromEntries( - Object.keys(SECTION_MAPPING).map((key) => [key, []]) -) as unknown) as Changelog; +function deleteFragments(fragmentPaths: Dirent[]): void { + // Delete fragment files + for (const fragmentFilename of fragmentPaths) { + const fragmentPath = resolve(fragmentDirPath, fragmentFilename.name); + unlinkSync(fragmentPath); + } +} // Read fragment files and populate sections async function readFragments() { + // Initialize sections + const sections: Changelog = (Object.fromEntries( + Object.keys(SECTION_MAPPING).map((key) => [key, []]) + ) as unknown) as Changelog; + const fragmentPaths = await readdir(fragmentDirPath, { withFileTypes: true }); for (const fragmentFilename of fragmentPaths) { // skip non yml or yaml files @@ -73,16 +79,12 @@ async function readFragments() { sections[sectionKey as SectionKey].push(...entries); } } - - // Delete fragment files - for (const fragmentFilename of fragmentPaths) { - const fragmentPath = resolve(fragmentDirPath, fragmentFilename.name); - unlinkSync(fragmentPath); - } + return { sections, fragmentPaths }; } (async () => { - await readFragments(); + const { sections, fragmentPaths } = await readFragments(); + deleteFragments(fragmentPaths); // Generate changelog sections const changelogSections = Object.entries(sections).map(([sectionKey, entries]) => { @@ -93,6 +95,7 @@ async function readFragments() { }); // Generate full changelog + const currentDate = getCurrentDateFormatted(); const changelog = `## [${pkgVersion}-${currentDate}](https://github.com/opensearch-project/OpenSearch-Dashboards/releases/tag/${pkgVersion}) ${changelogSections.join('\n\n')} From 4ec65488bbc582cdcc38d286b97f0e3f9fa2146d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 13 Dec 2023 16:31:18 +0000 Subject: [PATCH 115/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/2.yml diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml new file mode 100644 index 000000000000..975b36f774b3 --- /dev/null +++ b/changelogs/fragments/2.yml @@ -0,0 +1,2 @@ +feat: +- Adds new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 0c4a14106ec48da351a74753d1046b7e600766b5 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Wed, 13 Dec 2023 16:32:21 +0000 Subject: [PATCH 116/242] removing 2.yml fragment dummy file Signed-off-by: Samuel Valdes Gutierrez --- changelogs/fragments/2.yml | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 changelogs/fragments/2.yml diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml deleted file mode 100644 index 975b36f774b3..000000000000 --- a/changelogs/fragments/2.yml +++ /dev/null @@ -1,2 +0,0 @@ -feat: -- Adds new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From d736d6b30740824b7bdf3632564ce6062301fdaa Mon Sep 17 00:00:00 2001 From: CMDWillYang Date: Wed, 13 Dec 2023 13:07:45 -0500 Subject: [PATCH 117/242] moved deleteFragment to end of script Signed-off-by: CMDWillYang --- src/dev/generate_release_note.ts | 3 ++- src/dev/generate_release_note_helper.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dev/generate_release_note.ts b/src/dev/generate_release_note.ts index c3fd387d4a63..589bfc98d58a 100644 --- a/src/dev/generate_release_note.ts +++ b/src/dev/generate_release_note.ts @@ -84,7 +84,6 @@ async function readFragments() { (async () => { const { sections, fragmentPaths } = await readFragments(); - deleteFragments(fragmentPaths); // Generate changelog sections const changelogSections = Object.entries(sections).map(([sectionKey, entries]) => { @@ -109,4 +108,6 @@ async function readFragments() { // Update changelog file addContentAfterUnreleased(filePath, changelog); + + deleteFragments(fragmentPaths); })(); diff --git a/src/dev/generate_release_note_helper.ts b/src/dev/generate_release_note_helper.ts index a895edf03703..ac2fe96b2fa8 100644 --- a/src/dev/generate_release_note_helper.ts +++ b/src/dev/generate_release_note_helper.ts @@ -58,7 +58,8 @@ export function validateFragment(content: string) { if (entry === '') { continue; } - if (!entryRegex.test(entry)) { + // if (!entryRegex.test(entry)) { + if (!entryRegex.test(entry.trim())) { throw new Error(`Invalid entry ${entry} in section ${sectionKey}.`); } } From bc988e79fe0dede5547fb9f7d52b66aca22af31e Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Wed, 13 Dec 2023 18:08:16 +0000 Subject: [PATCH 118/242] removing changelog_verifier.yml Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/changelog_verifier.yml | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 .github/workflows/changelog_verifier.yml diff --git a/.github/workflows/changelog_verifier.yml b/.github/workflows/changelog_verifier.yml deleted file mode 100644 index 0890ea8b8fbb..000000000000 --- a/.github/workflows/changelog_verifier.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: "Changelog Verifier" -on: - pull_request: - branches: [ '**', '!feature/**' ] - types: [opened, edited, review_requested, synchronize, reopened, ready_for_review, labeled, unlabeled] - -jobs: - # Enforces the update of a changelog file on every pull request - verify-changelog: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - ref: ${{ github.event.pull_request.head.sha }} - - - uses: dangoslen/changelog-enforcer@v3 - with: - skipLabels: "autocut, Skip-Changelog" From 8d456ff1e74e33cd34d173e3f3d2f46c385f9a2f Mon Sep 17 00:00:00 2001 From: CMDWillYang Date: Wed, 13 Dec 2023 13:23:55 -0500 Subject: [PATCH 119/242] changed max_length to 100 Signed-off-by: CMDWillYang --- src/dev/generate_release_note_helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev/generate_release_note_helper.ts b/src/dev/generate_release_note_helper.ts index ac2fe96b2fa8..b22cf409b3ae 100644 --- a/src/dev/generate_release_note_helper.ts +++ b/src/dev/generate_release_note_helper.ts @@ -37,7 +37,7 @@ export const SECTION_MAPPING = { export type SectionKey = keyof typeof SECTION_MAPPING; export type Changelog = Record; -const MAX_ENTRY_LENGTH = 50; +const MAX_ENTRY_LENGTH = 100; // validate format of fragment files export function validateFragment(content: string) { From 53e5445ec9d33801dda46ce876fe741a617995f8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 13 Dec 2023 18:38:11 +0000 Subject: [PATCH 120/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 changelogs/fragments/2.yml diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml new file mode 100644 index 000000000000..5abf36c586a5 --- /dev/null +++ b/changelogs/fragments/2.yml @@ -0,0 +1,5 @@ +feat: +- Adds new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +doc: +- Add documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 44958fc967b43aee054e5a9ffa50426908ef7cd6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 13 Dec 2023 18:38:39 +0000 Subject: [PATCH 121/242] Add changeset for PR #2 From 53bf365ba9735136d112d82aa8c71a0026bbc887 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Wed, 13 Dec 2023 18:48:23 +0000 Subject: [PATCH 122/242] adding write permissions to for changeset workflow Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/create_change_set_workflow.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/create_change_set_workflow.yml b/.github/workflows/create_change_set_workflow.yml index be90c1f5e09b..fd93ccb30e94 100644 --- a/.github/workflows/create_change_set_workflow.yml +++ b/.github/workflows/create_change_set_workflow.yml @@ -9,6 +9,9 @@ on: jobs: update-changelog: runs-on: ubuntu-latest + permissions: + contents: write + issues: write steps: - name: Check out repository uses: actions/checkout@v4 From e4798bb6699ee46a0a1bb490c3397bc56e09982a Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Wed, 13 Dec 2023 18:48:53 +0000 Subject: [PATCH 123/242] removing 2.yml fragment dummy file Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/create_change_set_workflow.yml | 1 + changelogs/fragments/2.yml | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 changelogs/fragments/2.yml diff --git a/.github/workflows/create_change_set_workflow.yml b/.github/workflows/create_change_set_workflow.yml index fd93ccb30e94..c8e3a327e2bb 100644 --- a/.github/workflows/create_change_set_workflow.yml +++ b/.github/workflows/create_change_set_workflow.yml @@ -12,6 +12,7 @@ jobs: permissions: contents: write issues: write + pull-requests: write steps: - name: Check out repository uses: actions/checkout@v4 diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml deleted file mode 100644 index 5abf36c586a5..000000000000 --- a/changelogs/fragments/2.yml +++ /dev/null @@ -1,5 +0,0 @@ -feat: -- Adds new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -doc: -- Add documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From a7ed3c031e8bb69baca75dd3e527c93cfb62809c Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Wed, 13 Dec 2023 18:54:16 +0000 Subject: [PATCH 124/242] adding write permissions to for changeset workflow Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/create_change_set_workflow.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/create_change_set_workflow.yml b/.github/workflows/create_change_set_workflow.yml index c8e3a327e2bb..ba06089a253c 100644 --- a/.github/workflows/create_change_set_workflow.yml +++ b/.github/workflows/create_change_set_workflow.yml @@ -13,6 +13,7 @@ jobs: contents: write issues: write pull-requests: write + repository-projects: write steps: - name: Check out repository uses: actions/checkout@v4 From 97eb4c98a04c4fe71b78a0ec9e3a75bda7f10302 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Wed, 13 Dec 2023 19:06:08 +0000 Subject: [PATCH 125/242] adding write permissions to for changeset workflow Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/create_change_set_workflow.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/create_change_set_workflow.yml b/.github/workflows/create_change_set_workflow.yml index ba06089a253c..3ee975e492f6 100644 --- a/.github/workflows/create_change_set_workflow.yml +++ b/.github/workflows/create_change_set_workflow.yml @@ -9,11 +9,7 @@ on: jobs: update-changelog: runs-on: ubuntu-latest - permissions: - contents: write - issues: write - pull-requests: write - repository-projects: write + permissions: write-all steps: - name: Check out repository uses: actions/checkout@v4 From bc888ec0f395c00ecf520afb9293d17f9591ad59 Mon Sep 17 00:00:00 2001 From: CMDWillYang Date: Wed, 13 Dec 2023 14:15:12 -0500 Subject: [PATCH 126/242] refactored code/main function, now move fragment to temp folder. Signed-off-by: CMDWillYang --- src/dev/generate_release_note.ts | 54 ++++++++++++++++++------- src/dev/generate_release_note_helper.ts | 1 + 2 files changed, 40 insertions(+), 15 deletions(-) diff --git a/src/dev/generate_release_note.ts b/src/dev/generate_release_note.ts index 589bfc98d58a..158c48b79d49 100644 --- a/src/dev/generate_release_note.ts +++ b/src/dev/generate_release_note.ts @@ -4,9 +4,9 @@ */ import { resolve } from 'path'; -import { readFileSync, writeFileSync, unlinkSync, Dirent } from 'fs'; +import { readFileSync, writeFileSync, Dirent, renameSync, rm } from 'fs'; import { load as loadYaml } from 'js-yaml'; -import { readdir } from 'fs/promises'; +import { mkdir, readdir } from 'fs/promises'; import { version as pkgVersion } from '../../package.json'; import { validateFragment, @@ -14,6 +14,7 @@ import { Changelog, SECTION_MAPPING, fragmentDirPath, + fragmentTempDirPath, SectionKey, releaseNotesDirPath, filePath, @@ -44,12 +45,12 @@ function addContentAfterUnreleased(path: string, newContent: string): void { writeFileSync(path, fileContent); } -function deleteFragments(fragmentPaths: Dirent[]): void { - // Delete fragment files - for (const fragmentFilename of fragmentPaths) { - const fragmentPath = resolve(fragmentDirPath, fragmentFilename.name); - unlinkSync(fragmentPath); - } +async function deleteFragments() { + rm(fragmentTempDirPath, { recursive: true }, (err: any) => { + if (err) { + throw err; + } + }); } // Read fragment files and populate sections @@ -82,9 +83,19 @@ async function readFragments() { return { sections, fragmentPaths }; } -(async () => { - const { sections, fragmentPaths } = await readFragments(); +async function moveFragments(fragmentPaths: Dirent[]): Promise { + // create folder for temp fragments at fragmentTempDirPath + await mkdir(fragmentTempDirPath, { recursive: true }); + + // Move fragment files to temp fragments folder + for (const fragmentFilename of fragmentPaths) { + const fragmentPath = resolve(fragmentDirPath, fragmentFilename.name); + const fragmentTempPath = resolve(fragmentTempDirPath, fragmentFilename.name); + renameSync(fragmentPath, fragmentTempPath); + } +} +function generateChangelog(sections: Changelog) { // Generate changelog sections const changelogSections = Object.entries(sections).map(([sectionKey, entries]) => { const sectionName = SECTION_MAPPING[sectionKey as SectionKey]; @@ -95,19 +106,32 @@ async function readFragments() { // Generate full changelog const currentDate = getCurrentDateFormatted(); - const changelog = `## [${pkgVersion}-${currentDate}](https://github.com/opensearch-project/OpenSearch-Dashboards/releases/tag/${pkgVersion}) - + const changelog = `## [${pkgVersion}-${currentDate}]( ${changelogSections.join('\n\n')} `; + // Update changelog file + addContentAfterUnreleased(filePath, changelog); + return changelogSections; +} +function generateReleaseNote(changelogSections: string[]) { // Generate release note const releaseNoteFilename = `opensearch-dashboards.release-notes-${pkgVersion}.md`; const releaseNoteHeader = `# VERSION ${pkgVersion} Release Note`; const releaseNote = `${releaseNoteHeader}\n\n${changelogSections.join('\n\n')}`; writeFileSync(resolve(releaseNotesDirPath, releaseNoteFilename), releaseNote); +} - // Update changelog file - addContentAfterUnreleased(filePath, changelog); +(async () => { + const { sections, fragmentPaths } = await readFragments(); + + // move fragments to temp fragments folder + await moveFragments(fragmentPaths); + + const changelogSections = generateChangelog(sections); + + generateReleaseNote(changelogSections); - deleteFragments(fragmentPaths); + // remove temp fragments folder + await deleteFragments(); })(); diff --git a/src/dev/generate_release_note_helper.ts b/src/dev/generate_release_note_helper.ts index b22cf409b3ae..0f73122755f7 100644 --- a/src/dev/generate_release_note_helper.ts +++ b/src/dev/generate_release_note_helper.ts @@ -7,6 +7,7 @@ import { resolve } from 'path'; export const filePath = resolve(__dirname, '..', '..', 'CHANGELOG.md'); export const fragmentDirPath = resolve(__dirname, '..', '..', 'changelogs', 'fragments'); +export const fragmentTempDirPath = resolve(__dirname, '..', '..', 'changelogs', 'temp_fragments'); export const releaseNotesDirPath = resolve(__dirname, '..', '..', 'release-notes'); export function getCurrentDateFormatted(): string { From 1b43e42e33a77dce16453bf4031059b7e2ce8d84 Mon Sep 17 00:00:00 2001 From: Johnathon Bowers Date: Wed, 13 Dec 2023 17:25:37 -0500 Subject: [PATCH 127/242] Add test.txt Signed-off-by: Johnathon Bowers --- test.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 test.txt diff --git a/test.txt b/test.txt new file mode 100644 index 000000000000..e69de29bb2d1 From 8bb008ba0c1735c82516bbc329b8f2e1587d3373 Mon Sep 17 00:00:00 2001 From: Johnathon Bowers Date: Wed, 13 Dec 2023 17:28:09 -0500 Subject: [PATCH 128/242] Remove test.txt Signed-off-by: Johnathon Bowers --- test.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 test.txt diff --git a/test.txt b/test.txt deleted file mode 100644 index e69de29bb2d1..000000000000 From 0b567744b14e4a398a116ea60708c78d3cc08377 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Wed, 13 Dec 2023 23:45:22 +0000 Subject: [PATCH 129/242] updating token name for workflow Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/create_change_set_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create_change_set_workflow.yml b/.github/workflows/create_change_set_workflow.yml index 3ee975e492f6..0b0ddaeb7ca9 100644 --- a/.github/workflows/create_change_set_workflow.yml +++ b/.github/workflows/create_change_set_workflow.yml @@ -16,5 +16,5 @@ jobs: - name: Update Changelog uses: BigSamu/OpenSearch_Change_Set_Create_Action@main with: - token: ${{secrets.GITHUB_TOKEN}} + token: ${{secrets.OPENSEARCH_TOKEN}} changeset_path: changelogs/fragments From 6285dca324aa188f6d009ebc6bdb39223ae35e69 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 14 Dec 2023 00:18:27 +0000 Subject: [PATCH 130/242] update token name Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/create_change_set_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create_change_set_workflow.yml b/.github/workflows/create_change_set_workflow.yml index 0b0ddaeb7ca9..82d0aec5dcc0 100644 --- a/.github/workflows/create_change_set_workflow.yml +++ b/.github/workflows/create_change_set_workflow.yml @@ -16,5 +16,5 @@ jobs: - name: Update Changelog uses: BigSamu/OpenSearch_Change_Set_Create_Action@main with: - token: ${{secrets.OPENSEARCH_TOKEN}} + token: ${{ secrets.GITHUB_TOKEN }} changeset_path: changelogs/fragments From 67200d249ee497d91029c33c44d8089867dfb189 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 02:46:46 +0000 Subject: [PATCH 131/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 changelogs/fragments/2.yml diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml new file mode 100644 index 000000000000..a0bd60d8add3 --- /dev/null +++ b/changelogs/fragments/2.yml @@ -0,0 +1,8 @@ +feat: +- Add new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +doc: +- Add documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +fix: +- Fix bug ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 9f508f524b616b3298853b0755df2f02944ecbe8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 02:52:03 +0000 Subject: [PATCH 132/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index a0bd60d8add3..7ce32155b340 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -5,4 +5,4 @@ doc: - Add documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) fix: -- Fix bug ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- Fix bugs ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 58dbc6962617d651a5bfc2106ea7aec7661df498 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 03:00:22 +0000 Subject: [PATCH 133/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 7ce32155b340..9743fafba3ea 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,8 +1,2 @@ feat: -- Add new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -doc: -- Add documentation ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -fix: -- Fix bugs ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- Add new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From cbf568946a9a6b95a6bfb375c30082f8b707e9af Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 03:05:50 +0000 Subject: [PATCH 134/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml index 9743fafba3ea..2795ea18df92 100644 --- a/changelogs/fragments/2.yml +++ b/changelogs/fragments/2.yml @@ -1,2 +1,5 @@ feat: -- Add new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file +- Add new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +fix: +- Fix bug ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From affdf8d6d0912d0f99dcb75c3ee3b5503cd498c5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 12:59:32 +0000 Subject: [PATCH 135/242] Add changeset for PR #2 --- changelogs/fragments/2.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 changelogs/fragments/2.yml diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml new file mode 100644 index 000000000000..2795ea18df92 --- /dev/null +++ b/changelogs/fragments/2.yml @@ -0,0 +1,5 @@ +feat: +- Add new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) + +fix: +- Fix bug ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file From 62739b7f827aa23f1744c97ba89d4772135f4bc3 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 14 Dec 2023 13:39:19 +0000 Subject: [PATCH 136/242] updating changeset workflow by giving correct reference for checkout action Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/create_change_set_workflow.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/create_change_set_workflow.yml b/.github/workflows/create_change_set_workflow.yml index 82d0aec5dcc0..ca546eaa04b2 100644 --- a/.github/workflows/create_change_set_workflow.yml +++ b/.github/workflows/create_change_set_workflow.yml @@ -13,6 +13,8 @@ jobs: steps: - name: Check out repository uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.ref }} - name: Update Changelog uses: BigSamu/OpenSearch_Change_Set_Create_Action@main with: From b81044cebbf50b8482e1aefef81577e934b8e542 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 14 Dec 2023 14:00:46 +0000 Subject: [PATCH 137/242] updating changeset workflow by removing reference for checkout action Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/create_change_set_workflow.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/create_change_set_workflow.yml b/.github/workflows/create_change_set_workflow.yml index ca546eaa04b2..82d0aec5dcc0 100644 --- a/.github/workflows/create_change_set_workflow.yml +++ b/.github/workflows/create_change_set_workflow.yml @@ -13,8 +13,6 @@ jobs: steps: - name: Check out repository uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.ref }} - name: Update Changelog uses: BigSamu/OpenSearch_Change_Set_Create_Action@main with: From e8f4fbb36aef5d01a974cf0e868afde8edb1976b Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 14 Dec 2023 15:48:13 +0000 Subject: [PATCH 138/242] updating github action event from pull_request to pull_request_target Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/create_change_set_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create_change_set_workflow.yml b/.github/workflows/create_change_set_workflow.yml index 82d0aec5dcc0..e0da3f12a67a 100644 --- a/.github/workflows/create_change_set_workflow.yml +++ b/.github/workflows/create_change_set_workflow.yml @@ -1,7 +1,7 @@ name: Create Change Set on: - pull_request: + pull_request_target: types: [opened, edited] paths-ignore: - 'changelogs/fragments/**/*' From 88994050c48499ee258213d78090141ae53d9495 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 15:52:33 +0000 Subject: [PATCH 139/242] Add changeset for PR #19 --- changelogs/fragments/19.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/19.yml diff --git a/changelogs/fragments/19.yml b/changelogs/fragments/19.yml new file mode 100644 index 000000000000..6ed2c278274a --- /dev/null +++ b/changelogs/fragments/19.yml @@ -0,0 +1,2 @@ +test: +- Test ([#19](https://github.com/BigSamu/OpenSearch-Dashboards/pull/19)) \ No newline at end of file From 8abb3a846d4b0adf72689a7901b24359ee879e51 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 14 Dec 2023 15:55:26 +0000 Subject: [PATCH 140/242] deleting fragment 19.yml Signed-off-by: Samuel Valdes Gutierrez --- changelogs/fragments/19.yml | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 changelogs/fragments/19.yml diff --git a/changelogs/fragments/19.yml b/changelogs/fragments/19.yml deleted file mode 100644 index 6ed2c278274a..000000000000 --- a/changelogs/fragments/19.yml +++ /dev/null @@ -1,2 +0,0 @@ -test: -- Test ([#19](https://github.com/BigSamu/OpenSearch-Dashboards/pull/19)) \ No newline at end of file From 13609ce6c051f557a7fc7b52a6ca8037d81f3e9a Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 14 Dec 2023 16:33:01 +0000 Subject: [PATCH 141/242] adding CHANGESET_TOKEN and related logic Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/create_change_set_workflow.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/create_change_set_workflow.yml b/.github/workflows/create_change_set_workflow.yml index e0da3f12a67a..1b0b0dcd9985 100644 --- a/.github/workflows/create_change_set_workflow.yml +++ b/.github/workflows/create_change_set_workflow.yml @@ -17,4 +17,5 @@ jobs: uses: BigSamu/OpenSearch_Change_Set_Create_Action@main with: token: ${{ secrets.GITHUB_TOKEN }} + changeset_token: ${{ secrets.CHANGESET_TOKEN }} changeset_path: changelogs/fragments From 7e2e49642d4e012f4eda16f9c37a9919fc032eb1 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Sat, 16 Dec 2023 20:07:32 +0000 Subject: [PATCH 142/242] changing event pull_request_target to pull_request Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/create_change_set_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create_change_set_workflow.yml b/.github/workflows/create_change_set_workflow.yml index 1b0b0dcd9985..62d78426c376 100644 --- a/.github/workflows/create_change_set_workflow.yml +++ b/.github/workflows/create_change_set_workflow.yml @@ -1,7 +1,7 @@ name: Create Change Set on: - pull_request_target: + pull_request: types: [opened, edited] paths-ignore: - 'changelogs/fragments/**/*' From f7fbc1c21a2a3e03d24ba26befc0e96e397e042d Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Sat, 16 Dec 2023 20:10:23 +0000 Subject: [PATCH 143/242] Add changeset for PR #25 --- changelogs/fragments/25.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/25.yml diff --git a/changelogs/fragments/25.yml b/changelogs/fragments/25.yml new file mode 100644 index 000000000000..e06fff63f36c --- /dev/null +++ b/changelogs/fragments/25.yml @@ -0,0 +1,2 @@ +test: +- Test test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file From 57bc3f5b0aa0eeaf72611e11d76d07db755e9421 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Sat, 16 Dec 2023 20:25:44 +0000 Subject: [PATCH 144/242] changing event pull_request to pull_request_target Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/create_change_set_workflow.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/create_change_set_workflow.yml b/.github/workflows/create_change_set_workflow.yml index 62d78426c376..ea57581fc223 100644 --- a/.github/workflows/create_change_set_workflow.yml +++ b/.github/workflows/create_change_set_workflow.yml @@ -1,10 +1,8 @@ name: Create Change Set on: - pull_request: + pull_request_target: types: [opened, edited] - paths-ignore: - - 'changelogs/fragments/**/*' jobs: update-changelog: From 80ffcfe6b4a7622bea7c69cb1792f50b382e90de Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Sat, 16 Dec 2023 20:27:34 +0000 Subject: [PATCH 145/242] Add changeset for PR #24 --- changelogs/fragments/24.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/24.yml diff --git a/changelogs/fragments/24.yml b/changelogs/fragments/24.yml new file mode 100644 index 000000000000..28c1d554b2f7 --- /dev/null +++ b/changelogs/fragments/24.yml @@ -0,0 +1,2 @@ +test: +- Test test ([#24](https://github.com/BigSamu/OpenSearch-Dashboards/pull/24)) \ No newline at end of file From 822a672818dd910496c77ab1266624f906a043db Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Sat, 16 Dec 2023 20:29:06 +0000 Subject: [PATCH 146/242] Add changeset for PR #24 --- changelogs/fragments/24.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/24.yml b/changelogs/fragments/24.yml index 28c1d554b2f7..c4f62bf40494 100644 --- a/changelogs/fragments/24.yml +++ b/changelogs/fragments/24.yml @@ -1,2 +1,2 @@ test: -- Test test ([#24](https://github.com/BigSamu/OpenSearch-Dashboards/pull/24)) \ No newline at end of file +- Test ([#24](https://github.com/BigSamu/OpenSearch-Dashboards/pull/24)) \ No newline at end of file From 17978fce092c12602171005b24f011719d953155 Mon Sep 17 00:00:00 2001 From: "autochangeset[bot]" <154024398+autochangeset[bot]@users.noreply.github.com> Date: Sun, 17 Dec 2023 14:47:12 +0000 Subject: [PATCH 147/242] update changeset file 25.yml for PR #25 From a9ca159acc41ed4ddbc18092ab90c48227094ad6 Mon Sep 17 00:00:00 2001 From: "opensearch-bot[bot]" <154024398+opensearch-bot[bot]@users.noreply.github.com> Date: Sun, 17 Dec 2023 19:27:15 +0000 Subject: [PATCH 148/242] update changeset file 25.yml for PR #25 --- changelogs/fragments/25.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/25.yml b/changelogs/fragments/25.yml index e06fff63f36c..8647381787a8 100644 --- a/changelogs/fragments/25.yml +++ b/changelogs/fragments/25.yml @@ -1,2 +1,2 @@ test: -- Test test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file +- Test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file From 21b227f0738eaf0948937f8b2ee96172d171a624 Mon Sep 17 00:00:00 2001 From: "opensearch-bot[bot]" <154024398+opensearch-bot[bot]@users.noreply.github.com> Date: Sun, 17 Dec 2023 19:28:58 +0000 Subject: [PATCH 149/242] update changeset file 25.yml for PR #25 --- changelogs/fragments/25.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/25.yml b/changelogs/fragments/25.yml index 8647381787a8..e06fff63f36c 100644 --- a/changelogs/fragments/25.yml +++ b/changelogs/fragments/25.yml @@ -1,2 +1,2 @@ test: -- Test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file +- Test test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file From 753bd9619aef254bbfb67363d0e7c9a08fa56dab Mon Sep 17 00:00:00 2001 From: "opensearch-bot[bot]" <154024398+opensearch-bot[bot]@users.noreply.github.com> Date: Sun, 17 Dec 2023 19:49:00 +0000 Subject: [PATCH 150/242] update changeset file 25.yml for PR #25 --- changelogs/fragments/25.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/25.yml b/changelogs/fragments/25.yml index e06fff63f36c..fd0fda6aacee 100644 --- a/changelogs/fragments/25.yml +++ b/changelogs/fragments/25.yml @@ -1,2 +1,2 @@ test: -- Test test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file +- Test 2 ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file From 6df38258e9eef4224f0918e546353c9d2457797c Mon Sep 17 00:00:00 2001 From: "opensearch-bot[bot]" <154024398+opensearch-bot[bot]@users.noreply.github.com> Date: Sun, 17 Dec 2023 20:00:34 +0000 Subject: [PATCH 151/242] update changeset file 25.yml for PR #25 --- changelogs/fragments/25.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/25.yml b/changelogs/fragments/25.yml index fd0fda6aacee..1cab4a70370c 100644 --- a/changelogs/fragments/25.yml +++ b/changelogs/fragments/25.yml @@ -1,2 +1,2 @@ test: -- Test 2 ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file +- Test 1 ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file From fdbf8dd1ca3888039156988f545c666189ca077a Mon Sep 17 00:00:00 2001 From: "opensearch-bot[bot]" <154024398+opensearch-bot[bot]@users.noreply.github.com> Date: Sun, 17 Dec 2023 20:44:14 +0000 Subject: [PATCH 152/242] update changeset file 25.yml for PR #25 --- changelogs/fragments/25.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/25.yml b/changelogs/fragments/25.yml index 1cab4a70370c..be20af7fcfb6 100644 --- a/changelogs/fragments/25.yml +++ b/changelogs/fragments/25.yml @@ -1,2 +1,2 @@ test: -- Test 1 ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file +- Test 3 ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file From d8650c2cbba2b11fef38b271693fe001c6a38a12 Mon Sep 17 00:00:00 2001 From: "opensearch-bot[bot]" <154024398+opensearch-bot[bot]@users.noreply.github.com> Date: Sun, 17 Dec 2023 21:09:14 +0000 Subject: [PATCH 153/242] update changeset file 25.yml for PR #25 --- changelogs/fragments/25.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/25.yml b/changelogs/fragments/25.yml index be20af7fcfb6..85876bebc0e5 100644 --- a/changelogs/fragments/25.yml +++ b/changelogs/fragments/25.yml @@ -1,2 +1,2 @@ test: -- Test 3 ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file +- 2 ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file From 9adce3fa04b58f2acc56f2f0834f6397c7ff5db3 Mon Sep 17 00:00:00 2001 From: "opensearch-bot[bot]" <154024398+opensearch-bot[bot]@users.noreply.github.com> Date: Sun, 17 Dec 2023 21:17:52 +0000 Subject: [PATCH 154/242] update changeset file 25.yml for PR #25 --- changelogs/fragments/25.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/25.yml b/changelogs/fragments/25.yml index 85876bebc0e5..8647381787a8 100644 --- a/changelogs/fragments/25.yml +++ b/changelogs/fragments/25.yml @@ -1,2 +1,2 @@ test: -- 2 ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file +- Test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file From e4ec9b98a0d1ced0156893bcbdcaddc3f28865e4 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Mon, 18 Dec 2023 19:15:13 -0300 Subject: [PATCH 155/242] deleting workflow file for creating changeset files Signed-off-by: Samuel Valdes Gutierrez --- .../workflows/create_change_set_workflow.yml | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 .github/workflows/create_change_set_workflow.yml diff --git a/.github/workflows/create_change_set_workflow.yml b/.github/workflows/create_change_set_workflow.yml deleted file mode 100644 index ea57581fc223..000000000000 --- a/.github/workflows/create_change_set_workflow.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Create Change Set - -on: - pull_request_target: - types: [opened, edited] - -jobs: - update-changelog: - runs-on: ubuntu-latest - permissions: write-all - steps: - - name: Check out repository - uses: actions/checkout@v4 - - name: Update Changelog - uses: BigSamu/OpenSearch_Change_Set_Create_Action@main - with: - token: ${{ secrets.GITHUB_TOKEN }} - changeset_token: ${{ secrets.CHANGESET_TOKEN }} - changeset_path: changelogs/fragments From ddd615db54f4c0d12046d1760341f6198b69d9af Mon Sep 17 00:00:00 2001 From: "opensearch-bot[bot]" <154024398+opensearch-bot[bot]@users.noreply.github.com> Date: Wed, 20 Dec 2023 13:16:11 +0000 Subject: [PATCH 156/242] update changeset file 25.yml for PR #25 --- changelogs/fragments/25.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/25.yml b/changelogs/fragments/25.yml index 8647381787a8..e06fff63f36c 100644 --- a/changelogs/fragments/25.yml +++ b/changelogs/fragments/25.yml @@ -1,2 +1,2 @@ test: -- Test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file +- Test test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file From 920e5f831aba748b2d8b4763c20559e17a89ba39 Mon Sep 17 00:00:00 2001 From: "opensearch-bot[bot]" <154024398+opensearch-bot[bot]@users.noreply.github.com> Date: Wed, 20 Dec 2023 16:38:38 +0000 Subject: [PATCH 157/242] update changeset file 25.yml for PR #25 --- changelogs/fragments/25.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/25.yml b/changelogs/fragments/25.yml index e06fff63f36c..8647381787a8 100644 --- a/changelogs/fragments/25.yml +++ b/changelogs/fragments/25.yml @@ -1,2 +1,2 @@ test: -- Test test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file +- Test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file From 9b37d029380df6fe1e467d189a43f55be8f191f2 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Wed, 20 Dec 2023 15:26:56 -0300 Subject: [PATCH 158/242] removing fragment files Signed-off-by: Samuel Valdes Gutierrez --- changelogs/fragments/2.yml | 5 ----- changelogs/fragments/24.yml | 2 -- changelogs/fragments/25.yml | 2 -- 3 files changed, 9 deletions(-) delete mode 100644 changelogs/fragments/2.yml delete mode 100644 changelogs/fragments/24.yml delete mode 100644 changelogs/fragments/25.yml diff --git a/changelogs/fragments/2.yml b/changelogs/fragments/2.yml deleted file mode 100644 index 2795ea18df92..000000000000 --- a/changelogs/fragments/2.yml +++ /dev/null @@ -1,5 +0,0 @@ -feat: -- Add new feature ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) - -fix: -- Fix bug ([#2](https://github.com/BigSamu/OpenSearch-Dashboards/pull/2)) \ No newline at end of file diff --git a/changelogs/fragments/24.yml b/changelogs/fragments/24.yml deleted file mode 100644 index c4f62bf40494..000000000000 --- a/changelogs/fragments/24.yml +++ /dev/null @@ -1,2 +0,0 @@ -test: -- Test ([#24](https://github.com/BigSamu/OpenSearch-Dashboards/pull/24)) \ No newline at end of file diff --git a/changelogs/fragments/25.yml b/changelogs/fragments/25.yml deleted file mode 100644 index 8647381787a8..000000000000 --- a/changelogs/fragments/25.yml +++ /dev/null @@ -1,2 +0,0 @@ -test: -- Test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file From c3a2b5daa7087cb83a4ed6f949334fd79cab5454 Mon Sep 17 00:00:00 2001 From: "opensearch-bot[bot]" <154024398+opensearch-bot[bot]@users.noreply.github.com> Date: Thu, 21 Dec 2023 19:32:35 +0000 Subject: [PATCH 159/242] create changeset file 25.yml for PR #25 --- changelogs/fragments/25.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/25.yml diff --git a/changelogs/fragments/25.yml b/changelogs/fragments/25.yml new file mode 100644 index 000000000000..9c5a375f3201 --- /dev/null +++ b/changelogs/fragments/25.yml @@ -0,0 +1,2 @@ +test: +- Test test test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file From d198383d86968ae5d356303fd27492def0f959bb Mon Sep 17 00:00:00 2001 From: "opensearch-bot[bot]" <154024398+opensearch-bot[bot]@users.noreply.github.com> Date: Thu, 21 Dec 2023 19:51:36 +0000 Subject: [PATCH 160/242] update changeset file 25.yml for PR #25 --- changelogs/fragments/25.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/25.yml b/changelogs/fragments/25.yml index 9c5a375f3201..e06fff63f36c 100644 --- a/changelogs/fragments/25.yml +++ b/changelogs/fragments/25.yml @@ -1,2 +1,2 @@ test: -- Test test test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file +- Test test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file From 3eaa438d78bd95d6ba16f8e3d7ff7ab89f38e563 Mon Sep 17 00:00:00 2001 From: "opensearch-bot[bot]" <154024398+opensearch-bot[bot]@users.noreply.github.com> Date: Thu, 21 Dec 2023 19:53:19 +0000 Subject: [PATCH 161/242] update changeset file 25.yml for PR #25 --- changelogs/fragments/25.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/25.yml b/changelogs/fragments/25.yml index e06fff63f36c..8647381787a8 100644 --- a/changelogs/fragments/25.yml +++ b/changelogs/fragments/25.yml @@ -1,2 +1,2 @@ test: -- Test test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file +- Test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file From e6577020817d4417e9806671f5010615e5536d02 Mon Sep 17 00:00:00 2001 From: "opensearch-bot[bot]" <154024398+opensearch-bot[bot]@users.noreply.github.com> Date: Thu, 21 Dec 2023 20:02:40 +0000 Subject: [PATCH 162/242] update changeset file 25.yml for PR #25 From 975f86b0d7d200c362546df45e10732b2b3a6df2 Mon Sep 17 00:00:00 2001 From: "opensearch-bot[bot]" <154024398+opensearch-bot[bot]@users.noreply.github.com> Date: Thu, 21 Dec 2023 21:34:55 +0000 Subject: [PATCH 163/242] update changeset file 25.yml for PR #25 --- changelogs/fragments/25.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/25.yml b/changelogs/fragments/25.yml index 8647381787a8..e06fff63f36c 100644 --- a/changelogs/fragments/25.yml +++ b/changelogs/fragments/25.yml @@ -1,2 +1,2 @@ test: -- Test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file +- Test test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file From 0bb4a9cad438ce61500a329e8d345afe7e144074 Mon Sep 17 00:00:00 2001 From: "opensearch-bot[bot]" <154024398+opensearch-bot[bot]@users.noreply.github.com> Date: Fri, 22 Dec 2023 19:38:21 +0000 Subject: [PATCH 164/242] update file 25.yml for PR #25 --- changelogs/fragments/25.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/25.yml b/changelogs/fragments/25.yml index e06fff63f36c..8647381787a8 100644 --- a/changelogs/fragments/25.yml +++ b/changelogs/fragments/25.yml @@ -1,2 +1,2 @@ test: -- Test test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file +- Test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file From ef41272f29aff0f8d80cff19b8322b290b5563d2 Mon Sep 17 00:00:00 2001 From: "opensearch-bot[bot]" <154024398+opensearch-bot[bot]@users.noreply.github.com> Date: Fri, 22 Dec 2023 20:19:19 +0000 Subject: [PATCH 165/242] update file 25.yml for PR #25 --- changelogs/fragments/25.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/25.yml b/changelogs/fragments/25.yml index 8647381787a8..e06fff63f36c 100644 --- a/changelogs/fragments/25.yml +++ b/changelogs/fragments/25.yml @@ -1,2 +1,2 @@ test: -- Test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file +- Test test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file From f5d2d1dfc1ec4cc6a0d3a7e989d4b4c0f90da364 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 17:59:32 +0000 Subject: [PATCH 166/242] test: - Data ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) - Data2 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) --- changeset file for PR #29 created | 1 + 1 file changed, 1 insertion(+) create mode 100644 changeset file for PR #29 created diff --git a/changeset file for PR #29 created b/changeset file for PR #29 created new file mode 100644 index 000000000000..db184c8389e2 --- /dev/null +++ b/changeset file for PR #29 created @@ -0,0 +1 @@ +changelogs/fragments/29.yml \ No newline at end of file From 2005a2f702cd16c8d1c1a65a32555a6df825f5fc Mon Sep 17 00:00:00 2001 From: "opensearch-bot[bot]" <154024398+opensearch-bot[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 18:26:04 +0000 Subject: [PATCH 167/242] create file 29.yml for PR #29 --- changelogs/fragments/29.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changelogs/fragments/29.yml diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml new file mode 100644 index 000000000000..d80a3d8559bb --- /dev/null +++ b/changelogs/fragments/29.yml @@ -0,0 +1,3 @@ +test: +- Data ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) +- Data 2 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From f0853fd4e0023394326e44d16da5e4c66681e981 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 19:31:50 +0000 Subject: [PATCH 168/242] test: - Data ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) - Data 2 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) --- changeset file for PR #29 updated | 1 + 1 file changed, 1 insertion(+) create mode 100644 changeset file for PR #29 updated diff --git a/changeset file for PR #29 updated b/changeset file for PR #29 updated new file mode 100644 index 000000000000..db184c8389e2 --- /dev/null +++ b/changeset file for PR #29 updated @@ -0,0 +1 @@ +changelogs/fragments/29.yml \ No newline at end of file From 140641b86afbc4aec66c68ebfe30368393b4097f Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 19:40:48 +0000 Subject: [PATCH 169/242] changeset file for PR #29 updated --- changelogs/fragments/29.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml index d80a3d8559bb..0352c6854ba5 100644 --- a/changelogs/fragments/29.yml +++ b/changelogs/fragments/29.yml @@ -1,3 +1,3 @@ test: - Data ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) -- Data 2 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file +- Data 3 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From 267f7f4f4ad581e94ac446e3ffbb197aedb4f275 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 19:45:31 +0000 Subject: [PATCH 170/242] changeset file for PR #29 updated --- changelogs/fragments/29.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml index 0352c6854ba5..d80a3d8559bb 100644 --- a/changelogs/fragments/29.yml +++ b/changelogs/fragments/29.yml @@ -1,3 +1,3 @@ test: - Data ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) -- Data 3 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file +- Data 2 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From d6c0986e5de487ed94542099c465e9f12ec11ad6 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 20:20:41 +0000 Subject: [PATCH 171/242] changeset file for PR #29 updated From 7fe157bbfcf5a87f17dcc9f12bf266b846834682 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 20:21:14 +0000 Subject: [PATCH 172/242] changeset file for PR #29 updated --- changelogs/fragments/29.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml index d80a3d8559bb..0352c6854ba5 100644 --- a/changelogs/fragments/29.yml +++ b/changelogs/fragments/29.yml @@ -1,3 +1,3 @@ test: - Data ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) -- Data 2 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file +- Data 3 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From 2281d93821e96816c8a60fab810ab1a86be6ef8f Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 20:28:40 +0000 Subject: [PATCH 173/242] changeset file for PR #29 updated --- changelogs/fragments/29.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml index 0352c6854ba5..d80a3d8559bb 100644 --- a/changelogs/fragments/29.yml +++ b/changelogs/fragments/29.yml @@ -1,3 +1,3 @@ test: - Data ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) -- Data 3 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file +- Data 2 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From afdf7c9f2c8d2cfd35568ddb0715f120560abcb5 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 20:30:39 +0000 Subject: [PATCH 174/242] changeset file for PR #29 updated --- changelogs/fragments/29.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml index d80a3d8559bb..fb0a5395c2df 100644 --- a/changelogs/fragments/29.yml +++ b/changelogs/fragments/29.yml @@ -1,3 +1,3 @@ test: -- Data ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) +- Data 2 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) - Data 2 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From 7a5253529283bd23686729de0e3967e6daf2e708 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 21:46:24 +0000 Subject: [PATCH 175/242] changeset file for PR #29 updated --- changelogs/fragments/29.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml index fb0a5395c2df..f732758ab0bd 100644 --- a/changelogs/fragments/29.yml +++ b/changelogs/fragments/29.yml @@ -1,3 +1,3 @@ test: - Data 2 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) -- Data 2 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file +- Data 1 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From 15698e04fa67dad07d4fd93edb8d16ef8ded9d2e Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 21:47:19 +0000 Subject: [PATCH 176/242] changeset file for PR #29 updated --- changelogs/fragments/29.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml index f732758ab0bd..dea2cc1e0522 100644 --- a/changelogs/fragments/29.yml +++ b/changelogs/fragments/29.yml @@ -1,3 +1,3 @@ test: -- Data 2 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) +- Data 1 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) - Data 1 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From 2d2e416d89e09188fc65a7b49a2bfcbadf110373 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 22:38:18 +0000 Subject: [PATCH 177/242] changeset file for PR #29 updated --- changelogs/fragments/29.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml index dea2cc1e0522..ce279b1ff561 100644 --- a/changelogs/fragments/29.yml +++ b/changelogs/fragments/29.yml @@ -1,3 +1,2 @@ test: -- Data 1 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) -- Data 1 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file +- Test ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From ddc6050d2ba60049d07d05d4df5386fbc5471f40 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 22:38:39 +0000 Subject: [PATCH 178/242] changeset file for PR #29 deleted --- changelogs/fragments/29.yml | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 changelogs/fragments/29.yml diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml deleted file mode 100644 index ce279b1ff561..000000000000 --- a/changelogs/fragments/29.yml +++ /dev/null @@ -1,2 +0,0 @@ -test: -- Test ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From 34ed89fe63d42e51c5ef91dc870a9cc0db17ecba Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 23:00:43 +0000 Subject: [PATCH 179/242] changeset file for PR #29 created --- changelogs/fragments/29.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/29.yml diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml new file mode 100644 index 000000000000..ce279b1ff561 --- /dev/null +++ b/changelogs/fragments/29.yml @@ -0,0 +1,2 @@ +test: +- Test ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From 23bf91c4d8e1405f7f21df78dba82b1cd7df5cd5 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 23:00:59 +0000 Subject: [PATCH 180/242] changeset file for PR #29 updated --- changelogs/fragments/29.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml index ce279b1ff561..c38a25dcefc2 100644 --- a/changelogs/fragments/29.yml +++ b/changelogs/fragments/29.yml @@ -1,2 +1,2 @@ test: -- Test ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file +- Test 1 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From c44f17d82cd33546c2a0d16274e2d088e24c6947 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 23:02:07 +0000 Subject: [PATCH 181/242] changeset file for PR #29 deleted --- changelogs/fragments/29.yml | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 changelogs/fragments/29.yml diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml deleted file mode 100644 index c38a25dcefc2..000000000000 --- a/changelogs/fragments/29.yml +++ /dev/null @@ -1,2 +0,0 @@ -test: -- Test 1 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From b53e5e3cb8a40fe8781104e5bce64158c3a99f80 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 23:02:43 +0000 Subject: [PATCH 182/242] changeset file for PR #29 created --- changelogs/fragments/29.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/29.yml diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml new file mode 100644 index 000000000000..ce279b1ff561 --- /dev/null +++ b/changelogs/fragments/29.yml @@ -0,0 +1,2 @@ +test: +- Test ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From 5410f39af039ec81d258a2f5d561bacac95250cc Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 23:02:51 +0000 Subject: [PATCH 183/242] changeset file for PR #29 deleted --- changelogs/fragments/29.yml | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 changelogs/fragments/29.yml diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml deleted file mode 100644 index ce279b1ff561..000000000000 --- a/changelogs/fragments/29.yml +++ /dev/null @@ -1,2 +0,0 @@ -test: -- Test ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From f7037ba3800fd1286d17f2a58dfe042dc596dc7c Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Fri, 29 Dec 2023 13:43:11 +0000 Subject: [PATCH 184/242] changeset file for PR #29 created --- changelogs/fragments/29.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/29.yml diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml new file mode 100644 index 000000000000..ce279b1ff561 --- /dev/null +++ b/changelogs/fragments/29.yml @@ -0,0 +1,2 @@ +test: +- Test ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From cf3c33441caad5bae4666b65ea4510d349740982 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Fri, 29 Dec 2023 16:06:33 +0000 Subject: [PATCH 185/242] changeset file for PR #29 updated --- changelogs/fragments/29.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml index ce279b1ff561..62c0beb2dc98 100644 --- a/changelogs/fragments/29.yml +++ b/changelogs/fragments/29.yml @@ -1,2 +1,2 @@ test: -- Test ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file +- Test test ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From f5e2867acce7cb04f79faa3c3d5ea6d88e27a914 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Fri, 29 Dec 2023 16:08:10 +0000 Subject: [PATCH 186/242] changeset file for PR #29 updated --- changelogs/fragments/29.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml index 62c0beb2dc98..ce279b1ff561 100644 --- a/changelogs/fragments/29.yml +++ b/changelogs/fragments/29.yml @@ -1,2 +1,2 @@ test: -- Test test ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file +- Test ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From 4e5ad9eaf2de22e60b879861dcf1904a722e444f Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Fri, 29 Dec 2023 16:08:41 +0000 Subject: [PATCH 187/242] changeset file for PR #29 updated --- changelogs/fragments/29.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml index ce279b1ff561..62c0beb2dc98 100644 --- a/changelogs/fragments/29.yml +++ b/changelogs/fragments/29.yml @@ -1,2 +1,2 @@ test: -- Test ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file +- Test test ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From 462075b44e2362744e21a789a5be54c9b53839e9 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Fri, 29 Dec 2023 16:20:15 +0000 Subject: [PATCH 188/242] changeset file for PR #29 updated --- changelogs/fragments/29.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml index 62c0beb2dc98..ce279b1ff561 100644 --- a/changelogs/fragments/29.yml +++ b/changelogs/fragments/29.yml @@ -1,2 +1,2 @@ test: -- Test test ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file +- Test ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From 63327bc9226e6b15d20642d93a8cb617df13c5e3 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 15:28:43 +0000 Subject: [PATCH 189/242] Changeset file for PR #29 updated --- changelogs/fragments/29.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml index ce279b1ff561..c38a25dcefc2 100644 --- a/changelogs/fragments/29.yml +++ b/changelogs/fragments/29.yml @@ -1,2 +1,2 @@ test: -- Test ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file +- Test 1 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From 5b5989447bb1eecae1e6cab8a196067ed5e3c33e Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 15:29:13 +0000 Subject: [PATCH 190/242] Changeset file for PR #29 deleted --- changelogs/fragments/29.yml | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 changelogs/fragments/29.yml diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml deleted file mode 100644 index c38a25dcefc2..000000000000 --- a/changelogs/fragments/29.yml +++ /dev/null @@ -1,2 +0,0 @@ -test: -- Test 1 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From d866570f180a7299c73aef2ddfdced4374f1e0f7 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 15:30:38 +0000 Subject: [PATCH 191/242] Changeset file for PR #29 created --- changelogs/fragments/29.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/29.yml diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml new file mode 100644 index 000000000000..c38a25dcefc2 --- /dev/null +++ b/changelogs/fragments/29.yml @@ -0,0 +1,2 @@ +test: +- Test 1 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From 87eaf8df0d28f7df12f6356bb57aebbe44ff3a12 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 15:30:57 +0000 Subject: [PATCH 192/242] Changeset file for PR #29 deleted --- changelogs/fragments/29.yml | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 changelogs/fragments/29.yml diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml deleted file mode 100644 index c38a25dcefc2..000000000000 --- a/changelogs/fragments/29.yml +++ /dev/null @@ -1,2 +0,0 @@ -test: -- Test 1 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From 4dfd118b53da4fad7b68ffcaa14630dc052ecf70 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 15:41:38 +0000 Subject: [PATCH 193/242] Changeset file for PR #29 created --- changelogs/fragments/29.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/29.yml diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml new file mode 100644 index 000000000000..c38a25dcefc2 --- /dev/null +++ b/changelogs/fragments/29.yml @@ -0,0 +1,2 @@ +test: +- Test 1 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From 90dbe7313067d9fa7fabe4275ca8aaca2ac65095 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 15:42:30 +0000 Subject: [PATCH 194/242] Changeset file for PR #29 updated --- changelogs/fragments/29.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml index c38a25dcefc2..ff0610d3e7a2 100644 --- a/changelogs/fragments/29.yml +++ b/changelogs/fragments/29.yml @@ -1,2 +1,2 @@ test: -- Test 1 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file +- Test 2 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From fd6654f3365ec7812f6d590c5282b3e0957dacc3 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 15:45:35 +0000 Subject: [PATCH 195/242] Changeset file for PR #29 updated --- changelogs/fragments/29.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml index ff0610d3e7a2..6918d1735f7d 100644 --- a/changelogs/fragments/29.yml +++ b/changelogs/fragments/29.yml @@ -1,2 +1,2 @@ test: -- Test 2 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file +- Test 3 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From 85f0e6c70f710dddc634bc7db29742f5a705f01b Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 15:46:46 +0000 Subject: [PATCH 196/242] Changeset file for PR #29 updated --- changelogs/fragments/29.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml index 6918d1735f7d..e7206666798a 100644 --- a/changelogs/fragments/29.yml +++ b/changelogs/fragments/29.yml @@ -1,2 +1,2 @@ test: -- Test 3 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file +- Test 4 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From c66a47532a63cc1bcc8c0a0391c45f70662baf30 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 15:47:28 +0000 Subject: [PATCH 197/242] Changeset file for PR #29 updated --- changelogs/fragments/29.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml index e7206666798a..6918d1735f7d 100644 --- a/changelogs/fragments/29.yml +++ b/changelogs/fragments/29.yml @@ -1,2 +1,2 @@ test: -- Test 4 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file +- Test 3 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From 67bd0a9a90566117ebf298dafbfdcf8eb073c611 Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 15:49:46 +0000 Subject: [PATCH 198/242] Changeset file for PR #29 updated --- changelogs/fragments/29.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml index 6918d1735f7d..e7206666798a 100644 --- a/changelogs/fragments/29.yml +++ b/changelogs/fragments/29.yml @@ -1,2 +1,2 @@ test: -- Test 3 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file +- Test 4 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From ad9546294648e14a919042c0f8c77d8537f4d02b Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 15:52:34 +0000 Subject: [PATCH 199/242] Changeset file for PR #29 deleted --- changelogs/fragments/29.yml | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 changelogs/fragments/29.yml diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml deleted file mode 100644 index e7206666798a..000000000000 --- a/changelogs/fragments/29.yml +++ /dev/null @@ -1,2 +0,0 @@ -test: -- Test 4 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From 6826f5de131fee7aae69e40aa118edd31378604c Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 16:15:56 +0000 Subject: [PATCH 200/242] Changeset file for PR #29 created --- changelogs/fragments/29.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/29.yml diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml new file mode 100644 index 000000000000..ff0610d3e7a2 --- /dev/null +++ b/changelogs/fragments/29.yml @@ -0,0 +1,2 @@ +test: +- Test 2 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From 04661afffd89adccbf59a11ce6bfee228728770f Mon Sep 17 00:00:00 2001 From: "opensearch-bot-dev[bot]" <154634848+opensearch-bot-dev[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 16:16:30 +0000 Subject: [PATCH 201/242] Changeset file for PR #29 deleted --- changelogs/fragments/29.yml | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 changelogs/fragments/29.yml diff --git a/changelogs/fragments/29.yml b/changelogs/fragments/29.yml deleted file mode 100644 index ff0610d3e7a2..000000000000 --- a/changelogs/fragments/29.yml +++ /dev/null @@ -1,2 +0,0 @@ -test: -- Test 2 ([#29](https://github.com/BigSamu/OpenSearch-Dashboards/pull/29)) \ No newline at end of file From 5157cd8b0bd2a1ba8c4736035fb5e78360a3caa7 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Wed, 3 Jan 2024 22:08:35 -0300 Subject: [PATCH 202/242] adding parse_changelog_workflow.yml file Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/parse_changelog_workflow.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/parse_changelog_workflow.yml diff --git a/.github/workflows/parse_changelog_workflow.yml b/.github/workflows/parse_changelog_workflow.yml new file mode 100644 index 000000000000..c7eb8f58a446 --- /dev/null +++ b/.github/workflows/parse_changelog_workflow.yml @@ -0,0 +1,17 @@ +name: Parse Changelog + +on: + pull_request: + types: [opened, edited] + +jobs: + update-changelog: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v4 + - name: Parse changelog entries and submit request for changset creation + uses: BigSamu/OpenSearch_Parse_Changelog_Action@main + with: + token: ${{secrets.GITHUB_TOKEN}} + changeset_path: changelogs/fragments From 3f4d7e3fef2f28520d924f3f1a69f08e4c93cfc6 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 4 Jan 2024 16:55:28 -0300 Subject: [PATCH 203/242] updating permissions for parse changelog workflow Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/parse_changelog_workflow.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/parse_changelog_workflow.yml b/.github/workflows/parse_changelog_workflow.yml index c7eb8f58a446..af9d02d7c293 100644 --- a/.github/workflows/parse_changelog_workflow.yml +++ b/.github/workflows/parse_changelog_workflow.yml @@ -4,6 +4,10 @@ on: pull_request: types: [opened, edited] +permissions: + pull-requests: read + issues: write + jobs: update-changelog: runs-on: ubuntu-latest From b3df2999ff16bf7a090fb5207325ed5d63acbb4b Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 4 Jan 2024 21:56:09 -0300 Subject: [PATCH 204/242] updating permissions for parse chaneglog action Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/parse_changelog_workflow.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/parse_changelog_workflow.yml b/.github/workflows/parse_changelog_workflow.yml index af9d02d7c293..a81c3445d46f 100644 --- a/.github/workflows/parse_changelog_workflow.yml +++ b/.github/workflows/parse_changelog_workflow.yml @@ -5,8 +5,7 @@ on: types: [opened, edited] permissions: - pull-requests: read - issues: write + pull-requests: write jobs: update-changelog: From f7f1e5aaccf6d11d6793fea00157412e20c43f2e Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 4 Jan 2024 22:03:16 -0300 Subject: [PATCH 205/242] updating permissions for parse chaneglog action Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/parse_changelog_workflow.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/parse_changelog_workflow.yml b/.github/workflows/parse_changelog_workflow.yml index a81c3445d46f..0059176b97ab 100644 --- a/.github/workflows/parse_changelog_workflow.yml +++ b/.github/workflows/parse_changelog_workflow.yml @@ -5,6 +5,8 @@ on: types: [opened, edited] permissions: + contents: read + issues: write pull-requests: write jobs: From bebf4370d665d281b6c81117b84737801d0dd333 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 4 Jan 2024 22:05:25 -0300 Subject: [PATCH 206/242] updating permissions for parse chaneglog action Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/parse_changelog_workflow.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/parse_changelog_workflow.yml b/.github/workflows/parse_changelog_workflow.yml index 0059176b97ab..cff115903af0 100644 --- a/.github/workflows/parse_changelog_workflow.yml +++ b/.github/workflows/parse_changelog_workflow.yml @@ -4,10 +4,10 @@ on: pull_request: types: [opened, edited] -permissions: - contents: read - issues: write - pull-requests: write +permissions: write-all + # contents: read + # issues: write + # pull-requests: write jobs: update-changelog: From 84441e3fb8169715b3fe0843fb9927ec244b77b5 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 4 Jan 2024 22:14:44 -0300 Subject: [PATCH 207/242] updating permissions for parse chaneglog action Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/parse_changelog_workflow.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/parse_changelog_workflow.yml b/.github/workflows/parse_changelog_workflow.yml index cff115903af0..a1508d183337 100644 --- a/.github/workflows/parse_changelog_workflow.yml +++ b/.github/workflows/parse_changelog_workflow.yml @@ -1,13 +1,13 @@ name: Parse Changelog on: - pull_request: + pull_request_target: types: [opened, edited] -permissions: write-all - # contents: read - # issues: write - # pull-requests: write +permissions: + contents: read + issues: write + pull-requests: write jobs: update-changelog: From a416e4e874f3d653579f4333eede82f3b4b01bb6 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Fri, 12 Jan 2024 09:53:37 -0300 Subject: [PATCH 208/242] changing name of changelog action file Signed-off-by: Samuel Valdes Gutierrez --- ...e_changelog_workflow.yml => opensearch_changelog_workflow.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{parse_changelog_workflow.yml => opensearch_changelog_workflow.yml} (100%) diff --git a/.github/workflows/parse_changelog_workflow.yml b/.github/workflows/opensearch_changelog_workflow.yml similarity index 100% rename from .github/workflows/parse_changelog_workflow.yml rename to .github/workflows/opensearch_changelog_workflow.yml From 486d0a74023c11915688ae2a353a153778ca5d57 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Fri, 12 Jan 2024 09:54:10 -0300 Subject: [PATCH 209/242] removing dummy fragment file '25.yml' Signed-off-by: Samuel Valdes Gutierrez --- changelogs/fragments/25.yml | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 changelogs/fragments/25.yml diff --git a/changelogs/fragments/25.yml b/changelogs/fragments/25.yml deleted file mode 100644 index e06fff63f36c..000000000000 --- a/changelogs/fragments/25.yml +++ /dev/null @@ -1,2 +0,0 @@ -test: -- Test test ([#25](https://github.com/BigSamu/OpenSearch-Dashboards/pull/25)) \ No newline at end of file From ba6131a8daa08530156f0e12c2fb16b52cede81d Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Fri, 12 Jan 2024 10:01:04 -0300 Subject: [PATCH 210/242] updating name of workflow in opensearch_changelog_workflow.yml file Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/opensearch_changelog_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/opensearch_changelog_workflow.yml b/.github/workflows/opensearch_changelog_workflow.yml index a1508d183337..2860c43281a5 100644 --- a/.github/workflows/opensearch_changelog_workflow.yml +++ b/.github/workflows/opensearch_changelog_workflow.yml @@ -1,4 +1,4 @@ -name: Parse Changelog +name: OpenSearch Changelog Workflow on: pull_request_target: From 41afaff4b560f6e220595391b93cb0cd0075c86c Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Fri, 12 Jan 2024 10:33:07 -0300 Subject: [PATCH 211/242] addin dummy file Signed-off-by: Samuel Valdes Gutierrez --- changelogs/fragments/hello.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelogs/fragments/hello.txt diff --git a/changelogs/fragments/hello.txt b/changelogs/fragments/hello.txt new file mode 100644 index 000000000000..e965047ad7c5 --- /dev/null +++ b/changelogs/fragments/hello.txt @@ -0,0 +1 @@ +Hello From cb50b64eed39b149229ee5faf87a856877d8c6cd Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Fri, 12 Jan 2024 10:36:19 -0300 Subject: [PATCH 212/242] removing dummy file Signed-off-by: Samuel Valdes Gutierrez --- changelogs/fragments/hello.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 changelogs/fragments/hello.txt diff --git a/changelogs/fragments/hello.txt b/changelogs/fragments/hello.txt deleted file mode 100644 index e965047ad7c5..000000000000 --- a/changelogs/fragments/hello.txt +++ /dev/null @@ -1 +0,0 @@ -Hello From f6c23e71e4fe1d21ec341b542f8a97aa6152c3c4 Mon Sep 17 00:00:00 2001 From: Johnathon Bowers Date: Sun, 14 Jan 2024 03:16:18 -0500 Subject: [PATCH 213/242] Add input secrets to be used in workflow runs Signed-off-by: Johnathon Bowers --- .github/workflows/opensearch_changelog_workflow.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/opensearch_changelog_workflow.yml b/.github/workflows/opensearch_changelog_workflow.yml index 2860c43281a5..e977bef7e2da 100644 --- a/.github/workflows/opensearch_changelog_workflow.yml +++ b/.github/workflows/opensearch_changelog_workflow.yml @@ -20,3 +20,5 @@ jobs: with: token: ${{secrets.GITHUB_TOKEN}} changeset_path: changelogs/fragments + GH_APP_DOMAIN: ${{secrets.GH_APP_DOMAIN}} + CHANGELOG_PR_BRIDGE_SECRET_KEY: ${{secrets.CHANGELOG_PR_BRIDGE_SECRET_KEY}} \ No newline at end of file From cc29538accaa8dde53e58881ccacaad7fcec2ff8 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Fri, 19 Jan 2024 11:23:05 -0300 Subject: [PATCH 214/242] updating input variables for opensearch chnagelog workflow Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/opensearch_changelog_workflow.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/opensearch_changelog_workflow.yml b/.github/workflows/opensearch_changelog_workflow.yml index e977bef7e2da..9e8d0a2ad64c 100644 --- a/.github/workflows/opensearch_changelog_workflow.yml +++ b/.github/workflows/opensearch_changelog_workflow.yml @@ -19,6 +19,5 @@ jobs: uses: BigSamu/OpenSearch_Parse_Changelog_Action@main with: token: ${{secrets.GITHUB_TOKEN}} - changeset_path: changelogs/fragments - GH_APP_DOMAIN: ${{secrets.GH_APP_DOMAIN}} - CHANGELOG_PR_BRIDGE_SECRET_KEY: ${{secrets.CHANGELOG_PR_BRIDGE_SECRET_KEY}} \ No newline at end of file + changelog_pr_bridge_url_domain: ${{secrets.CHANGELOG_PR_BRIDGE_URL_DOMAIN}} + changelog_pr_bridge_api_key: ${{secrets.CHANGELOG_PR_BRIDGE_API_KEY}} From e4ca37562b25ab01fb724edb1f49ab411848feb8 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 8 Feb 2024 15:00:12 -0300 Subject: [PATCH 215/242] updating location reusable workflow Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/opensearch_changelog_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/opensearch_changelog_workflow.yml b/.github/workflows/opensearch_changelog_workflow.yml index 9e8d0a2ad64c..cb6de3582235 100644 --- a/.github/workflows/opensearch_changelog_workflow.yml +++ b/.github/workflows/opensearch_changelog_workflow.yml @@ -16,7 +16,7 @@ jobs: - name: Check out repository uses: actions/checkout@v4 - name: Parse changelog entries and submit request for changset creation - uses: BigSamu/OpenSearch_Parse_Changelog_Action@main + uses: BigSamu/OpenSearch_Changelog_Workflow@main with: token: ${{secrets.GITHUB_TOKEN}} changelog_pr_bridge_url_domain: ${{secrets.CHANGELOG_PR_BRIDGE_URL_DOMAIN}} From d36d802c0e60220b85602be3206bcaf3508c3615 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Wed, 14 Feb 2024 11:32:57 -0300 Subject: [PATCH 216/242] changing branch for reusable workflow for developing manual checking approach of changesets Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/opensearch_changelog_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/opensearch_changelog_workflow.yml b/.github/workflows/opensearch_changelog_workflow.yml index cb6de3582235..d3d052c46b8f 100644 --- a/.github/workflows/opensearch_changelog_workflow.yml +++ b/.github/workflows/opensearch_changelog_workflow.yml @@ -16,7 +16,7 @@ jobs: - name: Check out repository uses: actions/checkout@v4 - name: Parse changelog entries and submit request for changset creation - uses: BigSamu/OpenSearch_Changelog_Workflow@main + uses: BigSamu/OpenSearch_Changelog_Workflow@feat/check-manual-changesets with: token: ${{secrets.GITHUB_TOKEN}} changelog_pr_bridge_url_domain: ${{secrets.CHANGELOG_PR_BRIDGE_URL_DOMAIN}} From fcd61df7466eab2a1bf3b7777ca8e692853d7852 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Tue, 20 Feb 2024 23:01:37 -0300 Subject: [PATCH 217/242] changing branch for reusable workflow to 'main' Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/opensearch_changelog_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/opensearch_changelog_workflow.yml b/.github/workflows/opensearch_changelog_workflow.yml index d3d052c46b8f..3553934176b1 100644 --- a/.github/workflows/opensearch_changelog_workflow.yml +++ b/.github/workflows/opensearch_changelog_workflow.yml @@ -16,7 +16,7 @@ jobs: - name: Check out repository uses: actions/checkout@v4 - name: Parse changelog entries and submit request for changset creation - uses: BigSamu/OpenSearch_Changelog_Workflow@feat/check-manual-changesets + uses: BigSamu/OpenSearch_Changelog_Workflow@feat/main with: token: ${{secrets.GITHUB_TOKEN}} changelog_pr_bridge_url_domain: ${{secrets.CHANGELOG_PR_BRIDGE_URL_DOMAIN}} From c5df36eddc37b969a332729fd0eaa5a5a99bd6f5 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Tue, 20 Feb 2024 23:02:48 -0300 Subject: [PATCH 218/242] changing branch for reusable workflow to 'main' Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/opensearch_changelog_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/opensearch_changelog_workflow.yml b/.github/workflows/opensearch_changelog_workflow.yml index 3553934176b1..cb6de3582235 100644 --- a/.github/workflows/opensearch_changelog_workflow.yml +++ b/.github/workflows/opensearch_changelog_workflow.yml @@ -16,7 +16,7 @@ jobs: - name: Check out repository uses: actions/checkout@v4 - name: Parse changelog entries and submit request for changset creation - uses: BigSamu/OpenSearch_Changelog_Workflow@feat/main + uses: BigSamu/OpenSearch_Changelog_Workflow@main with: token: ${{secrets.GITHUB_TOKEN}} changelog_pr_bridge_url_domain: ${{secrets.CHANGELOG_PR_BRIDGE_URL_DOMAIN}} From cb06b4d6143d612a1193372ab4f9b289d8e1a272 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 22 Feb 2024 09:55:02 -0300 Subject: [PATCH 219/242] changing branch of chnagelog workflow to 'feat/manual-changesets' for dev purposes Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/opensearch_changelog_workflow.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/opensearch_changelog_workflow.yml b/.github/workflows/opensearch_changelog_workflow.yml index cb6de3582235..165a188d567f 100644 --- a/.github/workflows/opensearch_changelog_workflow.yml +++ b/.github/workflows/opensearch_changelog_workflow.yml @@ -16,7 +16,8 @@ jobs: - name: Check out repository uses: actions/checkout@v4 - name: Parse changelog entries and submit request for changset creation - uses: BigSamu/OpenSearch_Changelog_Workflow@main + # uses: BigSamu/OpenSearch_Changelog_Workflow@main + uses: BigSamu/OpenSearch_Changelog_Workflow@feat/manual-changesets with: token: ${{secrets.GITHUB_TOKEN}} changelog_pr_bridge_url_domain: ${{secrets.CHANGELOG_PR_BRIDGE_URL_DOMAIN}} From 9b1c1a6299d170389bff517b3822792ee0b05ece Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 22 Feb 2024 11:35:55 -0300 Subject: [PATCH 220/242] removing 'token' input from 'opensearch_changelog_workflow.yml' Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/opensearch_changelog_workflow.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/opensearch_changelog_workflow.yml b/.github/workflows/opensearch_changelog_workflow.yml index 165a188d567f..ac4df897ce65 100644 --- a/.github/workflows/opensearch_changelog_workflow.yml +++ b/.github/workflows/opensearch_changelog_workflow.yml @@ -19,6 +19,5 @@ jobs: # uses: BigSamu/OpenSearch_Changelog_Workflow@main uses: BigSamu/OpenSearch_Changelog_Workflow@feat/manual-changesets with: - token: ${{secrets.GITHUB_TOKEN}} changelog_pr_bridge_url_domain: ${{secrets.CHANGELOG_PR_BRIDGE_URL_DOMAIN}} changelog_pr_bridge_api_key: ${{secrets.CHANGELOG_PR_BRIDGE_API_KEY}} From 137d94d98e3fe29553f7c238982f25a03b3b7648 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 22 Feb 2024 11:40:25 -0300 Subject: [PATCH 221/242] Revert "removing 'token' input from 'opensearch_changelog_workflow.yml'" This reverts commit 9b1c1a6299d170389bff517b3822792ee0b05ece. --- .github/workflows/opensearch_changelog_workflow.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/opensearch_changelog_workflow.yml b/.github/workflows/opensearch_changelog_workflow.yml index ac4df897ce65..165a188d567f 100644 --- a/.github/workflows/opensearch_changelog_workflow.yml +++ b/.github/workflows/opensearch_changelog_workflow.yml @@ -19,5 +19,6 @@ jobs: # uses: BigSamu/OpenSearch_Changelog_Workflow@main uses: BigSamu/OpenSearch_Changelog_Workflow@feat/manual-changesets with: + token: ${{secrets.GITHUB_TOKEN}} changelog_pr_bridge_url_domain: ${{secrets.CHANGELOG_PR_BRIDGE_URL_DOMAIN}} changelog_pr_bridge_api_key: ${{secrets.CHANGELOG_PR_BRIDGE_API_KEY}} From a677eccb21b0b88abf0fa56f9fb474e9dbd134b9 Mon Sep 17 00:00:00 2001 From: Ashwin P Chandran Date: Thu, 22 Feb 2024 11:39:06 -0800 Subject: [PATCH 222/242] Update .github/workflows/opensearch_changelog_workflow.yml Signed-off-by: Ashwin P Chandran --- .github/workflows/opensearch_changelog_workflow.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/opensearch_changelog_workflow.yml b/.github/workflows/opensearch_changelog_workflow.yml index 165a188d567f..2ea5ab4a1ba4 100644 --- a/.github/workflows/opensearch_changelog_workflow.yml +++ b/.github/workflows/opensearch_changelog_workflow.yml @@ -20,5 +20,5 @@ jobs: uses: BigSamu/OpenSearch_Changelog_Workflow@feat/manual-changesets with: token: ${{secrets.GITHUB_TOKEN}} - changelog_pr_bridge_url_domain: ${{secrets.CHANGELOG_PR_BRIDGE_URL_DOMAIN}} - changelog_pr_bridge_api_key: ${{secrets.CHANGELOG_PR_BRIDGE_API_KEY}} + CHANGELOG_PR_BRIDGE_URL_DOMAIN: ${{secrets.CHANGELOG_PR_BRIDGE_URL_DOMAIN}} + CHANGELOG_PR_BRIDGE_API_KEY: ${{secrets.CHANGELOG_PR_BRIDGE_API_KEY}} From 4e94689ab2944e1b963e33ba5d944169c34ec5c2 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 14 Mar 2024 17:39:06 -0300 Subject: [PATCH 223/242] setting opensearch changelog workflow to main Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/opensearch_changelog_workflow.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/opensearch_changelog_workflow.yml b/.github/workflows/opensearch_changelog_workflow.yml index 2ea5ab4a1ba4..cfda2577f5e8 100644 --- a/.github/workflows/opensearch_changelog_workflow.yml +++ b/.github/workflows/opensearch_changelog_workflow.yml @@ -16,8 +16,8 @@ jobs: - name: Check out repository uses: actions/checkout@v4 - name: Parse changelog entries and submit request for changset creation - # uses: BigSamu/OpenSearch_Changelog_Workflow@main - uses: BigSamu/OpenSearch_Changelog_Workflow@feat/manual-changesets + uses: BigSamu/OpenSearch_Changelog_Workflow@main + # uses: BigSamu/OpenSearch_Changelog_Workflow@feat/manual-changesets with: token: ${{secrets.GITHUB_TOKEN}} CHANGELOG_PR_BRIDGE_URL_DOMAIN: ${{secrets.CHANGELOG_PR_BRIDGE_URL_DOMAIN}} From 63354a3dce8fc34503ceb58e2d313926ac43f930 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 14 Mar 2024 18:41:29 -0300 Subject: [PATCH 224/242] setting opensearch changelog workflow to @feat/manual-changesets branch Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/opensearch_changelog_workflow.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/opensearch_changelog_workflow.yml b/.github/workflows/opensearch_changelog_workflow.yml index cfda2577f5e8..2ea5ab4a1ba4 100644 --- a/.github/workflows/opensearch_changelog_workflow.yml +++ b/.github/workflows/opensearch_changelog_workflow.yml @@ -16,8 +16,8 @@ jobs: - name: Check out repository uses: actions/checkout@v4 - name: Parse changelog entries and submit request for changset creation - uses: BigSamu/OpenSearch_Changelog_Workflow@main - # uses: BigSamu/OpenSearch_Changelog_Workflow@feat/manual-changesets + # uses: BigSamu/OpenSearch_Changelog_Workflow@main + uses: BigSamu/OpenSearch_Changelog_Workflow@feat/manual-changesets with: token: ${{secrets.GITHUB_TOKEN}} CHANGELOG_PR_BRIDGE_URL_DOMAIN: ${{secrets.CHANGELOG_PR_BRIDGE_URL_DOMAIN}} From 9145f3effeeda390b2156afdd9002a12bf959d6a Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Fri, 15 Mar 2024 11:55:34 -0300 Subject: [PATCH 225/242] adding 'fragments' folder inside 'changelogs' folder Signed-off-by: Samuel Valdes Gutierrez --- changelogs/fragments/hello.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 changelogs/fragments/hello.txt diff --git a/changelogs/fragments/hello.txt b/changelogs/fragments/hello.txt new file mode 100644 index 000000000000..e69de29bb2d1 From ae8cd89bd32f7bbe1e7143786785f2b91be8b599 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Fri, 15 Mar 2024 11:56:46 -0300 Subject: [PATCH 226/242] removing dummy file 'hello.txt' inside fragments Signed-off-by: Samuel Valdes Gutierrez --- changelogs/fragments/hello.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 changelogs/fragments/hello.txt diff --git a/changelogs/fragments/hello.txt b/changelogs/fragments/hello.txt deleted file mode 100644 index e69de29bb2d1..000000000000 From 234bcb88df0f1288d752424ddc4a49b00fcf89e8 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 21 Mar 2024 12:00:31 -0300 Subject: [PATCH 227/242] updating opensearch_changelog_workflow to trigger actionif PR is reopened Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/opensearch_changelog_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/opensearch_changelog_workflow.yml b/.github/workflows/opensearch_changelog_workflow.yml index 2ea5ab4a1ba4..2c52f685a2c8 100644 --- a/.github/workflows/opensearch_changelog_workflow.yml +++ b/.github/workflows/opensearch_changelog_workflow.yml @@ -2,7 +2,7 @@ name: OpenSearch Changelog Workflow on: pull_request_target: - types: [opened, edited] + types: [opened, reopened, edited] permissions: contents: read From d6149af64c863620361110c2945e3ceb2d91468c Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 4 Apr 2024 09:45:14 -0300 Subject: [PATCH 228/242] changing branch for action OpenSearch_Changelog_Workflow from 'feat/manual-changesets' to 'main' Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/opensearch_changelog_workflow.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/opensearch_changelog_workflow.yml b/.github/workflows/opensearch_changelog_workflow.yml index 2c52f685a2c8..745d0f9c8ff2 100644 --- a/.github/workflows/opensearch_changelog_workflow.yml +++ b/.github/workflows/opensearch_changelog_workflow.yml @@ -16,8 +16,7 @@ jobs: - name: Check out repository uses: actions/checkout@v4 - name: Parse changelog entries and submit request for changset creation - # uses: BigSamu/OpenSearch_Changelog_Workflow@main - uses: BigSamu/OpenSearch_Changelog_Workflow@feat/manual-changesets + uses: BigSamu/OpenSearch_Changelog_Workflow@main with: token: ${{secrets.GITHUB_TOKEN}} CHANGELOG_PR_BRIDGE_URL_DOMAIN: ${{secrets.CHANGELOG_PR_BRIDGE_URL_DOMAIN}} From 44ddd43a55e3a18feab75ee43b9fab2eeea758f7 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 11 Apr 2024 20:58:07 -0400 Subject: [PATCH 229/242] removing changeset dummy files Signed-off-by: Samuel Valdes Gutierrez --- changeset file for PR #29 created | 1 - changeset file for PR #29 updated | 1 - 2 files changed, 2 deletions(-) delete mode 100644 changeset file for PR #29 created delete mode 100644 changeset file for PR #29 updated diff --git a/changeset file for PR #29 created b/changeset file for PR #29 created deleted file mode 100644 index db184c8389e2..000000000000 --- a/changeset file for PR #29 created +++ /dev/null @@ -1 +0,0 @@ -changelogs/fragments/29.yml \ No newline at end of file diff --git a/changeset file for PR #29 updated b/changeset file for PR #29 updated deleted file mode 100644 index db184c8389e2..000000000000 --- a/changeset file for PR #29 updated +++ /dev/null @@ -1 +0,0 @@ -changelogs/fragments/29.yml \ No newline at end of file From 957a1b4537813c0450e284fe372ea5b29e7103c5 Mon Sep 17 00:00:00 2001 From: CMDWillYang Date: Thu, 11 Apr 2024 21:28:26 -0400 Subject: [PATCH 230/242] Update src/dev/generate_release_note_helper.ts Co-authored-by: Miki Signed-off-by: CMDWillYang --- src/dev/generate_release_note_helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev/generate_release_note_helper.ts b/src/dev/generate_release_note_helper.ts index 0f73122755f7..ac444d071027 100644 --- a/src/dev/generate_release_note_helper.ts +++ b/src/dev/generate_release_note_helper.ts @@ -42,7 +42,7 @@ const MAX_ENTRY_LENGTH = 100; // validate format of fragment files export function validateFragment(content: string) { - const sections = content.split('\n\n'); + const sections = content.split(/(?:\r?\n){2,}/); // validate each section for (const section of sections) { From e57bb57c07ef0d42e557e129fa8fd64b935ecdff Mon Sep 17 00:00:00 2001 From: CMDWillYang Date: Thu, 11 Apr 2024 21:29:09 -0400 Subject: [PATCH 231/242] Update src/dev/generate_release_note.ts Co-authored-by: Miki Signed-off-by: CMDWillYang --- src/dev/generate_release_note.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev/generate_release_note.ts b/src/dev/generate_release_note.ts index 158c48b79d49..d7b2b7629ce2 100644 --- a/src/dev/generate_release_note.ts +++ b/src/dev/generate_release_note.ts @@ -63,7 +63,7 @@ async function readFragments() { const fragmentPaths = await readdir(fragmentDirPath, { withFileTypes: true }); for (const fragmentFilename of fragmentPaths) { // skip non yml or yaml files - if (!fragmentFilename.name.endsWith('.yml') && !fragmentFilename.name.endsWith('.yaml')) { + if (!/\.ya?ml$/i.test(fragmentFilename.name)) { // eslint-disable-next-line no-console console.warn(`Skipping non yml or yaml file ${fragmentFilename.name}`); continue; From 65f093d8663de20760bac8a4636750518d807b57 Mon Sep 17 00:00:00 2001 From: CMDWillYang Date: Thu, 11 Apr 2024 21:29:21 -0400 Subject: [PATCH 232/242] Update src/dev/generate_release_note.ts Co-authored-by: Miki Signed-off-by: CMDWillYang --- src/dev/generate_release_note.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev/generate_release_note.ts b/src/dev/generate_release_note.ts index d7b2b7629ce2..09f5481837cf 100644 --- a/src/dev/generate_release_note.ts +++ b/src/dev/generate_release_note.ts @@ -69,7 +69,7 @@ async function readFragments() { continue; } - const fragmentPath = resolve(fragmentDirPath, fragmentFilename.name); + const fragmentPath = join(fragmentDirPath, fragmentFilename.name); const fragmentContents = readFileSync(fragmentPath, { encoding: 'utf-8' }); validateFragment(fragmentContents); From 0fe81c49e9ecc9aa254b078e12ab82ab4eb6bcd7 Mon Sep 17 00:00:00 2001 From: CMDWillYang Date: Thu, 11 Apr 2024 21:30:58 -0400 Subject: [PATCH 233/242] Update src/dev/generate_release_note_helper.ts Co-authored-by: Miki Signed-off-by: CMDWillYang --- src/dev/generate_release_note_helper.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/dev/generate_release_note_helper.ts b/src/dev/generate_release_note_helper.ts index ac444d071027..f015842aad76 100644 --- a/src/dev/generate_release_note_helper.ts +++ b/src/dev/generate_release_note_helper.ts @@ -11,15 +11,7 @@ export const fragmentTempDirPath = resolve(__dirname, '..', '..', 'changelogs', export const releaseNotesDirPath = resolve(__dirname, '..', '..', 'release-notes'); export function getCurrentDateFormatted(): string { - const now = new Date(); - const year = now.getFullYear(); - const month = now.getMonth() + 1; - const day = now.getDate(); - - const formattedMonth = month.toString().padStart(2, '0'); - const formattedDay = day.toString().padStart(2, '0'); - - return `${year}-${formattedMonth}-${formattedDay}`; + return new Date().toISOString().substr(0, 10) } export const SECTION_MAPPING = { From 9fc3d3795820ee3bd6b46029f7fa9a39625abfcf Mon Sep 17 00:00:00 2001 From: CMDWillYang Date: Thu, 11 Apr 2024 21:33:56 -0400 Subject: [PATCH 234/242] Update src/dev/generate_release_note.ts Co-authored-by: Miki Signed-off-by: CMDWillYang --- src/dev/generate_release_note.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev/generate_release_note.ts b/src/dev/generate_release_note.ts index 09f5481837cf..9d845d19e7fd 100644 --- a/src/dev/generate_release_note.ts +++ b/src/dev/generate_release_note.ts @@ -91,7 +91,7 @@ async function moveFragments(fragmentPaths: Dirent[]): Promise { for (const fragmentFilename of fragmentPaths) { const fragmentPath = resolve(fragmentDirPath, fragmentFilename.name); const fragmentTempPath = resolve(fragmentTempDirPath, fragmentFilename.name); - renameSync(fragmentPath, fragmentTempPath); + await rename(fragmentPath, fragmentTempPath); } } From 49cd02d173b93144c8a1cb3d0c50041483367ff5 Mon Sep 17 00:00:00 2001 From: CMDWillYang Date: Thu, 11 Apr 2024 21:36:00 -0400 Subject: [PATCH 235/242] Update src/dev/generate_release_note_helper.ts Co-authored-by: Miki Signed-off-by: CMDWillYang --- src/dev/generate_release_note_helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev/generate_release_note_helper.ts b/src/dev/generate_release_note_helper.ts index f015842aad76..4f10270390c6 100644 --- a/src/dev/generate_release_note_helper.ts +++ b/src/dev/generate_release_note_helper.ts @@ -45,7 +45,7 @@ export function validateFragment(content: string) { if (!SECTION_MAPPING[sectionKey as SectionKey] || !sectionName.endsWith(':')) { throw new Error(`Unknown section ${sectionKey}.`); } - // validate entries. each entry must start with '-' and a space. then followed by a string. string must be non-empty and less than 50 characters + // Each entry must start with '-' and a space, followed by a non-empty string, and be no longer that MAX_ENTRY_LENGTH characters const entryRegex = new RegExp(`^-.{1,${MAX_ENTRY_LENGTH}}\\(\\[#.+]\\(.+\\)\\)$`); for (const entry of lines.slice(1)) { if (entry === '') { From 469ef075deba476de372b179dad6f4a7928e3569 Mon Sep 17 00:00:00 2001 From: CMDWillYang Date: Thu, 11 Apr 2024 21:38:15 -0400 Subject: [PATCH 236/242] minor updates Signed-off-by: CMDWillYang --- src/dev/generate_release_note.ts | 4 ++-- src/dev/generate_release_note_helper.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dev/generate_release_note.ts b/src/dev/generate_release_note.ts index 9d845d19e7fd..42b2071ebd62 100644 --- a/src/dev/generate_release_note.ts +++ b/src/dev/generate_release_note.ts @@ -4,7 +4,7 @@ */ import { resolve } from 'path'; -import { readFileSync, writeFileSync, Dirent, renameSync, rm } from 'fs'; +import { readFileSync, writeFileSync, Dirent, rm, rename } from 'fs'; import { load as loadYaml } from 'js-yaml'; import { mkdir, readdir } from 'fs/promises'; import { version as pkgVersion } from '../../package.json'; @@ -91,7 +91,7 @@ async function moveFragments(fragmentPaths: Dirent[]): Promise { for (const fragmentFilename of fragmentPaths) { const fragmentPath = resolve(fragmentDirPath, fragmentFilename.name); const fragmentTempPath = resolve(fragmentTempDirPath, fragmentFilename.name); - await rename(fragmentPath, fragmentTempPath); + rename(fragmentPath, fragmentTempPath, () => {}); } } diff --git a/src/dev/generate_release_note_helper.ts b/src/dev/generate_release_note_helper.ts index f015842aad76..7b3f823efe5a 100644 --- a/src/dev/generate_release_note_helper.ts +++ b/src/dev/generate_release_note_helper.ts @@ -11,7 +11,7 @@ export const fragmentTempDirPath = resolve(__dirname, '..', '..', 'changelogs', export const releaseNotesDirPath = resolve(__dirname, '..', '..', 'release-notes'); export function getCurrentDateFormatted(): string { - return new Date().toISOString().substr(0, 10) + return new Date().toISOString().slice(0, 10); } export const SECTION_MAPPING = { From 9f9a25d5b42d2e6ac05a59e1d1bad8b4098ca1d4 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 11 Apr 2024 21:46:14 -0400 Subject: [PATCH 237/242] updating pull_request_template.md Signed-off-by: Samuel Valdes Gutierrez --- .github/pull_request_template.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index b5fe6881d1c2..662ca15b8d68 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -21,16 +21,14 @@ ## Changelog ### Check List From fc9ed97ad4d0ba0e8e72ceed5e95ed9948fb2639 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 11 Apr 2024 21:58:06 -0400 Subject: [PATCH 238/242] using tag 1.0.0 for first release of opensearch changelog workflow Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/opensearch_changelog_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/opensearch_changelog_workflow.yml b/.github/workflows/opensearch_changelog_workflow.yml index 745d0f9c8ff2..70efa6721ca4 100644 --- a/.github/workflows/opensearch_changelog_workflow.yml +++ b/.github/workflows/opensearch_changelog_workflow.yml @@ -16,7 +16,7 @@ jobs: - name: Check out repository uses: actions/checkout@v4 - name: Parse changelog entries and submit request for changset creation - uses: BigSamu/OpenSearch_Changelog_Workflow@main + uses: BigSamu/OpenSearch_Changelog_Workflow@1.0.0 with: token: ${{secrets.GITHUB_TOKEN}} CHANGELOG_PR_BRIDGE_URL_DOMAIN: ${{secrets.CHANGELOG_PR_BRIDGE_URL_DOMAIN}} From c843d2403e1dbb61a8ef5b9c92573a5f91f25506 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 11 Apr 2024 22:12:33 -0400 Subject: [PATCH 239/242] using tag v1.0.0 for first release of opensearch changelog workflow Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/opensearch_changelog_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/opensearch_changelog_workflow.yml b/.github/workflows/opensearch_changelog_workflow.yml index 70efa6721ca4..d52b4c2ca8b5 100644 --- a/.github/workflows/opensearch_changelog_workflow.yml +++ b/.github/workflows/opensearch_changelog_workflow.yml @@ -16,7 +16,7 @@ jobs: - name: Check out repository uses: actions/checkout@v4 - name: Parse changelog entries and submit request for changset creation - uses: BigSamu/OpenSearch_Changelog_Workflow@1.0.0 + uses: BigSamu/OpenSearch_Changelog_Workflow@v1.0.0 with: token: ${{secrets.GITHUB_TOKEN}} CHANGELOG_PR_BRIDGE_URL_DOMAIN: ${{secrets.CHANGELOG_PR_BRIDGE_URL_DOMAIN}} From c154db8e770bcebc5b25108c6eda98058a4976bd Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 11 Apr 2024 22:14:09 -0400 Subject: [PATCH 240/242] using tag 1.0.0-alpha1 for first release of opensearch changelog workflow Signed-off-by: Samuel Valdes Gutierrez --- .github/workflows/opensearch_changelog_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/opensearch_changelog_workflow.yml b/.github/workflows/opensearch_changelog_workflow.yml index d52b4c2ca8b5..8af8b0d70b0d 100644 --- a/.github/workflows/opensearch_changelog_workflow.yml +++ b/.github/workflows/opensearch_changelog_workflow.yml @@ -16,7 +16,7 @@ jobs: - name: Check out repository uses: actions/checkout@v4 - name: Parse changelog entries and submit request for changset creation - uses: BigSamu/OpenSearch_Changelog_Workflow@v1.0.0 + uses: BigSamu/OpenSearch_Changelog_Workflow@1.0.0-alpha1 with: token: ${{secrets.GITHUB_TOKEN}} CHANGELOG_PR_BRIDGE_URL_DOMAIN: ${{secrets.CHANGELOG_PR_BRIDGE_URL_DOMAIN}} From 694057468f21d8afcfe014bd493b9659ca5164cf Mon Sep 17 00:00:00 2001 From: CMDWillYang Date: Thu, 11 Apr 2024 22:21:10 -0400 Subject: [PATCH 241/242] minor improvements + refactoring. Signed-off-by: CMDWillYang --- src/dev/generate_release_note.ts | 19 ++++++++----------- src/dev/generate_release_note_helper.ts | 5 ++--- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/src/dev/generate_release_note.ts b/src/dev/generate_release_note.ts index 42b2071ebd62..74c71897cbea 100644 --- a/src/dev/generate_release_note.ts +++ b/src/dev/generate_release_note.ts @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { resolve } from 'path'; -import { readFileSync, writeFileSync, Dirent, rm, rename } from 'fs'; +import { join, resolve } from 'path'; +import { readFileSync, writeFileSync, Dirent, rm, rename, promises as fsPromises } from 'fs'; import { load as loadYaml } from 'js-yaml'; import { mkdir, readdir } from 'fs/promises'; import { version as pkgVersion } from '../../package.json'; @@ -14,7 +14,6 @@ import { Changelog, SECTION_MAPPING, fragmentDirPath, - fragmentTempDirPath, SectionKey, releaseNotesDirPath, filePath, @@ -45,7 +44,7 @@ function addContentAfterUnreleased(path: string, newContent: string): void { writeFileSync(path, fileContent); } -async function deleteFragments() { +async function deleteFragments(fragmentTempDirPath: string) { rm(fragmentTempDirPath, { recursive: true }, (err: any) => { if (err) { throw err; @@ -83,10 +82,7 @@ async function readFragments() { return { sections, fragmentPaths }; } -async function moveFragments(fragmentPaths: Dirent[]): Promise { - // create folder for temp fragments at fragmentTempDirPath - await mkdir(fragmentTempDirPath, { recursive: true }); - +async function moveFragments(fragmentPaths: Dirent[], fragmentTempDirPath: string): Promise { // Move fragment files to temp fragments folder for (const fragmentFilename of fragmentPaths) { const fragmentPath = resolve(fragmentDirPath, fragmentFilename.name); @@ -124,14 +120,15 @@ function generateReleaseNote(changelogSections: string[]) { (async () => { const { sections, fragmentPaths } = await readFragments(); - + // create folder for temp fragments + const fragmentTempDirPath = await fsPromises.mkdtemp(join(fragmentDirPath, 'tmp_fragments-')); // move fragments to temp fragments folder - await moveFragments(fragmentPaths); + await moveFragments(fragmentPaths, fragmentTempDirPath); const changelogSections = generateChangelog(sections); generateReleaseNote(changelogSections); // remove temp fragments folder - await deleteFragments(); + await deleteFragments(fragmentTempDirPath); })(); diff --git a/src/dev/generate_release_note_helper.ts b/src/dev/generate_release_note_helper.ts index dbd12395a950..988c0f92d964 100644 --- a/src/dev/generate_release_note_helper.ts +++ b/src/dev/generate_release_note_helper.ts @@ -7,7 +7,6 @@ import { resolve } from 'path'; export const filePath = resolve(__dirname, '..', '..', 'CHANGELOG.md'); export const fragmentDirPath = resolve(__dirname, '..', '..', 'changelogs', 'fragments'); -export const fragmentTempDirPath = resolve(__dirname, '..', '..', 'changelogs', 'temp_fragments'); export const releaseNotesDirPath = resolve(__dirname, '..', '..', 'release-notes'); export function getCurrentDateFormatted(): string { @@ -31,6 +30,8 @@ export type SectionKey = keyof typeof SECTION_MAPPING; export type Changelog = Record; const MAX_ENTRY_LENGTH = 100; +// Each entry must start with '-' and a space, followed by a non-empty string, and be no longer that MAX_ENTRY_LENGTH characters +const entryRegex = new RegExp(`^-.{1,${MAX_ENTRY_LENGTH}}\\(\\[#.+]\\(.+\\)\\)$`); // validate format of fragment files export function validateFragment(content: string) { @@ -45,8 +46,6 @@ export function validateFragment(content: string) { if (!SECTION_MAPPING[sectionKey as SectionKey] || !sectionName.endsWith(':')) { throw new Error(`Unknown section ${sectionKey}.`); } - // Each entry must start with '-' and a space, followed by a non-empty string, and be no longer that MAX_ENTRY_LENGTH characters - const entryRegex = new RegExp(`^-.{1,${MAX_ENTRY_LENGTH}}\\(\\[#.+]\\(.+\\)\\)$`); for (const entry of lines.slice(1)) { if (entry === '') { continue; From e4c81c25f9b4e3c4d316d630bbac576c00dfd344 Mon Sep 17 00:00:00 2001 From: CMDWillYang Date: Thu, 11 Apr 2024 23:27:58 -0400 Subject: [PATCH 242/242] small formatting fix to changelog entry Signed-off-by: CMDWillYang --- src/dev/generate_release_note.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/dev/generate_release_note.ts b/src/dev/generate_release_note.ts index 74c71897cbea..4c9eaabf0bf7 100644 --- a/src/dev/generate_release_note.ts +++ b/src/dev/generate_release_note.ts @@ -6,7 +6,7 @@ import { join, resolve } from 'path'; import { readFileSync, writeFileSync, Dirent, rm, rename, promises as fsPromises } from 'fs'; import { load as loadYaml } from 'js-yaml'; -import { mkdir, readdir } from 'fs/promises'; +import { readdir } from 'fs/promises'; import { version as pkgVersion } from '../../package.json'; import { validateFragment, @@ -27,12 +27,12 @@ function addContentAfterUnreleased(path: string, newContent: string): void { if (targetIndex !== -1) { const endOfLineIndex = fileContent.indexOf('\n', targetIndex); - if (endOfLineIndex !== -1) { fileContent = fileContent.slice(0, endOfLineIndex + 1) + '\n' + newContent + + '\n' + fileContent.slice(endOfLineIndex + 1); } else { throw new Error('End of line for "Unreleased" section not found.'); @@ -102,9 +102,9 @@ function generateChangelog(sections: Changelog) { // Generate full changelog const currentDate = getCurrentDateFormatted(); - const changelog = `## [${pkgVersion}-${currentDate}]( - ${changelogSections.join('\n\n')} - `; + const changelog = `## [${pkgVersion}-${currentDate}](https://github.com/opensearch-project/OpenSearch-Dashboards/releases/tag/${pkgVersion})\n\n${changelogSections.join( + '\n\n' + )}`; // Update changelog file addContentAfterUnreleased(filePath, changelog); return changelogSections;