4 ms·
Is there any way to add the release notes via a git commit? This is very nice, but it introduces further dependence on GitHub if something like that isn't poss
by philipn 13y ago
Is there any way to add the release notes via a git commit? This is very nice, but it introduces further dependence on GitHub if something like that isn't possible. I suppose as long as there's API access someone could / will write an exporter, though. Anyway, great stuff either way!
- burntsushi 13y agoThe article claims that releases are structured around git tags. A git tag can be accompanied by a message which is shown on the releases page. In that sense, it doesn't depend on Github.
- gr2020 13y agoI'm not sure it's using tag annotations; I'm not seeing evidence of them. Plus, if I clone a repo with releases, then push (with tags) to a new repo, the new repo doesn't have any of the release notes.
- burntsushi 13y agoWeird. I'm seeing some evidence of my tag annotations, but the first parts are cut off and I don't see a way to view all of them. Maybe they are still getting the kinks worked out...
- dlitz 13y agoHmm. I created a dummy package and allowed GitHub to create the tag for the release. It looks like it used a lightweight tag, and I don't see any evidence of any extra refs: $ git ls-remote https://github.com/dlitz/dummy 23ed6e532fb4a3eb1403e0091885ccdb9f09b577 HEAD 23ed6e532fb4a3eb1403e0091885ccdb9f09b577 refs/heads/master 23ed6e532fb4a3eb1403e0091885ccdb9f09b577 refs/tags/v0.0 Pull requests, on the other hand, are stored as refs in the remote git repo: $ git ls-remote https://github.com/dlitz/pycrypto 10abfc8633bac653eda4d346fc051b2f07554dcd HEAD ... a1bfcc4a20ab0def053df75db0bb12644e55553e refs/heads/cmac-wip fd398a28e3a227a539b264a9f1e11287b904c7da refs/heads/hash-speedup-wip 10abfc8633bac653eda4d346fc051b2f07554dcd refs/heads/master 606b17789c1869597466c714134f138c51b938f5 refs/pull/1/head 7c3c142321f6aeb3e9ff502876e133d5350018e1 refs/pull/10/head 52fe776815416ce61a516ca060f93405b3cdf7cb refs/pull/10/merge 0c2bb473529795d29ad43ce0d14162d1e2c19027 refs/pull/11/head ... 00d0670bd7dca6bfb1c2dadaa76eaa364930ef78 refs/tags/v1.9a5 aae6caac7874411e311f034e3547a6412fe2f362 refs/tags/v2.0.1 40ae4256452c5cde1e714e3271af5028e96c5e1f refs/tags/v2.0.1^{} d1ee050420f9a0fdacbf7c9f98c923ddfcc2a39f refs/tags/v2.1.0 033fc936155115b3a541387804e0a94820978498 refs/tags/v2.1.0^{} 812e01736ca936124daa36d15a4159e92a43b9db refs/tags/v2.1.0alpha1 a7748d0e65fe17fbcb20f7b086536c3ccf68de43 refs/tags/v2.1.0alpha2 ...
- gr2020 13y agoAgree - would be awesome if the release notes were stored as part of the git repo, and editable from anywhere.
- caf 13y agoYou should probably commit your release notes as a file in the repository before tagging the release, then just copy-paste them into the github "release" - that way anyone who gets the source tarball from anywhere also gets the release notes.