mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-29 01:58:26 +00:00
Add automatic labeling for issues (#2057)
* Change labeler action provider * Add labels for issue content matches Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
This commit is contained in:
parent
ebef88015a
commit
184af03d7e
547
.github/labeler.yml
vendored
547
.github/labeler.yml
vendored
@ -1,216 +1,375 @@
|
||||
documentation:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- doc/*
|
||||
- doc/**/*
|
||||
- data/conky*.conf
|
||||
version: 1
|
||||
appendOnly: true
|
||||
|
||||
extras:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- extras/*
|
||||
- extras/**/*
|
||||
labels:
|
||||
- label: 'enhancement'
|
||||
type: 'issue'
|
||||
body: "([Ee]nhance(d|ment)|[Ii]mprove(ment|d))"
|
||||
- label: 'enhancement'
|
||||
type: 'issue'
|
||||
title: "([Ee]nhance(d|ment)|[Ii]mprove(ment|d))"
|
||||
- label: 'feature'
|
||||
type: 'issue'
|
||||
title: "([Ff]eature|[Ss]uggestion)"
|
||||
- label: 'packaging'
|
||||
type: 'issue'
|
||||
body: "([Pp]ackage|AUR)"
|
||||
- label: 'question'
|
||||
type: 'issue'
|
||||
body: "([Ww](ondering|ant(ed)? to ask|ould like to (know|understand)))"
|
||||
|
||||
sources:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- src/*
|
||||
- src/**/*
|
||||
- label: 'priority: low'
|
||||
type: 'issue'
|
||||
body: "low priority"
|
||||
|
||||
tests:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- tests/**/*
|
||||
- tests/*
|
||||
- label: 'display: console'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/display-console.cc
|
||||
- src/display-console.hh
|
||||
- label: 'display: file'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/display-file.cc
|
||||
- src/display-file.hh
|
||||
- label: 'display: http'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/display-http.cc
|
||||
- src/display-http.hh
|
||||
- label: 'display: ncurses'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/nc.cc
|
||||
- src/nc.h
|
||||
- src/display-ncurses.cc
|
||||
- src/display-ncurses.hh
|
||||
- label: 'display: wayland'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/wl.cc
|
||||
- src/wl.h
|
||||
- src/wlr-layer-shell-unstable-v1.xml
|
||||
- src/display-wayland.cc
|
||||
- src/display-wayland.hh
|
||||
- label: 'display: wayland'
|
||||
type: 'issue'
|
||||
title: "[Ww]ayland"
|
||||
|
||||
- label: 'display: x11'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/x11-color.cc
|
||||
- src/x11-color.h
|
||||
- src/x11.cc
|
||||
- src/x11.h
|
||||
- src/display-x11.cc
|
||||
- src/display-x11.hh
|
||||
- label: 'display: x11'
|
||||
type: 'issue'
|
||||
title: "[Xx]11"
|
||||
|
||||
web:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- web/*
|
||||
- web/**/*
|
||||
- label: 'os: linux'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/linux.cc
|
||||
- src/linux.h
|
||||
- label: 'os: linux'
|
||||
type: 'issue'
|
||||
title: "[Ll]inux"
|
||||
- label: 'os: dragonfly'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/dragonfly.cc
|
||||
- src/dragonfly.h
|
||||
- label: 'os: dragonfly'
|
||||
type: 'issue'
|
||||
body: "[Dd]ragon[Ff]ly"
|
||||
- label: 'os: freebsd'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/freebsd.cc
|
||||
- src/freebsd.h
|
||||
- label: 'os: dragonfly'
|
||||
type: 'issue'
|
||||
body: "[Ff]ree\\s?(BSD|bsd)"
|
||||
- label: 'os: netbsd'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/netbsd.cc
|
||||
- src/netbsd.h
|
||||
- label: 'os: netbsd'
|
||||
type: 'issue'
|
||||
body: "[Nn]et\\s?(BSD|bsd)"
|
||||
- label: 'os: openbsd'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/openbsd.cc
|
||||
- src/openbsd.h
|
||||
- label: 'os: openbsd'
|
||||
type: 'issue'
|
||||
body: "[Oo]pen\\s?(BSD|bsd)"
|
||||
- label: 'os: solaris'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/solaris.cc
|
||||
- src/solaris.h
|
||||
- label: 'os: solaris'
|
||||
type: 'issue'
|
||||
body: "[Ss](olaris|OLARIS)"
|
||||
- label: 'os: haiku'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/haiku.cc
|
||||
- src/haiku.h
|
||||
- label: 'os: haiku'
|
||||
type: 'issue'
|
||||
body: "[Hh](aiku|AIKU)"
|
||||
|
||||
appimage:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- appimage/*
|
||||
- appimage/**/*
|
||||
- label: 'documentation'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- doc/*
|
||||
- doc/**/*
|
||||
- data/conky*.conf
|
||||
- label: 'documentation'
|
||||
type: 'issue'
|
||||
title: "[Dd]ocument(ation)?" # can be mentioned but unrelated
|
||||
|
||||
3rdparty:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 3rdparty/*
|
||||
- 3rdparty/**/*
|
||||
- label: 'extras'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- extras/*
|
||||
- extras/**/*
|
||||
|
||||
gh-actions:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- .github/workflows/*
|
||||
- .github/workflows/**/*
|
||||
- .github/labeler.yml
|
||||
- .github/pull_request_template.md
|
||||
- label: 'sources'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/*
|
||||
- src/**/*
|
||||
|
||||
dependencies:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- web/package-lock.json
|
||||
- cmake/ConkyPlatformChecks.cmake
|
||||
- label: 'tests'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- tests/**/*
|
||||
- tests/*
|
||||
|
||||
audio:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- src/audacious.cc
|
||||
- src/audacious.h
|
||||
- src/cmus.cc
|
||||
- src/cmus.h
|
||||
- src/libmpdclient.cc
|
||||
- src/libmpdclient.h
|
||||
- src/mpd.cc
|
||||
- src/mpd.h
|
||||
- src/moc.cc
|
||||
- src/moc.h
|
||||
- src/mixer.cc
|
||||
- src/mixer.h
|
||||
- src/xmms2.cc
|
||||
- src/xmms2.h
|
||||
- src/pulseaudio.cc
|
||||
- src/pulseaudio.h
|
||||
- label: 'web'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- web/*
|
||||
- web/**/*
|
||||
|
||||
power:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- src/apcupsd.cc
|
||||
- src/apcupsd.h
|
||||
- src/bsdapm.cc
|
||||
- src/bsdapm.h
|
||||
- src/smapi.cc
|
||||
- src/smapi.h
|
||||
- label: 'appimage'
|
||||
type: 'issue'
|
||||
body: "(appimage|AppImage|Appimage)"
|
||||
|
||||
- label: '3rdparty'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- 3rdparty/*
|
||||
- 3rdparty/**/*
|
||||
|
||||
'display: console':
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- src/display-console.cc
|
||||
- src/display-console.hh
|
||||
'display: file':
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- src/display-file.cc
|
||||
- src/display-file.hh
|
||||
'display: http':
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- src/display-http.cc
|
||||
- src/display-http.hh
|
||||
'display: ncurses':
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- src/nc.cc
|
||||
- src/nc.h
|
||||
- src/display-ncurses.cc
|
||||
- src/display-ncurses.hh
|
||||
'display: wayland':
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- src/wl.cc
|
||||
- src/wl.h
|
||||
- src/wlr-layer-shell-unstable-v1.xml
|
||||
- src/display-wayland.cc
|
||||
- src/display-wayland.hh
|
||||
'display: x11':
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- src/x11-color.cc
|
||||
- src/x11-color.h
|
||||
- src/x11.cc
|
||||
- src/x11.h
|
||||
- src/display-x11.cc
|
||||
- src/display-x11.hh
|
||||
- label: 'gh-actions'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- .github/workflows/*
|
||||
- .github/workflows/**/*
|
||||
- .github/labeler.yml
|
||||
- .github/pull_request_template.md
|
||||
|
||||
'build system':
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- '**/CMakeLists.txt'
|
||||
- '*.cmake'
|
||||
- label: 'dependencies'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- web/package-lock.json
|
||||
- cmake/ConkyPlatformChecks.cmake
|
||||
|
||||
cairo:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 'lua/*cairo*'
|
||||
- label: 'appimage'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- appimage/*
|
||||
- appimage/**/*
|
||||
|
||||
'disk io':
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- src/diskio.cc
|
||||
- src/diskio.h
|
||||
- label: 'audio'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/audacious.cc
|
||||
- src/audacious.h
|
||||
- src/cmus.cc
|
||||
- src/cmus.h
|
||||
- src/libmpdclient.cc
|
||||
- src/libmpdclient.h
|
||||
- src/mpd.cc
|
||||
- src/mpd.h
|
||||
- src/moc.cc
|
||||
- src/moc.h
|
||||
- src/mixer.cc
|
||||
- src/mixer.h
|
||||
- src/xmms2.cc
|
||||
- src/xmms2.h
|
||||
- src/pulseaudio.cc
|
||||
- src/pulseaudio.h
|
||||
- label: 'audio'
|
||||
type: 'issue'
|
||||
title: "([Aa]udio|[Aa]udacious|CMUS|cmus|MPD|libmpd|[Mm]ixer|xmms2|XMMS2|[Pp]ulse[Aa]udio|[Mm]usic|[Ss]ong)" # can be in config
|
||||
|
||||
- label: 'power'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/apcupsd.cc
|
||||
- src/apcupsd.h
|
||||
- src/bsdapm.cc
|
||||
- src/bsdapm.h
|
||||
- src/smapi.cc
|
||||
- src/smapi.h
|
||||
- label: 'power'
|
||||
type: 'issue'
|
||||
title: "([Bb]attery|[Cc]harged)" # can be in config
|
||||
|
||||
cpu:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- src/cpu.cc
|
||||
- src/cpu.h
|
||||
- src/proc.cc
|
||||
- src/proc.h
|
||||
- src/top.cc
|
||||
- src/top.h
|
||||
- label: 'build system'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- '**/CMakeLists.txt'
|
||||
- '*.cmake'
|
||||
|
||||
lua:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- lua/*
|
||||
- lua/**/*
|
||||
- src/llua.cc
|
||||
- src/llua.h
|
||||
- src/luamm.cc
|
||||
- src/luamm.h
|
||||
- src/lua-config.cc
|
||||
- src/lua-config.hh
|
||||
- label: 'cairo'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- 'lua/*cairo*'
|
||||
- label: 'cairo'
|
||||
type: 'issue'
|
||||
title: "([Cc]airo)" # can be in config
|
||||
|
||||
macos:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- src/darwin_sip.h
|
||||
- src/darwin.h
|
||||
- src/darwin.mm
|
||||
- label: 'sensors'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/hddtemp.cc
|
||||
- src/hddtemp.h
|
||||
- label: 'disk io'
|
||||
type: 'issue'
|
||||
title: "(temperature|temp)" # can be in config
|
||||
|
||||
'mouse events':
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- src/scroll.cc
|
||||
- src/scroll.h
|
||||
- src/mouse-events.cc
|
||||
- src/mouse-events.h
|
||||
- label: 'disk io'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/diskio.cc
|
||||
- src/diskio.h
|
||||
- label: 'disk io'
|
||||
type: 'issue'
|
||||
title: "(HDD|hdd|SSD|ssd|[Dd](isk|rive) space|filesystem)" # can be in config
|
||||
|
||||
networking:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- src/net_stat.cc
|
||||
- src/net_stat.h
|
||||
- src/tcp-portmon.cc
|
||||
- src/tcp-portmon.h
|
||||
- src/read_tcpip.cc
|
||||
- src/read_tcpip.h
|
||||
- label: 'cpu'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/cpu.cc
|
||||
- src/cpu.h
|
||||
- src/proc.cc
|
||||
- src/proc.h
|
||||
- src/top.cc
|
||||
- src/top.h
|
||||
- label: 'cpu'
|
||||
type: 'issue'
|
||||
title: "(CPU|cpu)" # can be in config
|
||||
|
||||
nvidia:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- src/nvidia.cc
|
||||
- src/nvidia.h
|
||||
- label: 'lua'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- lua/*
|
||||
- lua/**/*
|
||||
- src/llua.cc
|
||||
- src/llua.h
|
||||
- src/luamm.cc
|
||||
- src/luamm.h
|
||||
- src/lua-config.cc
|
||||
- src/lua-config.hh
|
||||
- label: 'lua'
|
||||
type: 'issue'
|
||||
title: "[Ll](ua|UA)" # can be in config
|
||||
|
||||
rendering:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- src/text_object.cc
|
||||
- src/text_object.h
|
||||
- src/specials.cc
|
||||
- src/specials.h
|
||||
- label: 'mail'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/mail.cc
|
||||
- src/mail.h
|
||||
- src/mboxscan.cc
|
||||
- src/mboxscan.h
|
||||
- label: 'mail'
|
||||
type: 'issue'
|
||||
title: "(e?mail|[Mm][Bb](ox|OX))" # can be in config
|
||||
|
||||
text:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- src/text_object.cc
|
||||
- src/text_object.h
|
||||
- src/template.cc
|
||||
- src/template.h
|
||||
- src/tailhead.cc
|
||||
- src/tailhead.h
|
||||
- src/specials.cc
|
||||
- src/specials.h
|
||||
- label: 'mouse events'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/scroll.cc
|
||||
- src/scroll.h
|
||||
- src/mouse-events.cc
|
||||
- src/mouse-events.h
|
||||
- label: 'mouse events'
|
||||
type: 'issue'
|
||||
body: "(mouse|cursor|pointer) (buttons?|events?|enters?|leaves?|clicks?|press(es)?))"
|
||||
|
||||
- label: 'networking'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/net_stat.cc
|
||||
- src/net_stat.h
|
||||
- src/tcp-portmon.cc
|
||||
- src/tcp-portmon.h
|
||||
- src/read_tcpip.cc
|
||||
- src/read_tcpip.h
|
||||
- label: 'networking'
|
||||
type: 'issue'
|
||||
title: "(network( (interface|id|ID))|(IP|machine|gateway)('?s)? address|download|upload|gateway)" # can be in config
|
||||
|
||||
- label: 'nvidia'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/nvidia.cc
|
||||
- src/nvidia.h
|
||||
- label: 'nvidia'
|
||||
type: 'issue'
|
||||
title: "[Nn](vidia|VIDIA)" # can be in config
|
||||
|
||||
- label: 'rendering'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/text_object.cc
|
||||
- src/text_object.h
|
||||
- src/specials.cc
|
||||
- src/specials.h
|
||||
- label: 'rendering'
|
||||
type: 'issue'
|
||||
title: "([Xx](ft|FT))"
|
||||
- label: 'rendering'
|
||||
type: 'issue'
|
||||
body: "(incorrect|bad|wrong)(ly)? (size|align|position)(ed|ment)"
|
||||
- label: 'rendering'
|
||||
type: 'issue'
|
||||
body: "(flicker(ing)?|font icons?|[Xx](ft|FT))"
|
||||
|
||||
- label: 'text'
|
||||
type: 'pull_request'
|
||||
files:
|
||||
- src/core.cc
|
||||
- src/core.h
|
||||
- src/text_object.cc
|
||||
- src/text_object.h
|
||||
- src/template.cc
|
||||
- src/template.h
|
||||
- src/tailhead.cc
|
||||
- src/tailhead.h
|
||||
- src/specials.cc
|
||||
- src/specials.h
|
||||
- label: 'text'
|
||||
type: 'issue'
|
||||
body: "exec(i(bar))"
|
||||
- label: 'text'
|
||||
type: 'issue'
|
||||
body: "\\$\\w+ variable"
|
||||
|
||||
- label: 'build system'
|
||||
type: 'issue'
|
||||
title: "([Cc]?[Cc][Mm]ake|([Mm]ake|[Bb]uild) error|compil(e|ation))"
|
||||
- label: 'build system'
|
||||
type: 'issue'
|
||||
body: "([Cc]?[Cc][Mm]ake|([Mm]ake|[Bb]uild) error|compil(e|ation))"
|
||||
|
13
.github/workflows/labeler.yml
vendored
13
.github/workflows/labeler.yml
vendored
@ -1,18 +1,13 @@
|
||||
name: 'Pull Request Labeler'
|
||||
on:
|
||||
- pull_request_target
|
||||
- issues
|
||||
|
||||
jobs:
|
||||
triage:
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Run labeler
|
||||
uses: actions/labeler@v5
|
||||
with:
|
||||
sync-labels: true
|
||||
repo-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||
uses: srvaroa/labeler@v1
|
||||
env:
|
||||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
||||
|
Loading…
x
Reference in New Issue
Block a user