Skip to content

Commit

Permalink
simplify problem
Browse files Browse the repository at this point in the history
  • Loading branch information
trueberryless committed Nov 30, 2024
1 parent 367397b commit 9e225f5
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
labels='[{"name":"🚨 action","description":"Changes in GitHub workflows or actions","color":"A75AD5"},{"name":"🤖 bot","description":"Automatically generated pull request","color":"0075CA"},{"name":"🐛 bug","description":"Something isn\'t working","color":"D73A4A"},{"name":"📝 changeset","description":"Contains changeset files","color":"304EF9"},{"name":"🚧 config","description":"Configuration file updates","color":"C0ED4F"},{"name":"✒️ documentation","description":"Documentation updates, like README changes","color":"66741D"},{"name":"⏫ enhancement","description":"New feature or request","color":"3C11FD"},{"name":"🌏 i18n","description":"Updates to internationalized docs, excluding English","color":"006B75"},{"name":"🚀 manifest","description":"Manifest-related changes","color":"96D3D7"},{"name":"📦 package","description":"Updates in package structure or package.json","color":"F34A37"},{"name":"🏯 styles","description":"Stylesheets or design updates","color":"550F5A"}]'
echo "$labels"
echo "$labels" | jq -c '.[]' | while read -r label; do
name=$(echo "$label" | jq -r '.name')
description=$(echo "$label" | jq -r '.description')
color=$(echo "$label" | jq -r '.color')
if ! gh label list | grep -q "$name"; then
gh label create "$name" --description "$description" --color "$color"
fi
done
gh label create "🚨 action" --description "Changes in GitHub workflows or actions" --color "A75AD5"
- uses: actions/labeler@v5
with:
configuration-path: .github/labeler.yaml
Expand Down

0 comments on commit 9e225f5

Please sign in to comment.