Skip to content

Instantly share code, notes, and snippets.

@dubiouscript
Last active June 17, 2019 16:45
Show Gist options
  • Save dubiouscript/bf850388b51a35dffdbc09094621b483 to your computer and use it in GitHub Desktop.
Save dubiouscript/bf850388b51a35dffdbc09094621b483 to your computer and use it in GitHub Desktop.
datamonger-er-ing
ok.sh -j list_releases Jermolene TiddlyWiki5
[
]
... -x $(which ok.sh) ..
# https://github.com/go-gitea/gitea/issues/2738#API support for listing tags and fetching tag details
# https://github.com/go-gitea/gitea/issues/2738#issuecomment-497767418
# list tag info .. inc date
curl -nsSig -H 'Accept: application/vnd.github.v3+json' -H 'Content-Type: application/json' -X GET https://api.github.com/repos/Jermolene/TiddlyWiki5/git/tags/6821fe4d89dd3aa6937ae772b66e0edae4bd3d2b
# list tag's url from reff
curl -nsg -H 'Accept: application/vnd.github.v3+json' -H 'Content-Type: application/json' -X GET https://api.github.com/repos/Jermolene/TiddlyWiki5/git/refs/tags| jq '.[].object.url'
# https://gist.github.com/mertenvg/92f2f1ed3746ba72fecb3b6e4afda7b6#sorted-git-tag-list.sh
git --git-dir ./TiddlyWiki5/.git tag --sort version:refname
# https://stackoverflow.com/questions/6900328/git-command-to-show-all-lightweight-tags-creation-dates
git --git-dir ./TiddlyWiki5/.git log --tags --simplify-by-decoration --pretty="format:%ai %d"
# 2018-12-20 16:38:56 +0000 (tag: v5.1.19)
# clone https://github.com/Jermolene/jermolene.github.io
# Receiving objects: 100% (293488/293488), 4.42 GiB
# big for a tiddler
# https://stackoverflow.com/questions/37311494/how-to-get-git-to-show-commits-in-a-specified-date-range-for-author-date/42795304#42795304
git --git-dir ./tw_jermolene.github.io/.git log --pretty=format:"%ad - %an: %s" --after="2016-01-31" --until="2017-03-10"
git --no-pager --git-dir ./tw_jermolene.github.io/.git log --pretty=format:"%ad - %an: %s"
# Fri Jun 14 08:33:34 2019 +0000 - Travis CI: Travis build: 268 of master (2019-06-14 08:33:34 UTC)
# ...
# https://learnxinyminutes.com/docs/awk/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment