From 260a41750c379b5929913096f264e9a433f8c0cc Mon Sep 17 00:00:00 2001 From: Chayim Date: Tue, 16 May 2023 14:03:42 +0300 Subject: [PATCH] Auto release via drafting, step one (#2453) * first step of auto-release with the release drafter * PR Comments * making leibale happy --- .github/release-drafter/bloom-config.yml | 50 +++++++++++++++++++ .github/release-drafter/graph-config.yml | 49 ++++++++++++++++++ .../json-config.yml} | 13 +++-- .github/release-drafter/search-config.yml | 50 +++++++++++++++++++ .../release-drafter/time-series-config.yml | 49 ++++++++++++++++++ .github/workflows/release-drafter-bloom.yml | 23 +++++++++ .github/workflows/release-drafter-graph.yml | 23 +++++++++ ...e-drafter.yml => release-drafter-json.yml} | 6 ++- .github/workflows/release-drafter-search.yml | 23 +++++++++ .../workflows/release-drafter-time-series.yml | 23 +++++++++ 10 files changed, 305 insertions(+), 4 deletions(-) create mode 100644 .github/release-drafter/bloom-config.yml create mode 100644 .github/release-drafter/graph-config.yml rename .github/{release-drafter-config.yml => release-drafter/json-config.yml} (77%) create mode 100644 .github/release-drafter/search-config.yml create mode 100644 .github/release-drafter/time-series-config.yml create mode 100644 .github/workflows/release-drafter-bloom.yml create mode 100644 .github/workflows/release-drafter-graph.yml rename .github/workflows/{release-drafter.yml => release-drafter-json.yml} (79%) create mode 100644 .github/workflows/release-drafter-search.yml create mode 100644 .github/workflows/release-drafter-time-series.yml diff --git a/.github/release-drafter/bloom-config.yml b/.github/release-drafter/bloom-config.yml new file mode 100644 index 0000000000..7734330b95 --- /dev/null +++ b/.github/release-drafter/bloom-config.yml @@ -0,0 +1,50 @@ +name-template: 'bloom@$NEXT_PATCH_VERSION' +tag-template: 'bloom@$NEXT_PATCH_VERSION' +autolabeler: + - label: 'chore' + files: + - '*.md' + - '.github/*' + - label: 'bug' + branch: + - '/bug-.+' + - label: 'chore' + branch: + - '/chore-.+' + - label: 'feature' + branch: + - '/feature-.+' +categories: + - title: 'Breaking Changes' + labels: + - 'breakingchange' + - title: '🚀 New Features' + labels: + - 'feature' + - 'enhancement' + - title: '🐛 Bug Fixes' + labels: + - 'fix' + - 'bugfix' + - 'bug' + - title: '🧰 Maintenance' + label: + - 'chore' + - 'maintenance' + - 'documentation' + - 'docs' + +change-template: '- $TITLE (#$NUMBER)' +include-paths: + - 'packages/bloom' +exclude-labels: + - 'skip-changelog' +template: | + ## Changes + + $CHANGES + + ## Contributors + We'd like to thank all the contributors who worked on this release! + + $CONTRIBUTORS diff --git a/.github/release-drafter/graph-config.yml b/.github/release-drafter/graph-config.yml new file mode 100644 index 0000000000..88d76b78b5 --- /dev/null +++ b/.github/release-drafter/graph-config.yml @@ -0,0 +1,49 @@ +name-template: 'graph@$NEXT_PATCH_VERSION' +tag-template: 'graph@$NEXT_PATCH_VERSION' +autolabeler: + - label: 'chore' + files: + - '*.md' + - '.github/*' + - label: 'bug' + branch: + - '/bug-.+' + - label: 'chore' + branch: + - '/chore-.+' + - label: 'feature' + branch: + - '/feature-.+' +categories: + - title: 'Breaking Changes' + labels: + - 'breakingchange' + - title: '🚀 New Features' + labels: + - 'feature' + - 'enhancement' + - title: '🐛 Bug Fixes' + labels: + - 'fix' + - 'bugfix' + - 'bug' + - title: '🧰 Maintenance' + label: + - 'chore' + - 'maintenance' + - 'documentation' + - 'docs' +change-template: '- $TITLE (#$NUMBER)' +include-paths: + - 'packages/graph' +exclude-labels: + - 'skip-changelog' +template: | + ## Changes + + $CHANGES + + ## Contributors + We'd like to thank all the contributors who worked on this release! + + $CONTRIBUTORS diff --git a/.github/release-drafter-config.yml b/.github/release-drafter/json-config.yml similarity index 77% rename from .github/release-drafter-config.yml rename to .github/release-drafter/json-config.yml index 9a98b1c08a..ea259fc0d2 100644 --- a/.github/release-drafter-config.yml +++ b/.github/release-drafter/json-config.yml @@ -1,5 +1,5 @@ -name-template: 'Version $NEXT_PATCH_VERSION' -tag-template: 'v$NEXT_PATCH_VERSION' +name-template: 'json@$NEXT_PATCH_VERSION' +tag-template: 'json@$NEXT_PATCH_VERSION' autolabeler: - label: 'chore' files: @@ -28,8 +28,15 @@ categories: - 'bugfix' - 'bug' - title: '🧰 Maintenance' - label: 'chore' + label: + - 'chore' + - 'maintenance' + - 'documentation' + - 'docs' + change-template: '- $TITLE (#$NUMBER)' +include-paths: + - 'packages/json' exclude-labels: - 'skip-changelog' template: | diff --git a/.github/release-drafter/search-config.yml b/.github/release-drafter/search-config.yml new file mode 100644 index 0000000000..a78070aa59 --- /dev/null +++ b/.github/release-drafter/search-config.yml @@ -0,0 +1,50 @@ +name-template: 'search@$NEXT_PATCH_VERSION' +tag-template: 'search@$NEXT_PATCH_VERSION' +autolabeler: + - label: 'chore' + files: + - '*.md' + - '.github/*' + - label: 'bug' + branch: + - '/bug-.+' + - label: 'chore' + branch: + - '/chore-.+' + - label: 'feature' + branch: + - '/feature-.+' +categories: + - title: 'Breaking Changes' + labels: + - 'breakingchange' + - title: '🚀 New Features' + labels: + - 'feature' + - 'enhancement' + - title: '🐛 Bug Fixes' + labels: + - 'fix' + - 'bugfix' + - 'bug' + - title: '🧰 Maintenance' + label: + - 'chore' + - 'maintenance' + - 'documentation' + - 'docs' + +change-template: '- $TITLE (#$NUMBER)' +include-paths: + - 'packages/search' +exclude-labels: + - 'skip-changelog' +template: | + ## Changes + + $CHANGES + + ## Contributors + We'd like to thank all the contributors who worked on this release! + + $CONTRIBUTORS diff --git a/.github/release-drafter/time-series-config.yml b/.github/release-drafter/time-series-config.yml new file mode 100644 index 0000000000..29aee0cbc9 --- /dev/null +++ b/.github/release-drafter/time-series-config.yml @@ -0,0 +1,49 @@ +name-template: 'time-series@$NEXT_PATCH_VERSION' +tag-template: 'time-series@$NEXT_PATCH_VERSION' +autolabeler: + - label: 'chore' + files: + - '*.md' + - '.github/*' + - label: 'bug' + branch: + - '/bug-.+' + - label: 'chore' + branch: + - '/chore-.+' + - label: 'feature' + branch: + - '/feature-.+' +categories: + - title: 'Breaking Changes' + labels: + - 'breakingchange' + - title: '🚀 New Features' + labels: + - 'feature' + - 'enhancement' + - title: '🐛 Bug Fixes' + labels: + - 'fix' + - 'bugfix' + - 'bug' + - title: '🧰 Maintenance' + label: + - 'chore' + - 'maintenance' + - 'documentation' + - 'docs' +change-template: '- $TITLE (#$NUMBER)' +include-paths: + - 'packages/time-series' +exclude-labels: + - 'skip-changelog' +template: | + ## Changes + + $CHANGES + + ## Contributors + We'd like to thank all the contributors who worked on this release! + + $CONTRIBUTORS diff --git a/.github/workflows/release-drafter-bloom.yml b/.github/workflows/release-drafter-bloom.yml new file mode 100644 index 0000000000..3b1197e1c9 --- /dev/null +++ b/.github/workflows/release-drafter-bloom.yml @@ -0,0 +1,23 @@ +name: Release Drafter + +on: + push: + # branches to consider in the event; optional, defaults to all + branches: + - master + +jobs: + + update_release_draft: + permissions: + contents: write + pull-requests: write + runs-on: ubuntu-latest + steps: + # Drafts your next Release notes as Pull Requests are merged into "master" + - uses: release-drafter/release-drafter@v5 + with: + # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml + config-name: release-drafter/bloom-config.yml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-drafter-graph.yml b/.github/workflows/release-drafter-graph.yml new file mode 100644 index 0000000000..8046922178 --- /dev/null +++ b/.github/workflows/release-drafter-graph.yml @@ -0,0 +1,23 @@ +name: Release Drafter + +on: + push: + # branches to consider in the event; optional, defaults to all + branches: + - master + +jobs: + + update_release_draft: + permissions: + contents: write + pull-requests: write + runs-on: ubuntu-latest + steps: + # Drafts your next Release notes as Pull Requests are merged into "master" + - uses: release-drafter/release-drafter@v5 + with: + # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml + config-name: release-drafter/graph-config.yml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter-json.yml similarity index 79% rename from .github/workflows/release-drafter.yml rename to .github/workflows/release-drafter-json.yml index ec2d88bf6e..b66616d380 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter-json.yml @@ -7,13 +7,17 @@ on: - master jobs: + update_release_draft: + permissions: + contents: write + pull-requests: write runs-on: ubuntu-latest steps: # Drafts your next Release notes as Pull Requests are merged into "master" - uses: release-drafter/release-drafter@v5 with: # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml - config-name: release-drafter-config.yml + config-name: release-drafter/json-config.yml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-drafter-search.yml b/.github/workflows/release-drafter-search.yml new file mode 100644 index 0000000000..821b748076 --- /dev/null +++ b/.github/workflows/release-drafter-search.yml @@ -0,0 +1,23 @@ +name: Release Drafter + +on: + push: + # branches to consider in the event; optional, defaults to all + branches: + - master + +jobs: + + update_release_draft: + permissions: + contents: write + pull-requests: write + runs-on: ubuntu-latest + steps: + # Drafts your next Release notes as Pull Requests are merged into "master" + - uses: release-drafter/release-drafter@v5 + with: + # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml + config-name: release-drafter/search-config.yml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-drafter-time-series.yml b/.github/workflows/release-drafter-time-series.yml new file mode 100644 index 0000000000..1a9555e646 --- /dev/null +++ b/.github/workflows/release-drafter-time-series.yml @@ -0,0 +1,23 @@ +name: Release Drafter + +on: + push: + # branches to consider in the event; optional, defaults to all + branches: + - master + +jobs: + + update_release_draft: + permissions: + contents: write + pull-requests: write + runs-on: ubuntu-latest + steps: + # Drafts your next Release notes as Pull Requests are merged into "master" + - uses: release-drafter/release-drafter@v5 + with: + # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml + config-name: release-drafter/time-series-config.yml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}