Skip to content

Instantly share code, notes, and snippets.

@dipeshdulal
Last active March 25, 2025 06:14
Show Gist options
  • Save dipeshdulal/09a13546da9746f9c1a3567be9b2df70 to your computer and use it in GitHub Desktop.
Save dipeshdulal/09a13546da9746f9c1a3567be9b2df70 to your computer and use it in GitHub Desktop.
Get a list of created PR's today.

Instructions

  1. Go to github profile page.
  2. Click on today's or some days contribution
  3. Open Inspector Window
  4. Pase the following code
let rollupWrapper = document.querySelectorAll('.TimelineItem');

let reportPoints = [];

for(const wrapper of rollupWrapper){
    let heading  = wrapper.querySelector("details summary > span")
    heading = heading && heading.innerHTML.trim() || "";
    const opened = heading.startsWith("Opened");
    const reviewed = heading.startsWith("Reviewed");
    if(opened || reviewed) {
       const lists = wrapper.querySelectorAll("li");
       for(const list of lists){
          const reportHeading = list.querySelector(".Link--primary").innerHTML.trim();
          const formattedPoints = `${reportPoints.length + 1}. ${opened ? 'IN-REVIEW': 'Reviewed and Merged'} | ${reportHeading}`;
          reportPoints.push(formattedPoints);
       }
    }
}

let output = reportPoints.join("\n")
console.log(output);
  1. Get the list of PR Created and Reviewed today
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment