labeler.yml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. # Copyright (C) Daniel Fandrich, <dan@coneharvesters.com>, et al.
  2. #
  3. # SPDX-License-Identifier: curl
  4. # The workflow configures the .github/workflows/label.yml action
  5. # to add labels to pull requests. This is not (yet?) a replacement for human
  6. # triaging, but is intended to add labels to the easy cases. If the matching
  7. # language becomes more powerful, more cases should be able to be handled.
  8. #
  9. # Labels are added in two ways: the any-glob-to-all-files ones are added if all
  10. # the files fit into the category, and the any-glob-to-any-file ones are added
  11. # as long as any file matches. The first ones are for "major" categories (the
  12. # PR is all about that one topic, like HTTP/3), while the second ones are
  13. # "addendums" that give useful information about a PR that's really mostly
  14. # something else (e.g. CI if the PR also touches CI jobs).
  15. #
  16. # N.B. any-glob-to-all-files is misnamed; it acts like one-glob-to-all-files.
  17. # Therefore, to get any-glob-to-all-files semantics, there must be a single glob
  18. # with all matching patterns within braces.
  19. #
  20. # See https://github.com/actions/labeler/ for documentation on this file.
  21. appleOS:
  22. - all:
  23. - changed-files:
  24. - any-glob-to-all-files:
  25. - '{.github/workflows/macos.yml,lib/config-mac.h,lib/macos*,lib/vtls/sectransp*,m4/curl-sectransp.m4}'
  26. authentication:
  27. - all:
  28. - changed-files:
  29. - any-glob-to-all-files:
  30. - '{docs/mk-ca-bundle.1,docs/libcurl/opts/CURLINFO_HTTPAUTH*,docs/libcurl/opts/CURLINFO_PROXYAUTH*,docs/libcurl/opts/CURLOPT_KRB*,docs/libcurl/opts/CURLOPT_SASL*,docs/libcurl/opts/CURLOPT_SERVICE_NAME*,docs/libcurl/opts/CURLOPT_USERNAME*,docs/libcurl/opts/CURLOPT_USERPWD*,docs/libcurl/opts/CURLOPT_XOAUTH*,lib/*gssapi*,lib/*krb5*,lib/*ntlm*,lib/curl_sasl.*,lib/http_aws*,lib/http_digest.*,lib/http_negotiate.*,lib/vauth/**,tests/server/fake_ntlm.c}'
  31. build:
  32. - all:
  33. - changed-files:
  34. - any-glob-to-all-files:
  35. - '{**/CMakeLists.txt,**/Makefile.am,**/Makefile.inc,**/Makefile.mk,**/*.m4,**/*.mk,*.m4,docs/INSTALL.cmake,lib/curl_config.h.cmake,lib/libcurl*.in,CMake/**,CMakeLists.txt,configure.ac,m4/**,Makefile.*,packages/**,plan9/**,projects/**,winbuild/**,libcurl.def}'
  36. CI:
  37. - all:
  38. - changed-files:
  39. - any-glob-to-any-file:
  40. - '.azure-pipelines.yml'
  41. - '.circleci/**'
  42. - '.cirrus.yml'
  43. - '.github/**'
  44. - 'appveyor.*'
  45. - 'scripts/ci*'
  46. - 'tests/azure.pm'
  47. - 'tests/appveyor.pm'
  48. - 'tests/CI.md'
  49. cmake:
  50. - all:
  51. - changed-files:
  52. - any-glob-to-all-files:
  53. - '{**/CMakeLists.txt,CMake/**,docs/INSTALL.cmake,lib/curl_config.h.cmake}'
  54. cmdline tool:
  55. - all:
  56. - changed-files:
  57. - any-glob-to-any-file:
  58. - 'docs/cmdline-opts/**'
  59. - 'src/**'
  60. connecting & proxies:
  61. - all:
  62. - changed-files:
  63. - any-glob-to-all-files:
  64. - '{docs/CONNECTION-FILTERS.md,docs/examples/ipv6.c,docs/libcurl/opts/CURLINFO_CONNECT*,docs/libcurl/opts/CURLINFO_PROXY*,docs/libcurl/opts/CURLOPT_ADDRESS*,docs/libcurl/opts/CURLOPT_CONNECT*,docs/libcurl/opts/CURLOPT_HAPROXY*,docs/libcurl/opts/CURLOPT_OPENSOCKET*,docs/libcurl/opts/CURLOPT_PRE_PROXY*,docs/libcurl/opts/CURLOPT_PROXY*,docs/libcurl/opts/CURLOPT_SOCKOPT*,docs/libcurl/opts/CURLOPT_SOCKS*,docs/libcurl/opts/CURLOPT_TCP*,docs/libcurl/opts/CURLOPT_TIMEOUT*,lib/cf-*proxy.*,lib/cf-socket.*,lib/cfilters.*,lib/conncache.*,lib/connect.*,lib/http_proxy.*,lib/if2ip.*,lib/noproxy.*,lib/socks.*,tests/server/socksd.c}'
  65. cookies:
  66. - all:
  67. - changed-files:
  68. - any-glob-to-all-files:
  69. - '{docs/HTTP-COOKIES.md,docs/cmdline-opts/cookie*,docs/cmdline-opts/junk-session-cookies.md,docs/libcurl/opts/CURLINFO_COOKIE*,docs/libcurl/opts/CURLOPT_COOKIE*,docs/examples/cookie_interface.c,lib/cookie.*,lib/psl.*}'
  70. cryptography:
  71. - all:
  72. - changed-files:
  73. - any-glob-to-all-files:
  74. - '{docs/CIPHERS.md,docs/RUSTLS.md,docs/libcurl/opts/CURLOPT_EGDSOCKET*,lib/*sha256*,lib/*sha512*,lib/curl_des.*,lib/curl_hmac.*,lib/curl_md?.*,lib/md?.*,lib/rand.*}'
  75. DICT:
  76. - all:
  77. - changed-files:
  78. - any-glob-to-all-files:
  79. - '{lib/dict.*,tests/dictserver.py}'
  80. documentation:
  81. - all:
  82. - changed-files:
  83. - any-glob-to-all-files:
  84. - '{.github/workflows/badwords.yml,.github/workflows/man-examples.yml,.github/workflows/synopsis.yml,.github/scripts/badwords.*,.github/scripts/cd2cd,.github/scripts/cd2nroff,.github/scripts/cdall.pl,.github/scripts/nroff2cd,.github/scripts/verify-examples.pl,.github/scripts/verify-synopsis.pl,**/*.md,**/*.txt,**/*.1,CHANGES,docs/**,LICENSES/**,README,RELEASE-NOTES,scripts/cd*}'
  85. - all-globs-to-all-files:
  86. # negative matches
  87. - '!**/CMakeLists.txt'
  88. - '!**/Makefile.am'
  89. FTP:
  90. - all:
  91. - changed-files:
  92. - any-glob-to-all-files:
  93. - '{docs/libcurl/opts/CURLINFO_FTP*,docs/libcurl/opts/CURLOPT_FTP*,docs/libcurl/opts/CURLOPT_WILDCARDMATCH*,docs/examples/ftp*,lib/curl_fnmatch.*,lib/curl_range.*,lib/ftp*,tests/ftp*'
  94. GOPHER:
  95. - all:
  96. - changed-files:
  97. - any-glob-to-all-files:
  98. - '{lib/gopher*}'
  99. HTTP:
  100. - all:
  101. - changed-files:
  102. - any-glob-to-all-files:
  103. - '{docs/examples/hsts*,docs/examples/http-*,docs/examples/httpput*,docs/examples/https*,docs/examples/*post*,docs/HSTS.md,docs/HTTP-COOKIES.md,docs/libcurl/opts/CURLINFO_COOKIE*,docs/libcurl/opts/CURLOPT_COOKIE*,docs/libcurl/opts/CURLINFO_HTTP_**,docs/libcurl/opts/CURLINFO_REDIRECT*,docs/libcurl/opts/CURLINFO_REFER*,docs/libcurl/opts/CURLOPT_FOLLOWLOCATION*,docs/libcurl/opts/CURLOPT_HSTS*,docs/libcurl/opts/CURLOPT_HTTP*,docs/libcurl/opts/CURLOPT_POST.*,docs/libcurl/opts/CURLOPT_POSTFIELD*,docs/libcurl/opts/CURLOPT_POSTREDIR*,docs/libcurl/opts/CURLOPT_REDIR*,docs/libcurl/opts/CURLOPT_REFER*,docs/libcurl/opts/CURLOPT_TRAILER*,docs/libcurl/opts/CURLOPT_TRANSFER_ENCODING*,lib/cf-https*,lib/cf-h1*,lib/cf-h2*,lib/cookie.*,lib/http*,tests/http*,tests/http-server.pl,tests/http/*,tests/nghttp*}'
  104. HTTP/2:
  105. - all:
  106. - changed-files:
  107. - any-glob-to-all-files:
  108. - '{CMake/FindNGHTTP2.cmake,CMake/FindQUICHE.cmake,docs/HTTP2.md,docs/libcurl/opts/CURLOPT_STREAM*,docs/examples/http2*,lib/http2*,tests/http2-server.pl}'
  109. HTTP/3:
  110. - all:
  111. - changed-files:
  112. - any-glob-to-all-files:
  113. - '{.github/workflows/ngtcp2*,.github/workflows/quiche*,.github/workflows/osslq*,CMake/FindMSH3.cmake,CMake/FindNGHTTP3.cmake,CMake/FindNGTCP2.cmake,docs/HTTP3.md,docs/examples/http3*,lib/vquic/**,tests/http3-server.pl,tests/nghttpx.conf}'
  114. Hyper:
  115. - all:
  116. - changed-files:
  117. - any-glob-to-all-files:
  118. - '{docs/HYPER.md,lib/c-hyper.*}'
  119. IMAP:
  120. - all:
  121. - changed-files:
  122. - any-glob-to-all-files:
  123. - '{lib/imap*,docs/examples/imap*}'
  124. LDAP:
  125. - all:
  126. - changed-files:
  127. - any-glob-to-all-files:
  128. - '{lib/*ldap*}'
  129. libcurl API:
  130. - all:
  131. - changed-files:
  132. - any-glob-to-any-file:
  133. - 'docs/libcurl/ABI.md'
  134. - 'docs/libcurl/curl_*.md'
  135. - 'include/curl/**'
  136. logging:
  137. - all:
  138. - changed-files:
  139. - any-glob-to-all-files:
  140. - '{docs/cmdline-opts/trace*,docs/libcurl/curl_global_trace*,lib/curl_trc*,tests/http/test_15_tracing.py}'
  141. MIME:
  142. - all:
  143. - changed-files:
  144. - any-glob-to-all-files:
  145. - '{docs/libcurl/curl_form*,docs/libcurl/curl_mime_*,docs/libcurl/opts/CURLOPT_MIME*,docs/libcurl/opts/CURLOPT_HTTPPOST*,lib/formdata*,lib/mime*,src/tool_formparse.*}'
  146. MQTT:
  147. - all:
  148. - changed-files:
  149. - any-glob-to-all-files:
  150. - '{docs/MQTT.md,lib/mqtt*,tests/server/mqttd.c}'
  151. name lookup:
  152. - all:
  153. - changed-files:
  154. - any-glob-to-all-files:
  155. - '{docs/examples/resolve.c,docs/libcurl/opts/CURLINFO_NAMELOOKUP*,docs/libcurl/opts/CURLOPT_DNS*,docs/libcurl/opts/CURLOPT_DOH*,docs/libcurl/opts/CURLOPT_RESOLVE*,lib/asyn*,lib/curl_gethostname.*,lib/doh*,lib/host*,lib/idn*,lib/inet_pton.*,lib/socketpair*,tests/server/resolve.c}'
  156. POP3:
  157. - all:
  158. - changed-files:
  159. - any-glob-to-all-files:
  160. - '{docs/examples/pop3*,lib/pop3.*}'
  161. RTMP:
  162. - all:
  163. - changed-files:
  164. - any-glob-to-all-files:
  165. - '{lib/curl_rtmp.*}'
  166. RTSP:
  167. - all:
  168. - changed-files:
  169. - any-glob-to-all-files:
  170. - '{docs/libcurl/opts/CURLINFO_RTSP*,docs/libcurl/opts/CURLOPT_RTSP*,lib/rtsp.*,tests/rtspserver.pl,tests/server/rtspd.c}'
  171. SCP/SFTP:
  172. - all:
  173. - changed-files:
  174. - any-glob-to-all-files:
  175. - '{CMake/FindLibSSH2.cmake,docs/libcurl/opts/CURLOPT_SSH*,docs/examples/sftp*,lib/vssh/**,tests/sshhelp.pm,tests/sshserver.pl}'
  176. script:
  177. - all:
  178. - changed-files:
  179. - any-glob-to-all-files:
  180. - '{**/*.pl,**/*.sh,curl-config.in,docs/curl-config.1,docs/mk-ca-bundle.1,docs/THANKS-filter,scripts/**}'
  181. SMB:
  182. - all:
  183. - changed-files:
  184. - any-glob-to-all-files:
  185. - '{lib/smb.*,tests/smbserver.py}'
  186. SMTP:
  187. - all:
  188. - changed-files:
  189. - any-glob-to-all-files:
  190. - '{docs/examples/smtp-*,docs/libcurl/opts/CURLOPT_MAIL*,lib/smtp.*}'
  191. tests:
  192. - all:
  193. - changed-files:
  194. - any-glob-to-any-file:
  195. - 'tests/**'
  196. TFTP:
  197. - all:
  198. - changed-files:
  199. - any-glob-to-all-files:
  200. - '{lib/tftp.*,tests/tftpserver.pl,tests/server/tftp*}'
  201. TLS:
  202. - all:
  203. - changed-files:
  204. - any-glob-to-all-files:
  205. - '{CMake/FindBearSSL.cmake,CMake/FindMbedTLS.cmake,CMake/FindWolfSSL.cmake,docs/examples/ssl*,docs/examples/*ssl.*,docs/examples/*tls.*,docs/SSL*,docs/libcurl/curl_global_sslset*,docs/libcurl/opts/CURLINFO_CA*,docs/libcurl/opts/CURLINFO_CERT*,docs/libcurl/opts/CURLINFO_SSL*,docs/libcurl/opts/CURLINFO_TLS*,docs/libcurl/opts/CURLOPT_CA*,docs/libcurl/opts/CURLOPT_CERT*,docs/libcurl/opts/CURLOPT_PINNEDPUBLICKEY*,docs/libcurl/opts/CURLOPT_SSL*,docs/libcurl/opts/CURLOPT_TLS*,docs/libcurl/opts/CURLOPT_USE_SSL*,lib/vtls/**,m4/curl-bearssl.m4,m4/curl-gnutls.m4,m4/curl-mbedtls.m4,m4/curl-openssl.m4,m4/curl-rustls.m4,m4/curl-schannel.m4,m4/curl-sectransp.m4,m4/curl-wolfssl.m4}'
  206. URL:
  207. - all:
  208. - changed-files:
  209. - any-glob-to-all-files:
  210. - '{docs/libcurl/curl_url*,docs/URL-SYNTAX.md,docs/examples/parseurl*,include/curl/urlapi.h,lib/urlapi*}'
  211. WebSocket:
  212. - all:
  213. - changed-files:
  214. - any-glob-to-all-files:
  215. - '{docs/WEBSOCKET.md*,docs/examples/websocket*,docs/libcurl/curl_ws_*,docs/libcurl/libcurl-ws*,docs/libcurl/opts/CURLOPT_WS_*,include/curl/websockets.h,lib/ws.*,tests/http/clients/ws*,tests/http/test_20_websockets.py,tests/http/testenv/ws*}'
  216. Windows:
  217. - all:
  218. - changed-files:
  219. - any-glob-to-all-files:
  220. - '{appveyor.*,CMake/Platforms/WindowsCache.cmake,lib/*win32*,lib/curl_multibyte.*,lib/rename.*,lib/vtls/schannel*,m4/curl-schannel.m4,projects/**,src/tool_doswin.c,winbuild/**,libcurl.def}'