Skip to content

Commit

Permalink
feat: ✨ 🗃️ track amount of releases created with codefair
Browse files Browse the repository at this point in the history
  • Loading branch information
slugb0t committed Oct 11, 2024
1 parent 97ff272 commit 4da2e47
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,22 @@ export default async (app, { getRouter }) => {
repository_id: repository.id,
}
});

consola.success("Updated the Zenodo deposition in the database!");

await db.analytics.update({
data: {
zenodo_release: {
increment: 1
},
create_release: {
increment: 1
}
},
where: {
id: repository.id
}
});
} catch (error) {
// Update the issue with the new body
// Update the GitHub issue with a status report
Expand Down

0 comments on commit 4da2e47

Please sign in to comment.