summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuqman <luqazino@gmail.com>2024-01-10 18:16:25 +0100
committerGitHub <noreply@github.com>2024-01-10 17:16:25 +0000
commitf2b9054f66807b4fd9d6d6414ed0919d4a51e7b7 (patch)
tree105e1aba58c006b49e54364fc03e9494a39e3ada
parentb1157cda7d3f6fd7c577bfc04c4ab45c3d2fbe4c (diff)
Categorize release notes based on labels for OpenBB Platform (#5943)
* Categorize release notes based on labels for OpenBB Platform * Add environment variable for GitHub token in labels-PR.yml * Update labeler.yml to use "enhancement" label for feature branches --------- Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
-rw-r--r--.github/labeler.yml28
-rw-r--r--.github/release-drafter.yml10
-rw-r--r--.github/workflows/labels-PR.yml19
3 files changed, 50 insertions, 7 deletions
diff --git a/.github/labeler.yml b/.github/labeler.yml
new file mode 100644
index 00000000000..3e73ca963c3
--- /dev/null
+++ b/.github/labeler.yml
@@ -0,0 +1,28 @@
+version: 1
+labels:
+ - label: "platform"
+ files:
+ - "openbb_platform/.*"
+
+ - label: "v4"
+ files:
+ - "openbb_platform/.*"
+
+ - label: "bug"
+ branch: "^hotfix/.*"
+ files:
+ - "openbb_platform/.*"
+
+ - label: "platform"
+ branch: "^hotfix/.*"
+ files:
+ - "openbb_platform/.*"
+
+ - label: "enhancement"
+ branch: "^feature/.*"
+
+ - label: "bug"
+ branch: "^hotfix/.*"
+
+ - label: "docs"
+ branch: "^docs/.*"
diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml
index 0a776008049..9643fdf332c 100644
--- a/.github/release-drafter.yml
+++ b/.github/release-drafter.yml
@@ -1,5 +1,13 @@
name-template: 'OpenBB Terminal v$NEXT_MINOR_VERSION'
tag-template: 'v$NEXT_MINOR_VERSION'
+categories:
+ - title: 🦋 OpenBB Platform Enhancements
+ labels:
+ - 'platform'
+ - 'v4'
+ - title: 🐛 OpenBB Platform Bug Fixes
+ labels:
+ - 'bug'
exclude-contributors:
- 'jmaslek'
- 'DidierRLopes'
@@ -25,7 +33,7 @@ template: |
$CHANGES
We are proud of our community contributors and staunch supporters of open-source ecosystems.
- Help us promote our community by tagging `@openbb_finance` on Twitter with a link to your pull request,
+ Help us promote our community by tagging `@openbb_finance` on X with a link to your pull request,
and join our Discord server to chat about your contribution! We want to hear about your experience!
### Links 🦋
diff --git a/.github/workflows/labels-PR.yml b/.github/workflows/labels-PR.yml
index fa84744e432..259632be888 100644
--- a/.github/workflows/labels-PR.yml
+++ b/.github/workflows/labels-PR.yml
@@ -1,18 +1,25 @@
name: Pull Request Labels
-"on":
+
+on:
pull_request:
types: [opened, reopened, labeled, unlabeled, synchronize]
+
jobs:
label:
runs-on: ubuntu-latest
steps:
- - uses: mheap/github-action-required-labels@v1
- with:
- mode: minimum
- count: 1
- labels: "guides, bug, build, docker, docs, feat XS, feat S, feat M, feat L, feat XL, help wanted, refactor, tests, dependencies, release"
+ # - uses: mheap/github-action-required-labels@v1
+ # with:
+ # mode: minimum
+ # count: 1
+ # labels: "guides, bug, build, docker, docs, feat XS, feat S, feat M, feat L, feat XL, help wanted, refactor, tests, dependencies, release"
- uses: mheap/github-action-required-labels@v1
with:
mode: exactly
count: 0
labels: "do not merge"
+
+ - name: Label OpenBB Platform PRs
+ uses: srvaroa/labeler@master
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file