Skip to content

Commit

Permalink
Add open issue link to missing papers issue markdown (#502)
Browse files Browse the repository at this point in the history
* Add open issue link

* Forgot to redo url-encoding
  • Loading branch information
keller-mark authored Oct 11, 2024
1 parent bbaecde commit b6b9148
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/fetch-hidive-zotero-items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,12 @@ function createTodoGitHubIssueContents(missingPapers: Array<ZoteroItem>) {
let cid = p.itemType === "preprint"
? HIDIVE_PREPRINTS_COLLECTION_ID
: HIDIVE_PUBLICATIONS_COLLECTION_ID;
let link =
let zoteroLink =
`https://www.zotero.org/groups/${HIDIVE_GROUP_ID}/hidive/collections/${cid}/items/${p.key}/collection`;
return `- [${p.key}](${link}) - ${p.title}`;
let defaultIssueTitle = encodeURIComponent(`Add paper ${p.key}`);
let openIssueLink =
`https://github.com/hms-dbmi/gehlenborglab-website/issues/new?assignees=&labels=paper-bot&projects=&template=paper.yml&zotero_id=${p.key}&title=${defaultIssueTitle}&members=nils-gehlenborg`
return `- [${p.key}](${zoteroLink}) - [Open issue](${openIssueLink}) - ${p.title}`;
}

let papers = Array
Expand Down

0 comments on commit b6b9148

Please sign in to comment.