Skip to content

Commit

Permalink
feature: enable backward compatibility check for all laminas related …
Browse files Browse the repository at this point in the history
…organization checks

Unless explicitly disabled in a project, backward compatibility checks are always executed for all laminas related organization checks.

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
  • Loading branch information
boesing committed Apr 23, 2024
1 parent 35dab19 commit 0a932ee
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/config/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,14 @@ export default function createConfig(
baseReference = null;
}

const laminasOrganizations : string[] = [
'laminas',
'mezzio',
'laminas-api-tools',
];

const repositoryOwner: string = process.env.GITHUB_REPOSITORY_OWNER ?? 'unknown';

return {
codeChecks : requirements.codeChecks,
docLinting : requirements.docLinting,
Expand All @@ -485,7 +493,7 @@ export default function createConfig(
lockedDependenciesExists : fs.existsSync(composerLockJsonFileName),
ignorePhpPlatformRequirements : configurationFromFile.ignore_php_platform_requirements ?? {},
additionalComposerArguments : [ ... new Set(configurationFromFile.additional_composer_arguments ?? []) ],
backwardCompatibilityCheck : configurationFromFile.backwardCompatibilityCheck ?? false,
backwardCompatibilityCheck : configurationFromFile.backwardCompatibilityCheck ?? laminasOrganizations.includes(repositoryOwner) ?? false,
baseReference : baseReference,
};
}
Expand Down

0 comments on commit 0a932ee

Please sign in to comment.