Skip to content

Commit

Permalink
Filter out merged pull requests by excluding those created by the 'de…
Browse files Browse the repository at this point in the history
…pendabot' user.
  • Loading branch information
sanity committed Jun 25, 2024
1 parent 304fed7 commit 5f3a73d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down

0 comments on commit 5f3a73d

Please sign in to comment.