|
| 1 | +version: 2 |
| 2 | +mergeable: |
| 3 | + - when: pull_request.* |
| 4 | + name: Add 'c_glib' label to PR if changeset includes changes to the lib/c_glib or test/c_glib directories |
| 5 | + validate: |
| 6 | + - do: changeset |
| 7 | + or: |
| 8 | + - must_include: |
| 9 | + regex: 'lib/c_glib/.*' |
| 10 | + - must_include: |
| 11 | + regex: 'test/c_glib/.*' |
| 12 | + pass: |
| 13 | + - do: labels |
| 14 | + labels: ['c_glib'] |
| 15 | + mode: 'add' |
| 16 | + |
| 17 | + - when: pull_request.* |
| 18 | + name: Add 'c++' label to PR if changeset includes changes to the lib/cpp or test/cpp directories |
| 19 | + validate: |
| 20 | + - do: changeset |
| 21 | + or: |
| 22 | + - must_include: |
| 23 | + regex: 'lib/cpp/.*' |
| 24 | + - must_include: |
| 25 | + regex: 'test/cpp/.*' |
| 26 | + pass: |
| 27 | + - do: labels |
| 28 | + labels: ['c++'] |
| 29 | + mode: 'add' |
| 30 | + |
| 31 | + - when: pull_request.* |
| 32 | + name: Add 'dart' label to PR if changeset includes changes to the lib/dart or test/dart directories |
| 33 | + validate: |
| 34 | + - do: changeset |
| 35 | + or: |
| 36 | + - must_include: |
| 37 | + regex: 'lib/dart/.*' |
| 38 | + - must_include: |
| 39 | + regex: 'test/dart/.*' |
| 40 | + pass: |
| 41 | + - do: labels |
| 42 | + labels: ['dart'] |
| 43 | + mode: 'add' |
| 44 | + |
| 45 | + - when: pull_request.* |
| 46 | + name: Add 'delphi' label to PR if changeset includes changes to the lib/delphi or test/delphi directories |
| 47 | + validate: |
| 48 | + - do: changeset |
| 49 | + or: |
| 50 | + - must_include: |
| 51 | + regex: 'lib/delphi/.*' |
| 52 | + - must_include: |
| 53 | + regex: 'test/delphi/.*' |
| 54 | + pass: |
| 55 | + - do: labels |
| 56 | + labels: ['delphi'] |
| 57 | + mode: 'add' |
| 58 | + |
| 59 | + - when: pull_request.* |
| 60 | + name: Add 'erlang' label to PR if changeset includes changes to the lib/erl or test/erl directories |
| 61 | + validate: |
| 62 | + - do: changeset |
| 63 | + or: |
| 64 | + - must_include: |
| 65 | + regex: 'lib/erl/.*' |
| 66 | + - must_include: |
| 67 | + regex: 'test/erl/.*' |
| 68 | + pass: |
| 69 | + - do: labels |
| 70 | + labels: ['erlang'] |
| 71 | + mode: 'add' |
| 72 | + |
| 73 | + - when: pull_request.* |
| 74 | + name: Add 'golang' label to PR if changeset includes changes to the lib/go or test/go directories |
| 75 | + validate: |
| 76 | + - do: changeset |
| 77 | + or: |
| 78 | + - must_include: |
| 79 | + regex: 'lib/go/.*' |
| 80 | + - must_include: |
| 81 | + regex: 'test/go/.*' |
| 82 | + pass: |
| 83 | + - do: labels |
| 84 | + labels: ['golang'] |
| 85 | + mode: 'add' |
| 86 | + |
| 87 | + - when: pull_request.* |
| 88 | + name: Add 'haxe' label to PR if changeset includes changes to the lib/haxe or test/haxe directories |
| 89 | + validate: |
| 90 | + - do: changeset |
| 91 | + or: |
| 92 | + - must_include: |
| 93 | + regex: 'lib/haxe/.*' |
| 94 | + - must_include: |
| 95 | + regex: 'test/haxe/.*' |
| 96 | + pass: |
| 97 | + - do: labels |
| 98 | + labels: ['haxe'] |
| 99 | + mode: 'add' |
| 100 | + |
| 101 | + - when: pull_request.* |
| 102 | + name: Add 'java' label to PR if changeset includes changes to the lib/java or test/java directories |
| 103 | + validate: |
| 104 | + - do: changeset |
| 105 | + or: |
| 106 | + - must_include: |
| 107 | + regex: 'lib/java/.*' |
| 108 | + - must_include: |
| 109 | + regex: 'lib/javame/.*' |
| 110 | + pass: |
| 111 | + - do: labels |
| 112 | + labels: ['java'] |
| 113 | + mode: 'add' |
| 114 | + |
| 115 | + - when: pull_request.* |
| 116 | + name: Add 'javascript' label to PR if changeset includes changes to the lib/js or test/js directories |
| 117 | + validate: |
| 118 | + - do: changeset |
| 119 | + or: |
| 120 | + - must_include: |
| 121 | + regex: 'lib/js/.*' |
| 122 | + pass: |
| 123 | + - do: labels |
| 124 | + labels: ['javascript'] |
| 125 | + mode: 'add' |
| 126 | + |
| 127 | + - when: pull_request.* |
| 128 | + name: Add 'json' label to PR if changeset includes changes to the lib/json or test/json directories |
| 129 | + validate: |
| 130 | + - do: changeset |
| 131 | + or: |
| 132 | + - must_include: |
| 133 | + regex: 'lib/json/.*' |
| 134 | + pass: |
| 135 | + - do: labels |
| 136 | + labels: ['json'] |
| 137 | + mode: 'add' |
| 138 | + |
| 139 | + - when: pull_request.* |
| 140 | + name: Add 'kotlin' label to PR if changeset includes changes to the lib/kotlin or test/kotlin directories |
| 141 | + validate: |
| 142 | + - do: changeset |
| 143 | + or: |
| 144 | + - must_include: |
| 145 | + regex: 'lib/kotlin/.*' |
| 146 | + pass: |
| 147 | + - do: labels |
| 148 | + labels: ['kotlin'] |
| 149 | + mode: 'add' |
| 150 | + |
| 151 | + - when: pull_request.* |
| 152 | + name: Add 'lua' label to PR if changeset includes changes to the lib/lua or test/lua directories |
| 153 | + validate: |
| 154 | + - do: changeset |
| 155 | + or: |
| 156 | + - must_include: |
| 157 | + regex: 'lib/lua/.*' |
| 158 | + - must_include: |
| 159 | + regex: 'test/lua/.*' |
| 160 | + pass: |
| 161 | + - do: labels |
| 162 | + labels: ['lua'] |
| 163 | + mode: 'add' |
| 164 | + |
| 165 | + - when: pull_request.* |
| 166 | + name: Add 'c#' label to PR if changeset includes changes to the lib/netstd or test/netstd directories |
| 167 | + validate: |
| 168 | + - do: changeset |
| 169 | + or: |
| 170 | + - must_include: |
| 171 | + regex: 'lib/netstd/.*' |
| 172 | + - must_include: |
| 173 | + regex: 'test/netstd/.*' |
| 174 | + pass: |
| 175 | + - do: labels |
| 176 | + labels: ['c#'] |
| 177 | + mode: 'add' |
| 178 | + |
| 179 | + - when: pull_request.* |
| 180 | + name: Add 'nodejs' label to PR if changeset includes changes to the lib/nodejs or test/nodejs directories |
| 181 | + validate: |
| 182 | + - do: changeset |
| 183 | + or: |
| 184 | + - must_include: |
| 185 | + regex: 'lib/nodejs/.*' |
| 186 | + pass: |
| 187 | + - do: labels |
| 188 | + labels: ['nodejs'] |
| 189 | + mode: 'add' |
| 190 | + |
| 191 | + - when: pull_request.* |
| 192 | + name: Add 'typescript' label to PR if changeset includes changes to the lib/nodets or test/nodets directories |
| 193 | + validate: |
| 194 | + - do: changeset |
| 195 | + or: |
| 196 | + - must_include: |
| 197 | + regex: 'lib/nodets/.*' |
| 198 | + pass: |
| 199 | + - do: labels |
| 200 | + labels: ['typescript'] |
| 201 | + mode: 'add' |
| 202 | + |
| 203 | + - when: pull_request.* |
| 204 | + name: Add 'ocaml' label to PR if changeset includes changes to the lib/ocaml or test/ocaml directories |
| 205 | + validate: |
| 206 | + - do: changeset |
| 207 | + or: |
| 208 | + - must_include: |
| 209 | + regex: 'lib/ocaml/.*' |
| 210 | + - must_include: |
| 211 | + regex: 'test/ocaml/.*' |
| 212 | + pass: |
| 213 | + - do: labels |
| 214 | + labels: ['ocaml'] |
| 215 | + mode: 'add' |
| 216 | + |
| 217 | + - when: pull_request.* |
| 218 | + name: Add 'perl' label to PR if changeset includes changes to the lib/perl or test/perl directories |
| 219 | + validate: |
| 220 | + - do: changeset |
| 221 | + or: |
| 222 | + - must_include: |
| 223 | + regex: 'lib/perl/.*' |
| 224 | + - must_include: |
| 225 | + regex: 'test/perl/.*' |
| 226 | + pass: |
| 227 | + - do: labels |
| 228 | + labels: ['perl'] |
| 229 | + mode: 'add' |
| 230 | + |
| 231 | + - when: pull_request.* |
| 232 | + name: Add 'php' label to PR if changeset includes changes to the lib/php or test/php directories |
| 233 | + validate: |
| 234 | + - do: changeset |
| 235 | + or: |
| 236 | + - must_include: |
| 237 | + regex: 'lib/php/.*' |
| 238 | + - must_include: |
| 239 | + regex: 'test/php/.*' |
| 240 | + pass: |
| 241 | + - do: labels |
| 242 | + labels: ['php'] |
| 243 | + mode: 'add' |
| 244 | + |
| 245 | + - when: pull_request.* |
| 246 | + name: Add 'python' label to PR if changeset includes changes to the lib/py or test/py directories |
| 247 | + validate: |
| 248 | + - do: changeset |
| 249 | + or: |
| 250 | + - must_include: |
| 251 | + regex: 'lib/py/.*' |
| 252 | + - must_include: |
| 253 | + regex: 'test/py/.*' |
| 254 | + - must_include: |
| 255 | + regex: 'test/py.tornado/.*' |
| 256 | + - must_include: |
| 257 | + regex: 'test/py.twisted/.*' |
| 258 | + pass: |
| 259 | + - do: labels |
| 260 | + labels: ['python'] |
| 261 | + mode: 'add' |
| 262 | + |
| 263 | + - when: pull_request.* |
| 264 | + name: Add 'ruby' label to PR if changeset includes changes to the lib/rb or test/rb directories |
| 265 | + validate: |
| 266 | + - do: changeset |
| 267 | + or: |
| 268 | + - must_include: |
| 269 | + regex: 'lib/rb/.*' |
| 270 | + - must_include: |
| 271 | + regex: 'test/rb/.*' |
| 272 | + pass: |
| 273 | + - do: labels |
| 274 | + labels: ['ruby'] |
| 275 | + mode: 'add' |
| 276 | + |
| 277 | + - when: pull_request.* |
| 278 | + name: Add 'rust' label to PR if changeset includes changes to the lib/rs or test/rs directories |
| 279 | + validate: |
| 280 | + - do: changeset |
| 281 | + or: |
| 282 | + - must_include: |
| 283 | + regex: 'lib/rs/.*' |
| 284 | + - must_include: |
| 285 | + regex: 'test/rs/.*' |
| 286 | + pass: |
| 287 | + - do: labels |
| 288 | + labels: ['ruby'] |
| 289 | + mode: 'add' |
| 290 | + |
| 291 | + - when: pull_request.* |
| 292 | + name: Add 'swift' label to PR if changeset includes changes to the lib/swift or test/swift directories |
| 293 | + validate: |
| 294 | + - do: changeset |
| 295 | + or: |
| 296 | + - must_include: |
| 297 | + regex: 'lib/swift/.*' |
| 298 | + - must_include: |
| 299 | + regex: 'test/swift/.*' |
| 300 | + pass: |
| 301 | + - do: labels |
| 302 | + labels: ['swift'] |
| 303 | + mode: 'add' |
| 304 | + |
| 305 | + - when: pull_request.* |
| 306 | + name: Add 'compiler' label to PR if changeset includes changes to the compiler/cpp directory |
| 307 | + validate: |
| 308 | + - do: changeset |
| 309 | + must_include: |
| 310 | + regex: 'compiler/cpp/.*' |
| 311 | + pass: |
| 312 | + - do: labels |
| 313 | + labels: ['compiler'] |
| 314 | + mode: 'add' |
| 315 | + |
| 316 | + - when: pull_request.* |
| 317 | + name: Add 'github_actions' label to PR if changeset includes changes to the .github/workflows directory |
| 318 | + validate: |
| 319 | + - do: changeset |
| 320 | + must_include: |
| 321 | + regex: '.github/workflows/.*' |
| 322 | + pass: |
| 323 | + - do: labels |
| 324 | + labels: ['github_actions'] |
| 325 | + mode: 'add' |
0 commit comments