Skip to content

Commit

Permalink
Merge pull request #2014 from mashehu/fix-release-notes
Browse files Browse the repository at this point in the history
Fix release notes
  • Loading branch information
mashehu authored Oct 6, 2023
2 parents 132f775 + 6c0bc11 commit ed5536d
Show file tree
Hide file tree
Showing 22 changed files with 826 additions and 462 deletions.
Binary file modified .cache.tar.xz
Binary file not shown.
20 changes: 19 additions & 1 deletion bin/pipelines.json.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,26 @@ export const writePipelinesJson = async () => {
// cache release body except for dev
if (release.tag_name !== 'dev') {
const cache_key = `${name}/${release.tag_name}/body`;
const is_cached = cache.getSync(cache_key, false) && cache.getSync(cache_key, false).length > 0;
// const is_cached = cache.getSync(cache_key, false) && cache.getSync(cache_key, false).length > 0;
const is_cached = false;
if (!is_cached) {
// wrap github urls in markdown links if they are to the same repo and not already inside a link
release.body = release.body.replaceAll(
/(?<!\]\()https:\/\/github\.com\/nf-core\/([^\/]+)\/([^\/]+)\/([^\/\n]*)(?![\)\]])/g,
(match, p1, p2, p3) => {
console.log('match', match);
if (p1 === name && ['pull', 'issues', 'compare'].includes(p2)) {
const prefix = p2 !== 'compare' ? '#' : '';
console.log(`[${prefix}${p3}](${match})`);
return `[${prefix}${p3}](${match})`;
}
return match;
},
);
// replace usernames with links to github profiles
release.body = release.body.replaceAll(/@(\w+([-]\w+)*)/g, (match, p1) => {
return `[${match}](https://github.com/${p1})`;
});
cache.set(cache_key, release.body);
}
}
Expand Down
699 changes: 339 additions & 360 deletions package-lock.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@
},
"dependencies": {
"@astro-community/astro-embed-youtube": "^0.4.1",
"@astrojs/mdx": "^1.1.0",
"@astrojs/mdx": "^1.1.1",
"@astrojs/netlify": "^3.0.2",
"@astrojs/partytown": "^2.0.0",
"@astrojs/prefetch": "^0.4.0",
"@astrojs/partytown": "^2.0.1",
"@astrojs/prefetch": "^0.4.1",
"@astrojs/rss": "^3.0.0",
"@astrojs/sitemap": "^3.0.0",
"@astrojs/svelte": "^4.0.2",
"@aws-sdk/client-s3": "^3.423.0",
"@aws-sdk/credential-provider-node": "^3.423.0",
"@astrojs/sitemap": "^3.0.1",
"@astrojs/svelte": "^4.0.3",
"@aws-sdk/client-s3": "^3.425.0",
"@aws-sdk/credential-provider-node": "^3.425.0",
"@docsearch/js": "^3.5.2",
"@fontsource-variable/inter": "^5.0.12",
"@fontsource-variable/maven-pro": "^5.0.12",
"@fontsource-variable/open-sans": "^5.0.15",
"@nanostores/persistent": "^0.9.1",
"astro": "^3.2.2",
"astro": "^3.2.3",
"astro-icon": "^0.8.1",
"bootstrap": "^5.3.2",
"bootstrap-print-css": "^1.0.1",
Expand Down Expand Up @@ -77,14 +77,14 @@
"svelte-fast-marquee": "^0.7.0",
"ts-dedent": "^2.2.0",
"unist-util-visit": "^5.0.0",
"vite": "^4.4.10",
"vite": "^4.4.11",
"yaml": "^2.3.2",
"yoga-wasm-web": "^0.3.3",
"youtube-player": "^5.6.0"
},
"devDependencies": {
"@playwright/test": "^1.38.1",
"@rollup/plugin-yaml": "^4.1.1",
"@rollup/plugin-yaml": "^4.1.2",
"@types/leaflet": "^1.9.6",
"fontaine": "^0.4.1",
"prettier": "^2.8.8",
Expand Down
Loading

0 comments on commit ed5536d

Please sign in to comment.