Skip to content

Commit

Permalink
Updated merged-pull-requests shortcode to filter out pull requests me…
Browse files Browse the repository at this point in the history
…rged by dependabot.
  • Loading branch information
sanity committed Jun 25, 2024
1 parent 1edb76a commit adbb7d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/freenet/layouts/shortcodes/merged-pull-requests.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

<script>
async function fetchMergedPullRequests() {
const response = await fetch('https://api.github.com/repos/freenet/freenet-core/pulls?state=closed&per_page=5');
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.title.includes('Bump'));
const mergedPullRequests = pullRequests.filter(pr => pr.merged_at && pr.user.login !== 'dependabot[bot]');

const container = document.getElementById('merged-pull-requests');
container.innerHTML = '';
Expand Down

0 comments on commit adbb7d1

Please sign in to comment.