Commit Graph
11 Commits
Author SHA1 Message Date
J. Nick Koston 52725e25e3 dry 2026-03-02 16:06:12 -10:00
J. Nick Koston 769031b724 reduce api calls 2026-03-02 16:01:23 -10:00
J. Nick Koston d9b5f54cf6 Pin codeowner-review-request checkout to base SHA
Explicitly checkout the base branch SHA for consistency and to
ensure the shared codeowners.js script is always loaded from
trusted code, not the PR head.
2026-03-02 15:53:14 -10:00
J. Nick Koston ed63f51fcb [github-actions] Add code-owner-approved label workflow
Add a workflow that automatically manages a code-owner-approved label
on PRs when component-specific codeowners submit approvals. This helps
maintainers prioritize PRs that have domain-expert sign-off.

The workflow triggers on pull_request_review events and recalculates
the label based on all current reviews. Only individual component
codeowners count - the catch-all @esphome/core team is excluded.
Uses last-match-wins semantics for CODEOWNERS pattern matching.

Also extracts shared CODEOWNERS parsing logic into a reusable module
at .github/scripts/codeowners.js and updates codeowner-review-request
and auto-label-pr workflows to use it.
2026-03-02 15:45:08 -10:00
Jesse Hills 463a00b1ac [CI] Don't request codeowners review in forks (#11827) 2025-11-10 19:10:29 -06:00
Jesse Hills 44767c32cf Pin SHA for github actions (#10879) 2025-09-25 08:08:16 -05:00
dependabot[bot] ba2433197e Bump actions/github-script from 7.0.1 to 8.0.0 (#10583)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-04 14:16:17 -05:00
Jesse Hills ac7f125eb5 [CI] Paginate codeowner comments to make sure we find it (#9817) 2025-07-23 13:22:54 +12:00
Jesse Hills 9508871474 [CI] Fix codeowner workflow requesting the same multiple times (#9750) 2025-07-21 13:20:02 +12:00
Jesse HillsandCopilot e5aed29231 [CI] Only mention codeowners once (#9727)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-21 10:39:30 +12:00
Jesse Hills afc48812fa [CI] Add codeowners mention workflow (#9651) 2025-07-18 23:21:38 +12:00