Skip to content
Open
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
19 changes: 19 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
docs:
- changed-files:
- any-glob-to-any-file: '*.md'

frontend:
- changed-files:
- any-glob-to-any-file: 'frontend/**/*'
- any-glob-to-any-file: 'frontend/**/*.js'
- any-glob-to-any-file: 'frontend/**/*.ts'
- any-glob-to-any-file: 'frontend/**/*.tsx'
- any-glob-to-any-file: 'frontend/**/*.jsx'
- any-glob-to-any-file: 'frontend/**/*.css'
- any-glob-to-any-file: 'frontend/**/*.html'

backend:
- changed-files:
- any-glob-to-any-file: 'backend/**/*'
- any-glob-to-any-file: 'backend/**/*.go'
- any-glob-to-any-file: 'backend/**/*.py'
40 changes: 40 additions & 0 deletions .github/workflows/pr_labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: PR Labeler

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
file-labeler:
needs: size-label
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Add file-based labels
uses: actions/labeler@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/labeler.yml

size-label:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: size-label
uses: "pascalgn/[email protected]"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
sizes: >
{
"0": "XS",
"20": "S",
"50": "M",
"200": "L",
"800": "XL",
"2000": "XXL"
}