Skip to content

Commit

Permalink
ci: crazy-max/ghaction-github-labeler を導入
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsutakein committed Feb 3, 2024
1 parent d65dbea commit 92da636
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 0 deletions.
103 changes: 103 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# Default labels
- name: "bug"
color: "d73a4a"
description: "Something isn't working"

- name: "dependencies"
color: "1d76db"
description: "Pull requests that update a dependency file"

- name: "DO NOT MERGE"
color: "b60205"

- name: "documentation"
color: "0075ca"
description: "Improvements or additions to documentation"

- name: "duplicate"
color: "cfd8d7"
description: "This issue or pull request already exists"

- name: "enhancement"
color: "a22eef"
description: "New feature or request"

- name: "good first issue"
color: "fe9b9c"
description: "Good for newcomers"

- name: "help wanted"
color: "008672"
description: "Extra attention is needed"

- name: "ignore for release"
color: "bfd4f2"
description: "Exclude from Release Notes"

- name: "wontfix"
color: "ffffff"
description: "This will not be worked on"

- name: "work in progress"
color: "e5d19e"

# Type labels
- name: "@type/ci"
color: "ededed"

- name: "@type/docs"
color: "ededed"
from_name: "documentation"

- name: "@type/feature"
color: "ededed"

- name: "@type/fix"
color: "ededed"

- name: "@type/improve"
color: "ededed"

# Top Package labels
- name: "@apps/backend"
color: "e261d6"
description: "Backend development"

- name: "@apps/frontend"
color: "f89c0f"
description: "Frontend development"

# Core Package labels
- name: "@core/common"
color: "e99695"

- name: "@core/data"
color: "50D413"

- name: "@core/database"
color: "88651D"

- name: "@core/datastore"
color: "1997D2"

- name: "@core/designsystem"
color: "936116"

- name: "@core/domain"
color: "DC79FD"

- name: "@core/model"
color: "D1A70E"

- name: "@core/network"
color: "630D81"

- name: "@core/testing"
color: "29033D"

# Feature Package labels
- name: "@feature/top"
color: "c22752"

- name: "@feature/auth"
color: "48360E"
32 changes: 32 additions & 0 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Labels"

on:
push:
branches:
- 'main'
paths:
- '.github/labels.yml'
- '.github/workflows/labels.yml'
pull_request:
paths:
- '.github/labels.yml'
- '.github/workflows/labels.yml'

jobs:
labeler:
runs-on: ubuntu-22.04
steps:
# https://github.com/marketplace/actions/checkout
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

# https://github.com/marketplace/actions/github-labeler
- name: Run Labeler
uses: crazy-max/ghaction-github-labeler@de749cf181958193cb7debf1a9c5bb28922f3e1b # v5.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
yaml-file: .github/labels.yml
dry-run: ${{ github.event_name == 'pull_request' }}
exclude: |
help*
*issue

0 comments on commit 92da636

Please sign in to comment.