Skip to content

Instantly share code, notes, and snippets.

@joakin
Last active October 7, 2015 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joakin/f295e654cf207ad33cbf to your computer and use it in GitHub Desktop.
Save joakin/f295e654cf207ad33cbf to your computer and use it in GitHub Desktop.
Awesome changelogs

Generate cool changelogs (adapted for mediawiki extension):

Markdown version:

git log --since=1.week --pretty=format:'%s ([Gerrit](https://gerrit.wikimedia.org/r/#/q/%h,n,z) ∙ [Github](https://github.com/wikimedia/mediawiki-extensions-Gather/commit/%h))' --reverse | grep -v '^.\{7\} Merge\|Localisation'

Html version (example):

git log --since=1.week --pretty=format:'%s (<a href="https://gerrit.wikimedia.org/r/#/q/%h,n,z">Gerrit</a> ∙ <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/%h">Github</a>)<br/>' --reverse | grep -v '^.\{7\} Merge\|Localisation'

Hygiene: Fix jscs issues in Gather (<a href="https://gerrit.wikimedia.org/r/#/q/236185e,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/236185e">Github</a>)<br/>
Always point to collections menu item when creating a collection (<a href="https://gerrit.wikimedia.org/r/#/q/2f82e91,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/2f82e91">Github</a>)<br/>
Deleting collection: hide dialog when finished, toast on refresh (<a href="https://gerrit.wikimedia.org/r/#/q/fb82051,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/fb82051">Github</a>)<br/>
Design: Improve spacing of content overlay on phones (<a href="https://gerrit.wikimedia.org/r/#/q/18812b0,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/18812b0">Github</a>)<br/>
Fix flag button, stop unnecessary API request (<a href="https://gerrit.wikimedia.org/r/#/q/9205cd1,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/9205cd1">Github</a>)<br/>
Merge "Fix flag button, stop unnecessary API request" (<a href="https://gerrit.wikimedia.org/r/#/q/3d52755,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/3d52755">Github</a>)<br/>
Save changes to members of collection only when done clicked (<a href="https://gerrit.wikimedia.org/r/#/q/3013f4a,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/3013f4a">Github</a>)<br/>
i18n: Tweaks (<a href="https://gerrit.wikimedia.org/r/#/q/90e4d30,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/90e4d30">Github</a>)<br/>
i18n: Specify content language directions (<a href="https://gerrit.wikimedia.org/r/#/q/1fcf3c5,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/1fcf3c5">Github</a>)<br/>
Show hide button on collection itself (<a href="https://gerrit.wikimedia.org/r/#/q/ca76faa,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/ca76faa">Github</a>)<br/>
Switch URL used for a collection (<a href="https://gerrit.wikimedia.org/r/#/q/d751269,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/d751269">Github</a>)<br/>
Merge "i18n: Specify content language directions" (<a href="https://gerrit.wikimedia.org/r/#/q/204a56c,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/204a56c">Github</a>)<br/>
Stop Gather from erroring (<a href="https://gerrit.wikimedia.org/r/#/q/901f954,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/901f954">Github</a>)<br/>
Prevent multiple clicks to flag and detach from dom on confirmation (<a href="https://gerrit.wikimedia.org/r/#/q/840eb50,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/840eb50">Github</a>)<br/>
hygiene: Consistent collection url generation (<a href="https://gerrit.wikimedia.org/r/#/q/85339b8,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/85339b8">Github</a>)<br/>
Switch URL used for collection in moderation notification (<a href="https://gerrit.wikimedia.org/r/#/q/fb67a12,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/fb67a12">Github</a>)<br/>
Merge "Switch URL used for collection in moderation notification" (<a href="https://gerrit.wikimedia.org/r/#/q/3898d26,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/3898d26">Github</a>)<br/>
Merge "i18n: Tweaks" (<a href="https://gerrit.wikimedia.org/r/#/q/66590e4,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/66590e4">Github</a>)<br/>
Making the Gather login and signup messages work in standard way (<a href="https://gerrit.wikimedia.org/r/#/q/6724124,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/6724124">Github</a>)<br/>
Merge "Making the Gather login and signup messages work in standard way" (<a href="https://gerrit.wikimedia.org/r/#/q/b6df32d,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/b6df32d">Github</a>)<br/>
Update how deleted pages behave (<a href="https://gerrit.wikimedia.org/r/#/q/c53a5c8,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/c53a5c8">Github</a>)<br/>
Merge "Update how deleted pages behave" (<a href="https://gerrit.wikimedia.org/r/#/q/af38d8a,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/af38d8a">Github</a>)<br/>
Write log entries for showlist and hidelist to Special:Log (<a href="https://gerrit.wikimedia.org/r/#/q/d5b7044,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/d5b7044">Github</a>)<br/>
When editing collection: Done -> Save (<a href="https://gerrit.wikimedia.org/r/#/q/23b9539,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/23b9539">Github</a>)<br/>
Hygiene: Remove outdated comment (<a href="https://gerrit.wikimedia.org/r/#/q/f17a54d,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/f17a54d">Github</a>)<br/>
Merge "Hygiene: Remove outdated comment" (<a href="https://gerrit.wikimedia.org/r/#/q/def9dfb,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/def9dfb">Github</a>)<br/>
Merge "Prevent multiple clicks to flag and detach from dom on confirmation" (<a href="https://gerrit.wikimedia.org/r/#/q/04f4694,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/04f4694">Github</a>)<br/>
Make it clearer collections are personal opinion (<a href="https://gerrit.wikimedia.org/r/#/q/45e25ee,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/45e25ee">Github</a>)<br/>
Hygiene: Remove the 'options' argument from preRender and postRender functions (<a href="https://gerrit.wikimedia.org/r/#/q/de39c69,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/de39c69">Github</a>)<br/>
Render Collection list items with templates. (<a href="https://gerrit.wikimedia.org/r/#/q/d84bfdc,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/d84bfdc">Github</a>)<br/>
Explicitly define module position (<a href="https://gerrit.wikimedia.org/r/#/q/a53dc39,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/a53dc39">Github</a>)<br/>
Merge "Render Collection list items with templates." (<a href="https://gerrit.wikimedia.org/r/#/q/a6c5898,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/a6c5898">Github</a>)<br/>
Merge "Explicitly define module position" (<a href="https://gerrit.wikimedia.org/r/#/q/6133ae1,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/6133ae1">Github</a>)<br/>
Hygiene: make resource names consistent with their paths (<a href="https://gerrit.wikimedia.org/r/#/q/5b25b90,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/5b25b90">Github</a>)<br/>
Merge "Hygiene: make resource names consistent with their paths" (<a href="https://gerrit.wikimedia.org/r/#/q/f0824a4,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/f0824a4">Github</a>)<br/>
Hygiene: Correct API module name inconsistency (<a href="https://gerrit.wikimedia.org/r/#/q/a91710a,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/a91710a">Github</a>)<br/>
QUnit tests: Don't hit the API (<a href="https://gerrit.wikimedia.org/r/#/q/897de81,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/897de81">Github</a>)<br/>
Reflect some upstream changes (<a href="https://gerrit.wikimedia.org/r/#/q/9602af7,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/9602af7">Github</a>)<br/>
Gather as desktop beta feature infrastructure (<a href="https://gerrit.wikimedia.org/r/#/q/848407e,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/848407e">Github</a>)<br/>
Merge "Make it clearer collections are personal opinion" (<a href="https://gerrit.wikimedia.org/r/#/q/035e809,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/035e809">Github</a>)<br/>
Merge "Hygiene: Correct API module name inconsistency" (<a href="https://gerrit.wikimedia.org/r/#/q/a9d43e1,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/a9d43e1">Github</a>)<br/>
Merge "QUnit tests: Don't hit the API" (<a href="https://gerrit.wikimedia.org/r/#/q/f5d981c,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/f5d981c">Github</a>)<br/>
Merge "Reflect some upstream changes" (<a href="https://gerrit.wikimedia.org/r/#/q/6e94bc6,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/6e94bc6">Github</a>)<br/>
Merge "Gather as desktop beta feature infrastructure" (<a href="https://gerrit.wikimedia.org/r/#/q/278d357,n,z">Gerrit</a> - <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/278d357">Github</a>)<br/>
  • Hygiene: Fix jscs issues in Gather (GerritGithub)
  • Always point to collections menu item when creating a collection (GerritGithub)
  • Deleting collection: hide dialog when finished, toast on refresh (GerritGithub)
  • Design: Improve spacing of content overlay on phones (GerritGithub)
  • Fix flag button, stop unnecessary API request (GerritGithub)
  • Merge "Fix flag button, stop unnecessary API request" (GerritGithub)
  • Save changes to members of collection only when done clicked (GerritGithub)
  • i18n: Tweaks (GerritGithub)
  • i18n: Specify content language directions (GerritGithub)
  • Show hide button on collection itself (GerritGithub)
  • Switch URL used for a collection (GerritGithub)
  • Merge "i18n: Specify content language directions" (GerritGithub)
  • Stop Gather from erroring (GerritGithub)
  • Prevent multiple clicks to flag and detach from dom on confirmation (GerritGithub)
  • hygiene: Consistent collection url generation (GerritGithub)
  • Switch URL used for collection in moderation notification (GerritGithub)
  • Merge "Switch URL used for collection in moderation notification" (GerritGithub)
  • Merge "i18n: Tweaks" (GerritGithub)
  • Making the Gather login and signup messages work in standard way (GerritGithub)
  • Merge "Making the Gather login and signup messages work in standard way" (GerritGithub)
  • Update how deleted pages behave (GerritGithub)
  • Merge "Update how deleted pages behave" (GerritGithub)
  • Write log entries for showlist and hidelist to Special:Log (GerritGithub)
  • When editing collection: Done -> Save (GerritGithub)
  • Hygiene: Remove outdated comment (GerritGithub)
  • Merge "Hygiene: Remove outdated comment" (GerritGithub)
  • Merge "Prevent multiple clicks to flag and detach from dom on confirmation" (GerritGithub)
  • Make it clearer collections are personal opinion (GerritGithub)
  • Hygiene: Remove the 'options' argument from preRender and postRender functions (GerritGithub)
  • Render Collection list items with templates. (GerritGithub)
  • Explicitly define module position (GerritGithub)
  • Merge "Render Collection list items with templates." (GerritGithub)
  • Merge "Explicitly define module position" (GerritGithub)
  • Hygiene: make resource names consistent with their paths (GerritGithub)
  • Merge "Hygiene: make resource names consistent with their paths" (GerritGithub)
  • Hygiene: Correct API module name inconsistency (GerritGithub)
  • QUnit tests: Don't hit the API (GerritGithub)
  • Reflect some upstream changes (GerritGithub)
  • Gather as desktop beta feature infrastructure (GerritGithub)
  • Merge "Make it clearer collections are personal opinion" (GerritGithub)
  • Merge "Hygiene: Correct API module name inconsistency" (GerritGithub)
  • Merge "QUnit tests: Don't hit the API" (GerritGithub)
  • Merge "Reflect some upstream changes" (GerritGithub)
  • Merge "Gather as desktop beta feature infrastructure" (GerritGithub)
@skierpage
Copy link

Nifty. The strip 7 characters in grep -v '^.\{7\} Merge\|Localisation' is no longer needed when you specify your own pretty=format. Somehow the changelogs in e.g. https://www.mediawiki.org/wiki/MediaWiki_1.27/wmf.1#Gather includes a (task T113434) link.

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