Skip to content

ci-main: issue and pull request templates never affect a job - #157

Merged
ocots merged 1 commit into
mainfrom
chore/ci-main-ignore-templates
Nov 13, 2026
Merged

ocots merged 1 commit into
mainfrom
chore/ci-main-ignore-templates

Conversation

@ocots

@ocots ocots commented Nov 13, 2026

Copy link
Copy Markdown
Member

Why

ci on main: changes only runs, on main, only the jobs a merged file can affect, and runs everything when it cannot tell. .github/ is "cannot tell" as a whole, because a workflow change can change what runs. So a pull request that only touches the issue templates still runs the four jobs on main. This is the case of the organization's templates replacing each package's own (theme 3 of the harmonization, e.g. control-toolbox/CTDirect.jl#679: .github/ISSUE_TEMPLATE/* removed, CODE_OF_CONDUCT.md at the root).

What

relevant() ignores two more paths, as it already ignores CODE_OF_CONDUCT.md and the other root .md files:

  • .github/ISSUE_TEMPLATE/<anything>: the templates, forms (*.yml) and config.yml;
  • .github/pull_request_template.md.

No workflow reads them and GitHub does not run them. The patterns are anchored on the whole path (^…$): the rest of .github/ (workflows/, dependabot.yml, codecov.yml, …) still counts, as does a nested sub/.github/ISSUE_TEMPLATE/… and the bare folder name.

Everything else of the mechanism is unchanged: the label, the allowed login, the green base and the release-PR exception still apply first.

Tests

julia scripts/ci-main/test/runtests.jl: all green (relevant 57/57, decide 30/30). New cases, for every scope: a template, config.yml and the PR template are ignored; workflows/CI.yml, dependabot.yml, the bare .github/ISSUE_TEMPLATE and a nested path still run.

The doc (docs/workflows/ci-on-main.md) lists the two paths.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@ocots
ocots marked this pull request as ready for review November 13, 2026 15:18
@ocots
ocots merged commit a0c8598 into main Nov 13, 2026
1 check passed
@ocots
ocots deleted the chore/ci-main-ignore-templates branch November 13, 2026 15:18
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