Skip to content

Instantly share code, notes, and snippets.

@spiderbites
Created June 10, 2021 02:34
Show Gist options
  • Save spiderbites/cf9f6943643ece42e39fb39f33a7f85d to your computer and use it in GitHub Desktop.
Save spiderbites/cf9f6943643ece42e39fb39f33a7f85d to your computer and use it in GitHub Desktop.
Bookmarklet for the PRs you merged this week
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