-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[GH-237] ラベルの管理と紐づけをワークフロー化
- Loading branch information
Showing
4 changed files
with
170 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# noinspection YAMLSchemaValidation | ||
version: 1 | ||
|
||
labels: | ||
# App Package labels | ||
- label: "@apps/app" | ||
files: | ||
- "apps/app/.+" | ||
|
||
- label: "@apps/catalog" | ||
files: | ||
- "apps/catalog/.+" | ||
|
||
# Core Package labels | ||
- label: "@cores/core" | ||
files: | ||
- "packages/cores/core/.+" | ||
|
||
- label: "@cores/data" | ||
files: | ||
- "packages/cores/data/.+" | ||
|
||
- label: "@cores/designsystem" | ||
files: | ||
- "packages/cores/designsystem/.+" | ||
|
||
- label: "@cores/init" | ||
files: | ||
- "packages/cores/init/.+" | ||
|
||
- label: "@cores/navigation" | ||
files: | ||
- "packages/cores/navigation/.+" | ||
|
||
# Feature Package labels | ||
- label: "@features/debug" | ||
files: | ||
- "packages/features/debug_mode/.+" | ||
|
||
- label: "@feature/github_repository" | ||
files: | ||
- "packages/features/github_repository/.+" | ||
|
||
- label: "@feature/setting" | ||
files: | ||
- "packages/features/setting/.+" | ||
|
||
- label: "@feature/webview" | ||
files: | ||
- "packages/features/webview/.+" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Default labels | ||
- name: "bug" | ||
color: "d73a4a" | ||
description: "Something isn't working" | ||
|
||
- name: "documentation" | ||
color: "0075ca" | ||
description: "Improvements or additions to documentation" | ||
|
||
- name: "duplicate" | ||
color: "cfd3d7" | ||
description: "This issue or pull request already exists" | ||
|
||
- name: "enhancement" | ||
color: "a2eeef" | ||
description: "New feature or request" | ||
|
||
- name: "good first issue" | ||
color: "7057ff" | ||
description: "Good for newcomers" | ||
|
||
- name: "help wanted" | ||
color: "008672" | ||
description: "Extra attention is needed" | ||
|
||
- name: "invalid" | ||
color: "e4e669" | ||
description: "This doesn't seem right" | ||
|
||
- name: "question" | ||
color: "d876e3" | ||
description: "Further information is requested" | ||
|
||
- name: "wontfix" | ||
color: "ffffff" | ||
description: "This will not be worked on" | ||
|
||
# App Package labels | ||
- name: "@apps/app" | ||
color: "e261d6" | ||
description: "Application development" | ||
|
||
- name: "@apps/catalog" | ||
color: "d4f227" | ||
description: "Catalog development" | ||
|
||
# Core Package labels | ||
- name: "@cores/core" | ||
color: "0b2ebd" | ||
|
||
- name: "@cores/data" | ||
color: "50D413" | ||
|
||
- name: "@cores/designsystem" | ||
color: "936116" | ||
|
||
- name: "@cores/init" | ||
color: "DC79FD" | ||
|
||
- name: "@cores/navigation" | ||
color: "D1A70E" | ||
|
||
# Feature Package labels | ||
- name: "@features/debug" | ||
color: "48360E" | ||
|
||
- name: "@features/github_repository" | ||
color: "3bc0ec" | ||
|
||
- name: "@features/setting" | ||
color: "1e266d" | ||
|
||
- name: "@features/webview" | ||
color: "6fe0ba" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: "Pull Request Labeler" | ||
|
||
on: | ||
pull_request_target: | ||
|
||
jobs: | ||
triage: | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
steps: | ||
# https://github.com/srvaroa/labeler | ||
- name: Label manager for PRs and Issues based on configurable conditions | ||
uses: srvaroa/labeler@1eec6d9e7c5fa5864840279978680302f955fc37 # v1.10.1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
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/actions/checkout | ||
- name: Checkout | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
|
||
# https://github.com/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' }} |