Skip to content

Instantly share code, notes, and snippets.

@EverythingSuckz
Last active July 6, 2022 18:22
Show Gist options
  • Save EverythingSuckz/d74acde00ea0ed9415ec5b2b7872f343 to your computer and use it in GitHub Desktop.
Save EverythingSuckz/d74acde00ea0ed9415ec5b2b7872f343 to your computer and use it in GitHub Desktop.
import urllib.request,json,datetime as d;n='\n';k=lambda w:w+'\n\n';print(k('## CHANGELOGS')+n.join([k(f'''### [{r}](https://github.com/{r})\n{n.join([f"- [{i['sha'][:7]}]({i['html_url']}) - {i['commit']['message'].replace(n, ' ')} by [{i['commit']['author']['name']}]({i['author']['html_url']})" for i in json.loads(urllib.request.urlopen(f'https://api.github.com/repos/{r}/commits?since={(d.datetime.now()-d.timedelta(days=1)).strftime("%Y-%m-%d")}&until={d.datetime.now().strftime("%Y-%m-%d")}&per_page=100').read().decode())])}''') for r in ('DesterLib/Backend', 'DesterLib/Frontend')]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment