Skip to content

ci: run PR checks on release branches and move off pull_request_target (WPB-8645) - #5638

Merged
yamilmedina merged 2 commits into
developfrom
chore/ci-lint-release-prs
Dec 4, 2026
Merged

yamilmedina merged 2 commits into
developfrom
chore/ci-lint-release-prs

Conversation

@yamilmedina

@yamilmedina yamilmedina commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

https://wearezeta.atlassian.net/browse/WPB-8645

Pitch me the changes

Pull requests into release branches skip all of our code checks. This PR makes them run the same checks as pull requests into develop.

Ticket: WPB-8645

Problems

build-develop-pr.yml runs Lint, Detekt, the unit tests and the UI tests, but only for pull requests into develop. Pull requests into release/cycle-* get only the metadata checks: Jira, PR title, Kalium ref and semgrep. #5617 merged into release/cycle-4.40 without a lint run. Lint first ran in the v4.40.0 Production build (run 47355242274), and that build failed with ExtraTranslation errors.

Changes

  • Pull requests into release/** now run the Develop quality checks. These checks don't build or deploy anything, because build-config defaults to [].

PR title lint and author assign are blocked

GitHub now blocks pull_request_target on public repositories by default (docs). Since 2026-12-03, semantic-commit-lint.yml and pr-author-assigner.yml have failed at startup on every PR. release/cycle-4.40 requires semantic-commit-pr-title-lint, so no PR into that branch can merge without an admin bypass.

  • Both workflows now run on pull_request. Neither checks out PR code or uses secrets, so they don't need pull_request_target.
  • The job name stays semantic-commit-pr-title-lint, so the required check still matches.
  • On fork PRs, GitHub gives the workflow a read-only token. Fork PRs therefore skip the steps that add or remove the "Fix PR Title" label and that assign the author. The title check itself still runs on them.

Verification

  • actionlint passes on all three changed workflows. The 4 SC1083 warnings on gh api repos/{owner}/{repo} were already in semantic-commit-lint.yml.
  • #<RELEASE_PR> includes this commit, so its own checks show the workflow running on a release/cycle-4.40 pull request.

Notes

  • GitHub reads pull_request triggers from the base branch. release/cycle-4.40 therefore gets this change through #<RELEASE_PR>. Later release branches are cut from develop and inherit it.
  • After this merges, add Lint as a required check in the release/** branch protection. A check that runs but isn't required can still be merged past.
  • cherry-pick-pr-to-newer-release-cycle.yml still triggers on release/candidate. That is outside this PR.

For the reviewer

Bro, PRs into release branches were skipping lint. One translations PR went in that way, and the release build caught the problem instead of the PR. This adds one line so those PRs run lint, Detekt and the tests, the same as develop PRs.

Pull requests into release/** got no Lint, Detekt or unit-test run, so
#5617 reached the v4.40.0 Production build with lint errors.
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Test Results

  373 files    373 suites   2m 4s ⏱️
3 331 tests 3 331 ✅ 0 💤 0 ❌
3 343 runs  3 343 ✅ 0 💤 0 ❌

Results for commit 55a0222.

GitHub now blocks pull_request_target on public repositories by default,
so both workflows have failed at startup since 2026-12-03. Neither runs
PR code or needs secrets, so pull_request works. Fork PRs get a
read-only token, so they skip the steps that edit the PR.
@yamilmedina yamilmedina changed the title ci: run PR quality checks on release branches (WPB-8645) ci: run PR checks on release branches and move off pull_request_target (WPB-8645) Dec 4, 2026
@yamilmedina
yamilmedina merged commit 3f1a5e0 into develop Dec 4, 2026
22 checks passed
@yamilmedina
yamilmedina deleted the chore/ci-lint-release-prs branch December 4, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants