mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
updating the bot to auto label issues and PRs (#2042)
* changed labeler bot Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com> * fixed label for hold Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>
This commit is contained in:
parent
e677e91679
commit
431b36f34e
3 changed files with 128 additions and 13 deletions
110
.github/labeler.yml
vendored
Normal file
110
.github/labeler.yml
vendored
Normal file
|
@ -0,0 +1,110 @@
|
|||
# labeler "full" schema
|
||||
|
||||
# enable labeler on issues, prs, or both.
|
||||
enable:
|
||||
issues: true
|
||||
prs: true
|
||||
# comments object allows you to specify a different message for issues and prs
|
||||
|
||||
comments:
|
||||
issues: |
|
||||
Thanks for opening this issue!
|
||||
I have applied any labels matching special text in your title and description.
|
||||
|
||||
Please review the labels and make any necessary changes.
|
||||
prs: |
|
||||
Thanks for the contribution!
|
||||
I have applied any labels matching special text in your title and description.
|
||||
|
||||
Please review the labels and make any necessary changes.
|
||||
|
||||
# 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:
|
||||
'API Call':
|
||||
include:
|
||||
- '\b\/api-call\b'
|
||||
- '\bapi\b'
|
||||
- '\bAPI\b'
|
||||
exclude: []
|
||||
'bug':
|
||||
include:
|
||||
- '\b\/bug\b'
|
||||
- '\bbug[s]?\b'
|
||||
exclude: []
|
||||
'do not merge':
|
||||
include:
|
||||
- '\b\/do-not-merge\b'
|
||||
- '\bwip\b'
|
||||
- '\bWIP\b'
|
||||
exclude: []
|
||||
'doc required':
|
||||
include:
|
||||
- '\b\/doc-required\b'
|
||||
exclude: []
|
||||
'Documentation':
|
||||
include:
|
||||
- '\b\/documentation\b'
|
||||
- '\bdoc[s]?\b'
|
||||
- '\bdocumentation\b'
|
||||
exclude: []
|
||||
'enhancement':
|
||||
include:
|
||||
- '\b\/enhancement\b'
|
||||
- '\bfeat[ure]?\b'
|
||||
exclude: []
|
||||
'good first issue':
|
||||
include:
|
||||
- '\b\/good-first-issue\b'
|
||||
exclude: []
|
||||
'HA':
|
||||
include:
|
||||
- '\b\/ha\b'
|
||||
exclude: []
|
||||
'helm':
|
||||
include:
|
||||
- '\b\/helm\b'
|
||||
exclude: []
|
||||
'help wanted':
|
||||
include:
|
||||
- '\b\/help-wanted\b'
|
||||
- '\bhelp( me)?\b'
|
||||
exclude:
|
||||
- '\b\[test(ing)?\]\b'
|
||||
'hold':
|
||||
include:
|
||||
- '\b\/hold\b'
|
||||
exclude: []
|
||||
'JMESPath':
|
||||
include:
|
||||
- '\b\/jmespath\b'
|
||||
exclude: []
|
||||
'LFX':
|
||||
include:
|
||||
- '\b\/lfx\b'
|
||||
exclude: []
|
||||
'prometheus':
|
||||
include:
|
||||
- '\b\/prometheus\b'
|
||||
exclude: []
|
||||
'question':
|
||||
include:
|
||||
- '\b\/question\b'
|
||||
- '\bquestion\b'
|
||||
exclude: []
|
||||
'sample policy':
|
||||
include:
|
||||
- '\b\/sample-policy\b'
|
||||
- '\bsample policy\b'
|
||||
exclude: []
|
||||
'wip':
|
||||
include:
|
||||
- '\b\/wip\b'
|
||||
- '\bwip\b'
|
||||
- '\bWIP\b'
|
||||
exclude: []
|
13
.github/workflows/issues_bot.yml
vendored
13
.github/workflows/issues_bot.yml
vendored
|
@ -1,13 +0,0 @@
|
|||
name: Labeling issues
|
||||
on:
|
||||
issues:
|
||||
types: ['opened','edited']
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: Renato66/auto-label@v2
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
ignore-comments: true
|
||||
labels-synonyms: '{"API Call":["/api-call","api"],"bug":["/bug","error","errors","not working","bug","To Reproduce"],"Documentation":["/documentation","doc","docs","website"],"enhancement":["/enhancement","feature request"],"good first issue":["/good-first-issue","new contributor","new contributors"],"help wanted":["/help-wanted","urgent","help"],"hold":["/hold"],"HA":["/ha","HA"],"question":["/question","question","doubt","ask"],"LFX":["/LFX","LFX"]}'
|
18
.github/workflows/labeler_bot.yml
vendored
Normal file
18
.github/workflows/labeler_bot.yml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
name: kyverno-bot
|
||||
on:
|
||||
issues:
|
||||
types: [opened, edited]
|
||||
pull_request_target:
|
||||
types: [opened]
|
||||
|
||||
jobs:
|
||||
|
||||
labeler:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Check Labels
|
||||
id: labeler
|
||||
uses: jimschubert/labeler-action@v2
|
||||
with:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
Loading…
Reference in a new issue