Unverified Commit c937602b authored by Michael Daniels's avatar Michael Daniels Committed by GitHub
Browse files

ci/github-script/lint-commits: fix development branch check (#488154)

parents 1b541aa9 0a07e4e1
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -32,10 +32,12 @@ async function checkCommitMessages({ github, context, core }) {

  if (
    baseBranchType.includes('development') &&
    headBranchType.includes('development')
    headBranchType.includes('development') &&
    pr.base.repo.id === pr.head.repo?.id
  ) {
    // This matches, for example, PRs from staging-next to master, or vice versa.
    // This matches, for example, PRs from NixOS:staging-next to NixOS:master, or vice versa.
    // Ignore them: we should only care about PRs introducing *new* commits.
    // We still want to run on PRs from, e.g., Someone:master to NixOS:master, though.
    core.info(
      'This PR is from one development branch to another. Skipping checks.',
    )