From 0b06b667b7b2c277b6f5180097dccad3d4c35965 Mon Sep 17 00:00:00 2001 From: "Ian Clarke (aider)" Date: Mon, 24 Jun 2024 22:40:50 -0500 Subject: [PATCH] Filter merged pull requests excluding those with 'Bump' in the title and limit to 7 items. --- themes/freenet/layouts/shortcodes/merged-pull-requests.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/freenet/layouts/shortcodes/merged-pull-requests.html b/themes/freenet/layouts/shortcodes/merged-pull-requests.html index 75fd2594..3e570adf 100644 --- a/themes/freenet/layouts/shortcodes/merged-pull-requests.html +++ b/themes/freenet/layouts/shortcodes/merged-pull-requests.html @@ -6,7 +6,9 @@ async function fetchMergedPullRequests() { const response = await fetch('https://api.github.com/repos/freenet/freenet-core/pulls?state=closed&per_page=30'); const pullRequests = await response.json(); - const mergedPullRequests = pullRequests.filter(pr => pr.merged_at && pr.user.login !== 'dependabot[bot]'); + const mergedPullRequests = pullRequests + .filter(pr => pr.merged_at && !pr.title.includes('Bump')) + .slice(0, 7); const container = document.getElementById('merged-pull-requests'); container.innerHTML = '';