Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into staging
  • Loading branch information
megasanjay committed Oct 15, 2024
2 parents b41bf7f + 67e829f commit ca994b9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bot/archival/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function applyArchivalTemplate(
const releaseBadgeButton = `[![Create Release](https://img.shields.io/badge/Create_Release-00bcd4.svg)](${badgeURL})`
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.\n\n`

if (!existingZenodoDep) {
if (!existingZenodoDep && !existingZenodoDep.last_published_zenodo_doi) {
// Entry does not exist in db, create a new one
// await zenDepositionCollection.create({
// data: {
Expand All @@ -58,7 +58,7 @@ export async function applyArchivalTemplate(
}
});

// Fetch the DOI content
// Fetch the DOI content
const lastVersion = existingZenodoDep.github_tag_name;
const zenodoId = existingZenodoDep.zenodo_id;
const zenodoDoi = existingZenodoDep.last_published_zenodo_doi;
Expand Down
2 changes: 1 addition & 1 deletion bot/utils/tools/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export async function isRepoEmpty(context, owner, repoName) {
}
}

/** *
/**
* * Verify the installation and analytics collections
* @param {object} context - GitHub payload context
* @param {object} repository - The repository object metadata
Expand Down
10 changes: 7 additions & 3 deletions ui/pages/dashboard/[owner]/[repo]/release/zenodo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -641,10 +641,14 @@ onBeforeUnmount(() => {

<template #content>
<div class="flex w-full flex-col space-y-4">
<n-alert type="warning" class="w-full">
Your <code> codemeta.json </code> file is used to generate the
<p class="w-full text-base">
Your codemeta.json file is used to generate the
title, description, and metadata of your Zenodo deposition. Please
make sure that the content of this file is correct and up-to-date.
make sure that the content of this file is correct and up-to-date.
</p>

<n-alert type="info" class="w-full">
Codefair will automatically add/update the version number, last modified date, and software identifier before the release so you do not need to worry about them.
</n-alert>

<n-checkbox v-model:checked="metadataChecked">
Expand Down

0 comments on commit ca994b9

Please sign in to comment.