Skip to content

Commit

Permalink
Filter merged pull requests excluding those with 'Bump' in the title …
Browse files Browse the repository at this point in the history
…and limit to 7 items.
  • Loading branch information
sanity committed Jun 25, 2024
1 parent adbb7d1 commit 0b06b66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion themes/freenet/layouts/shortcodes/merged-pull-requests.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down

0 comments on commit 0b06b66

Please sign in to comment.