Skip to content

Commit

Permalink
workflows/triage: CI-build-dependents-from-source changes
Browse files Browse the repository at this point in the history
* Only label `ghc` and `go` formulae on major/minor version bumps by
  checking when the alias changes. This may break if we no longer need
  the alias, but it avoids having to introduce version parsing.
* Ignore labeling formulae when only revision bumped or even situations
  where formula has an existing revision (as most cases we want to test
  on version bumps and those will always remove/reset the revision).
  One situation this doesn't help is non-bump PRs on a formula that has
  no revision stanza.
* Set `allow_any_match` to label PRs when Alias and Formula need to be
  modified or when other revision bumps are needed.

Signed-off-by: Michael Cho <[email protected]>
  • Loading branch information
cho-m committed Mar 23, 2024
1 parent 6ddd0bd commit 7729899
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/triage.yml
Expand Up @@ -223,8 +223,12 @@ jobs:
allow_any_match: true
- label: CI-build-dependents-from-source
path: Formula/.+/(cabal-install|docbook-xsl|emscripten|erlang|ghc|go|ocaml|ocaml-findlib|ocaml-num|openjdk|rust).rb
path:
- 'Formula/.+/(cabal-install|docbook-xsl|emscripten|erlang|ocaml|ocaml-findlib|ocaml-num|openjdk|rust)\.rb'
- 'Aliases/(ghc|go)(@[0-9.]+)?$'
missing_content: '\n revision [0-9]+\n'
keep_if_no_match: true
allow_any_match: true
- label: CI-skip-recursive-dependents
path: Formula/.+/(ca-certificates|curl|gettext|openssl@3|sqlite).rb
Expand Down

0 comments on commit 7729899

Please sign in to comment.