From a0bce5021fc3a61a3c96e7a6e768c3967b608849 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Mon, 6 Mar 2023 16:19:42 -0800 Subject: [PATCH] [Backport main] 2.6 release notes and label enforcer (#1426) * 2.6 release notes (#1424) * add 2.6 release notes Signed-off-by: Derek Ho * fix up file Signed-off-by: Derek Ho --------- Signed-off-by: Derek Ho (cherry picked from commit 7059fadca0fe152d0731e00fa9368a88eb1232e7) * Automate releases based on tagging (#1436) (#1445) * Update 2.x workflow Signed-off-by: Simeon Widdis * Undo test-build changes from main Signed-off-by: Simeon Widdis * Remove test Signed-off-by: Simeon Widdis --------- Signed-off-by: Simeon Widdis (cherry picked from commit 8044bc57280a146ac3055f45e42174f2a31f6392) Co-authored-by: Simeon Widdis --------- Co-authored-by: Derek Ho Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Co-authored-by: Simeon Widdis --- .github/workflows/auto-release.yml | 29 +++++++++++++++++++ .github/workflows/enforce-labels.yml | 13 +++++++++ ...rch-observability.release-notes-2.6.0.0.md | 13 +++++++++ 3 files changed, 55 insertions(+) create mode 100644 .github/workflows/auto-release.yml create mode 100644 .github/workflows/enforce-labels.yml create mode 100644 release-notes/opensearch-observability.release-notes-2.6.0.0.md diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml new file mode 100644 index 000000000..5bcfea751 --- /dev/null +++ b/.github/workflows/auto-release.yml @@ -0,0 +1,29 @@ +name: Releases + +on: + push: + tags: + - '*' + +jobs: + + build: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: GitHub App token + id: github_app_token + uses: tibdex/github-app-token@v1.5.0 + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.APP_PRIVATE_KEY }} + installation_id: 22958780 + - name: Get tag + id: tag + uses: dawidd6/action-get-tag@v1 + - uses: actions/checkout@v2 + - uses: ncipollo/release-action@v1 + with: + github_token: ${{ steps.github_app_token.outputs.token }} + bodyFile: release-notes/opensearch-observability.release-notes-${{steps.tag.outputs.tag}}.md diff --git a/.github/workflows/enforce-labels.yml b/.github/workflows/enforce-labels.yml new file mode 100644 index 000000000..71d923f66 --- /dev/null +++ b/.github/workflows/enforce-labels.yml @@ -0,0 +1,13 @@ +name: Enforce PR labels + +on: + pull_request: + types: [labeled, unlabeled, opened, edited, synchronize] +jobs: + enforce-label: + runs-on: ubuntu-latest + steps: + - uses: yogevbd/enforce-label-action@2.1.0 + with: + REQUIRED_LABELS_ANY: "breaking,feature,enhancement,bug,infrastructure,dependencies,documentation,maintenance,skip-changelog" + REQUIRED_LABELS_ANY_DESCRIPTION: "A release label is required: ['breaking', 'bug', 'dependencies', 'documentation', 'enhancement', 'feature', 'infrastructure', 'maintenance', 'skip-changelog']" diff --git a/release-notes/opensearch-observability.release-notes-2.6.0.0.md b/release-notes/opensearch-observability.release-notes-2.6.0.0.md new file mode 100644 index 000000000..8b8955eb3 --- /dev/null +++ b/release-notes/opensearch-observability.release-notes-2.6.0.0.md @@ -0,0 +1,13 @@ +## Version 2.6.0.0 Release Notes + +Compatible with OpenSearch and OpenSearch Dashboards Version 2.6.0 + +### Infrastructure + +- Add publish snapshots to maven via GHA ([#1423](https://github.com/opensearch-project/observability/pull/1423)) + + +### Maintenance + +- Revert "Removing explicit jackson dependencies ([#1381](https://github.com/opensearch-project/observability/pull/1381)) +- bump version to 2.6 ([#1391](https://github.com/opensearch-project/observability/pull/1391))