Skip to content

Instantly share code, notes, and snippets.

@sreimers
Last active December 22, 2020 16:26
Show Gist options
  • Save sreimers/b7244ae6b5e07fce748c2fe73ee3f554 to your computer and use it in GitHub Desktop.
Save sreimers/b7244ae6b5e07fce748c2fe73ee3f554 to your computer and use it in GitHub Desktop.
Replace github changelog.md issue and pull request urls and print authors
sed -i 's" #\([0-9\]\+\)" [#\1](https://github.com/baresip/baresip/pull/\1)"g' CHANGELOG.md
git log v0.6.6...HEAD | grep Author | awk -F"<" '{ print $1 }' | cut -c 9- | sort | uniq
egrep -o "[#[0-9]+\]" CHANGELOG.md | sed 's"\[#\([0-9]\+\)\]"[#\1]: https://github.com/baresip/re/pull/\1"' | sort | uniq
curl -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/baresip/re/compare/v1.1.0...HEAD\?per_page\=100 | jq -r '.commits[] | .author.login' | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment