Skip to content

Commit e19fe88

Browse files
committed
refactor: ♻️ Update to github issue text
1 parent 7d49ba8 commit e19fe88

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

bot/compliance-checks/archival/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export async function applyArchivalTemplate(
178178
const firstReleaseBadgeButton = `[![Create Release on Zenodo](https://img.shields.io/badge/Create_Release_on_Zenodo-dc2626.svg)](${badgeURL})`;
179179
const releaseBadgeButton = `[![Create Release on Zenodo](https://img.shields.io/badge/Create_Release_on_Zenodo-00bcd4.svg)](${badgeURL})`;
180180
const newReleaseText = `To make your software FAIR, it is necessary to archive it in an archival repository like Zenodo every time you make a release. When you are ready to make your next release, click the "Create release" button below to easily create a FAIR release where your metadata files are updated (including with a DOI) before creating a GitHub release and archiving it on Zenodo.\n\n`;
181-
const noLicenseText = `\n\nTo make your software FAIR, a license file is required. Please add a license file to your repository to enable FAIR release functionality. Once a license file is detected, you will be able to create FAIR releases that are archived on Zenodo with updated metadata and DOIs.`;
181+
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

184184
if (!subjects.license) {

bot/compliance-checks/license/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ export async function applyLicenseTemplate(
302302
) {
303303
baseTemplate += `## LICENSE ✔️\n\nA custom \`LICENSE\` file titled as **${existingLicense?.custom_license_title}**, has been found at the root level of this repository. If you would like to update the title or change license, click the "Edit license" button below.\n\n${licenseBadge}\n\n`;
304304
} else {
305-
baseTemplate += `## LICENSE ❌\n\nTo make your software reusable, a \`LICENSE\` file is expected at the root level of your repository. Metadata files and FAIR Release status will not be checked until a LICENSE is added as it is foundational for the other checks. If you would like Codefair to add a license file, click the "Add license" button below to go to our interface for selecting and adding a license. You can also add a license file yourself, and Codefair will update the dashboard when it detects it on the main branch.\n\n${licenseBadge}\n\n`;
305+
baseTemplate += `## LICENSE ❌\n\nTo make your software reusable, a \`LICENSE\` file is expected at the root level of your repository.\nIf you would like Codefair to add a license file, click the "Add license" button below to go to our interface for selecting and adding a license. You can also add a license file yourself, and Codefair will update the dashboard when it detects it on the main branch.\n\n${licenseBadge}\n\n`;
306306
}
307307

308308
return baseTemplate;

bot/compliance-checks/metadata/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ export async function applyMetadataTemplate(
13121312
if (!subjects.license) {
13131313
// License was not found
13141314
const metadataBadge = `![Metadata](https://img.shields.io/badge/Metadata_Not_Checked-fbbf24)`;
1315-
baseTemplate += `## Metadata\n\nTo make your software FAIR a \`CITATION.cff\` and \`codemeta.json\` metadata files are expected at the root level of your repository. A LICENSE file is dependent for these files to be checked and validated.Codefair will check for these files after a license file is detected.\n\n${metadataBadge}\n\n`;
1315+
baseTemplate += `## Metadata\n\nTo make your software FAIR a \`CITATION.cff\` and \`codemeta.json\` metadata files are expected at the root level of your repository.\n> [!WARNING]\n> Codefair will run this check after a LICENSE file is detected in your repository.\n\n${metadataBadge}\n\n`;
13161316
}
13171317

13181318
return baseTemplate;

0 commit comments

Comments
 (0)