Skip to content

Instantly share code, notes, and snippets.

@mhemmings
Created November 1, 2017 18:11
Show Gist options
  • Save mhemmings/bce8a17380dc90eaedf1fa64be079661 to your computer and use it in GitHub Desktop.
Save mhemmings/bce8a17380dc90eaedf1fa64be079661 to your computer and use it in GitHub Desktop.
One line of JS to paste into the console, which puts the Github project status onto the clipboard in a simple easy to read text format for Slack/emails/whatever
for(var name,columns=document.querySelectorAll('.project-columns-container>.project-column'),str='',i=0;i<columns.length;++i){name=columns[i].querySelector('.js-project-column-name').innerHTML,str+=`${name}\n`;for(var cards=columns[i].querySelectorAll('.project-card>div>a'),j=0;j<cards.length;j++)str+=`- ${cards[j].innerHTML.trim()}\n`;str+='\n'}copy(str);
@mhemmings
Copy link
Author

Output looks like this:

Todo
- Issue name
- Issue name

Doing
- Issue name

Done
- Issue name
- Issue name
- Issue name
- Issue name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment