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>
This commit is contained in:
Luqman
2024-01-10 18:16:25 +01:00
committed by GitHub
parent b1157cda7d
commit f2b9054f66
3 changed files with 50 additions and 7 deletions

28
.github/labeler.yml vendored Normal file
View File

@@ -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/.*"

View File

@@ -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 🦋

View File

@@ -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 }}