Skip to content

ci: run on pull requests from branches of this repository - #46

Merged
rubas-agent[bot] merged 1 commit into
mainfrom
ci-gate
Sep 29, 2026
Merged

rubas-agent[bot] merged 1 commit into
mainfrom
ci-gate

Conversation

@rubas-agent

@rubas-agent rubas-agent Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

CI runs on every pull request from a branch of this repository, not only on pull requests that rubas opens.

Before: the test job in ci.yml has

if: github.event_name == 'push' || github.event.pull_request.user.login == github.repository_owner

Problem

  • Agents open pull requests as rubas-agent[bot], so the job skips on them. deps: audit with mix hex.audit, bump mint and lazy_html #45 shows one skipped job and no test run.
  • The matrix job skips before it expands, so it reports OTP ${{ matrix.otp }} / Elixir ${{ matrix.elixir }} and never the real check name.

After

if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository

A pull request from a fork still skips the job. Only accounts that can push to this repository get CI, which keeps what the old rule protected.

Details

@rubas-agent
rubas-agent Bot merged commit 9e01964 into main Sep 29, 2026
1 check passed
@rubas-agent
rubas-agent Bot deleted the ci-gate branch September 29, 2026 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant