Homebrew / actions

🚀 Homebrew's GitHub Actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`pr_body_content`: in homebrew-cask, empty body Cask PRs are labeled as `bump-cask-pr`

cho-m opened this issue · comments

I am guessing this is an issue in the action, though, I am not sure.
Example: Homebrew/homebrew-cask#111815

Homebrew-cask's triage workflow
https://github.com/Homebrew/homebrew-cask/blob/master/.github/workflows/triage.yml#L35-L38

              }, {
                "label": "bump-cask-pr",
                "pr_body_content": "Created with `brew bump-cask-pr`"
              }

This may be due to defaulting to applying constraint on null PR body

if (body != null) {
constraintApplies = body.match(constraint.pr_body_content)
} else {
constraintApplies = true
}


Not sure how this will impact behavior in relation to labelExists, so need someone familiar with existing logic to comment.