Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
haerdib committed Nov 21, 2023
1 parent b722ac4 commit 97d0ac8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ categories:
- 'E2-breaksapi'
- title: ' 🌈 Features'
labels:
- 'F6-optimization'
- 'F8-newfeature'
- 'F7-enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'F1-security'
- 'F2-bug'
- title: ' Miscellaneous '
collapse-after: 5
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/check-lables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,13 @@ jobs:
if [[ "$MATCH" == '[]' ]]; then
exit 1
fi
- name: F Label check
env:
enforced_labels: "F0-miscellaneous,F1-security,F2-bug,F3-test,F4-documentation,F5-refactor,F6-optimization,F7-enhancement,F8-newfeature,F9-dependencies"
run: |
MATCH=$(jq -cn '${{ toJSON(github.event.pull_request.labels.*.name) }} as $USER_LABELS |
${{ toJSON(env.enforced_labels) }} | split(",") as $LABELS |
$USER_LABELS - ($USER_LABELS - $LABELS)')
if [[ "$MATCH" == '[]' ]]; then
exit 1
fi

0 comments on commit 97d0ac8

Please sign in to comment.