diff --git a/.github/ISSUE_TEMPLATE/component_release_template.md b/.github/ISSUE_TEMPLATE/component_release_template.md index 59fb996eab..7b9e3b1b8e 100644 --- a/.github/ISSUE_TEMPLATE/component_release_template.md +++ b/.github/ISSUE_TEMPLATE/component_release_template.md @@ -33,7 +33,7 @@ If including changes in this release, increment the version on `{{RELEASE_VERSIO - [ ] Finalize scope and feature set and update [the Public Roadmap](https://github.com/orgs/opensearch-project/projects/1). - [ ] All the tasks in this issue have been reviewed by the release owner. - [ ] Create, update, triage and label all features and issues targeted for this release with `v{{RELEASE_VERSION}}`. -- [ ] Finalize the code and create the the release branch `{{RELEASE_VERSION}}` from the `{{RELEASE_VERSION_X}}` branch. +- [ ] Finalize the code and create the the release branch `{{RELEASE_BRANCH}}` from the `{{RELEASE_VERSION_X}}` branch. ### CI/CD diff --git a/.github/workflows/os-release-issues.yml b/.github/workflows/os-release-issues.yml index 4f1a012a11..e8316b9996 100644 --- a/.github/workflows/os-release-issues.yml +++ b/.github/workflows/os-release-issues.yml @@ -57,6 +57,7 @@ jobs: - {repo: security} - {repo: security-analytics} - {repo: sql} + - {repo: flow-framework} release_version: ${{ fromJson(needs.list-manifest-versions.outputs.matrix) }} steps: - name: GitHub App token @@ -97,6 +98,7 @@ jobs: # Read the file contents and replace the placeholders file_path="../opensearch-build/.github/ISSUE_TEMPLATE/component_release_template.md" RELEASE_VERSION="${{ matrix.release_version }}" + RELEASE_BRANCH=$(echo ${{ matrix.release_version }} | cut -d. -f1-2) BUILD_REPO_ISSUE_OUTPUT=$(cat < "$file_path.tmp" && mv "$file_path.tmp" "$file_path" + sed -e "s|{{RELEASE_VERSION}}|${RELEASE_VERSION}|g" -e "s|{{RELEASE_ISSUE}}|${RELEASE_ISSUE}|g" -e "s|{{RELEASE_BRANCH}}|${RELEASE_BRANCH}|g" -e "s|{{RELEASE_VERSION_X}}|${RELEASE_VERSION_X}|g" "$file_path" > "$file_path.tmp" && mv "$file_path.tmp" "$file_path" - name: Create component release issue from file if: steps.check_if_plugin_repo_issue_exists.outputs.issues == '[]' uses: peter-evans/create-issue-from-file@v4 diff --git a/.github/workflows/osd-release-issues.yml b/.github/workflows/osd-release-issues.yml index d47adfe627..35a7ca7776 100644 --- a/.github/workflows/osd-release-issues.yml +++ b/.github/workflows/osd-release-issues.yml @@ -93,6 +93,7 @@ jobs: # Read the file contents and replace the placeholders file_path="../opensearch-build/.github/ISSUE_TEMPLATE/component_release_template.md" RELEASE_VERSION="${{ matrix.release_version }}" + RELEASE_BRANCH=$(echo ${{ matrix.release_version }} | cut -d. -f1-2) BUILD_REPO_ISSUE_OUTPUT=$(cat < "$file_path.tmp" && mv "$file_path.tmp" "$file_path" + sed -e "s|{{RELEASE_VERSION}}|${RELEASE_VERSION}|g" -e "s|{{RELEASE_ISSUE}}|${RELEASE_ISSUE}|g" -e "s|{{RELEASE_BRANCH}}|${RELEASE_BRANCH}|g" -e "s|{{RELEASE_VERSION_X}}|${RELEASE_VERSION_X}|g" "$file_path" > "$file_path.tmp" && mv "$file_path.tmp" "$file_path" - name: Create component release issue from file if: steps.check_if_plugin_repo_issue_exists.outputs.issues == '[]' uses: peter-evans/create-issue-from-file@v4