Skip to content

perf(pr-lint): unconditional full-history checkout in change-log-entry-is-in-unreleased runs even when every following step is skipped #877

Description

@credfeto

Found during AI review of all workflows/actions.

Problem

.github/workflows/pr-lint.yml:112-116 — the change-log-entry-is-in-unreleased job checks out with fetch-depth: 0 unconditionally, but every subsequent step is gated on github.actor != 'dependabot[bot]' && !endsWith(github.repository, '-template'). On dependabot PRs and in template repos the job does a full-history clone and then does nothing.

Plan

  • Add the same condition to the checkout step, or lift it to job level (if: on the job) so the runner is not allocated at all — job-level is cleaner since all steps share the condition.
  • Check the sibling jobs for the same pattern while there.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

AI-WorkWork for an AI AgentBlockedBlocked!LowLow Prioritygithub-actionsGithub actions workflow files

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions