From 5f3a73de75f6be682a04bcaf960a38fd9d1160c3 Mon Sep 17 00:00:00 2001 From: "Ian Clarke (aider)" Date: Mon, 24 Jun 2024 22:36:00 -0500 Subject: [PATCH] Filter out merged pull requests by excluding those created by the 'dependabot' user. --- themes/freenet/layouts/shortcodes/merged-pull-requests.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/freenet/layouts/shortcodes/merged-pull-requests.html b/themes/freenet/layouts/shortcodes/merged-pull-requests.html index 37368971..0312e202 100644 --- a/themes/freenet/layouts/shortcodes/merged-pull-requests.html +++ b/themes/freenet/layouts/shortcodes/merged-pull-requests.html @@ -6,7 +6,7 @@ async function fetchMergedPullRequests() { const response = await fetch('https://api.github.com/repos/freenet/freenet-core/pulls?state=closed&per_page=5'); 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.user.login !== 'dependabot'); const container = document.getElementById('merged-pull-requests'); container.innerHTML = '';