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
6 changes: 6 additions & 0 deletions .github/labeler-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ospp-2024:
- base-branch: ['ospp-2024/*']

document:
- changed-files:
- any-glob-to-any-file: ['docs/*', '**/*.md']
33 changes: 22 additions & 11 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
bug:
- title: 'fix*'
# enable labeler on issues, prs, or both.
enable:
issues: false
prs: true

enhancement:
- title: 'feat*'

ospp-2024:
- base-branch: ['ospp-2024/*']

document:
- changed-files:
- any-glob-to-any-file: ['docs/*', '**/*.md']
# Labels is an object where:
# - keys are labels
# - values are objects of { include: [ pattern ], exclude: [ pattern ] }
# - pattern must be a valid regex, and is applied globally to
# title + description of issues and/or prs (see enabled config above)
# - 'include' patterns will associate a label if any of these patterns match
# - 'exclude' patterns will ignore this label if any of these patterns match
labels:
'bug':
include:
- '\bbug[s]?\b'
- '\bfix\b'
exclude: []
'enhancement':
include:
- '\bfeat\b'
- '\bfeature\b'
exclude: []
19 changes: 19 additions & 0 deletions .github/multi-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: v1

labels:
- label: 'enhancement'
sync: true
matcher:
title: '^feat:.*'
- label: 'document'
sync: true
matcher:
title: '^docs:.*'
- label: 'bug'
sync: true
matcher:
title: '^fix:.*'
- label: 'ospp-2024'
sync: true
matcher:
baseBranch: '^ospp-2024/.*'
26 changes: 18 additions & 8 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/labeler@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
sync-labels: true
- name: Apply labels based on PR title
uses: TimonVS/pr-labeler-action@v5
# - uses: actions/labeler@v5
# with:
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# configuration-path: '.github/labeler-action.yml'
# sync-labels: true
- uses: fuxingloh/multi-labeler@v4 # v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/pr-labeler.yml
github-token: ${{ secrets.GITHUB_TOKEN }} # optional, default to '${{ github.token }}'
config-path: .github/multi-labeler.yml # optional, default to '.github/labeler.yml'
# - name: Check Labels
# id: labeler
# uses: jimschubert/labeler-action@v2
# with:
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
# - name: Apply labels based on PR title
# uses: TimonVS/pr-labeler-action@v5
# with:
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# configuration-path: .github/pr-labeler.yml
# - uses: ZeWaka/KeywordLabeler@master
# with:
# repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/push-check.yml

This file was deleted.