Skip to content

Commit 9472ff5

Browse files
committed
fix: 🐛 Adjust license check variables
1 parent 9cdfd10 commit 9472ff5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

bot/commands/validations/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ export async function rerunMetadataValidation(
244244

245245
// Get license status (needed for metadata checks)
246246
const licenseCheck = await checkForLicense(context, owner, repository.name);
247-
subjects.license = licenseCheck?.status;
247+
subjects.license = licenseCheck;
248248

249249
// Force revalidation by creating a synthetic context that looks like bot push
250250
const syntheticContext = {

bot/compliance-checks/archival/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export async function applyArchivalTemplate(
181181
const noLicenseText = `\n\nTo make your software FAIR, a license file is required.\n> [!WARNING]\n> Codefair will run this check after a LICENSE file is detected in your repository.`;
182182
const noLicenseBadge = `![FAIR Release not checked](https://img.shields.io/badge/FAIR_Release_Not_Checked-fbbf24)`;
183183

184-
if (!subjects.license) {
184+
if (!subjects.license.status) {
185185
logwatch.info("License not found. Skipping FAIR release check.");
186186
baseTemplate += `${archiveTitle}\n\n${noLicenseText}\n\n${noLicenseBadge}\n\n`;
187187
return baseTemplate;

0 commit comments

Comments
 (0)