Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GH-237] ラベルの管理と紐づけをワークフロー化 #243

Merged
merged 4 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/labeler.yml
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/.+"
74 changes: 74 additions & 0 deletions .github/labels.yml
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"
Comment on lines +1 to +36
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

現状定義されてあるラベル群を記載しています.
https://github.com/yumemi-inc/flutter-mobile-project-template/labels

labels


# 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"
17 changes: 17 additions & 0 deletions .github/workflows/labeler.yml
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 }}
29 changes: 29 additions & 0 deletions .github/workflows/labels.yml
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' }}
Loading