Created
June 10, 2021 02:34
-
-
Save spiderbites/cf9f6943643ece42e39fb39f33a7f85d to your computer and use it in GitHub Desktop.
Bookmarklet for the PRs you merged this week
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function () { | |
const curr = new Date(); | |
const firstDay = new Date(curr.setDate(curr.getDate() - curr.getDay())) | |
.toISOString() | |
.slice(0, 10); | |
const lastDay = new Date(curr.setDate(curr.getDate() - curr.getDay() + 6)) | |
.toISOString() | |
.slice(0, 10); | |
const repo = "" // add user/org + repo name | |
const url = `https://github.com/${repo}/pulls?q=is%3Apr+is%3Aclosed+merged%3A${firstDay}..${lastDay}+base%3Amaster+sort%3Aupdated-desc+`; | |
window.location.href = url; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment