Semantic-Release-Notes icon indicating copy to clipboard operation
Semantic-Release-Notes copied to clipboard

Include optional footer for commit range

Open JakeGinnivan opened this issue 11 years ago • 25 comments

I would like to have under the issues list something like this:

Commits: b0ef2eb...62e4c21

or Commits: [b0ef2eb...62e4c21](diffurl)

JakeGinnivan avatar Mar 12 '14 09:03 JakeGinnivan

@JakeGinnivan do you think that commits would just be a rel as described in #7? Are you actually interested in the commit hashes, or just the URL?

nikmd23 avatar Apr 29 '14 20:04 nikmd23

I am interested in the commit hashes for https://github.com/JakeGinnivan/GitReleaseNotes

It is useful for appending new items to the release notes

JakeGinnivan avatar Apr 30 '14 18:04 JakeGinnivan

:+1: for this, the commit hashes could be recognize as footer.

laedit avatar Feb 25 '15 09:02 laedit

Seems a reasonable request to me. Wondering if there are other sorts of metadata that would come out similar to this... just wondering if its worth considering them together?

As in, there is a formal concept of "footer metadata" which is made up of known key/value pairs like "Commits", "[b0ef2eb...62e4c21]|[[b0ef2eb...62e4c21](diffurl)]"

avanderhoorn avatar Feb 25 '15 13:02 avanderhoorn

Great idea! I don't think of any other metadatas right now but supporting this allow us to add some later.

laedit avatar Feb 25 '15 15:02 laedit

Thanks what I was thinking. Anyone else think of anything?

avanderhoorn avatar Feb 25 '15 16:02 avanderhoorn

Maybe download links to source/zip etc?

JakeGinnivan avatar Mar 11 '15 21:03 JakeGinnivan

Something like this?

Source: [myApp-source.v0.1.0.zip](https://github.com/laedit/myApp/release/latest/source.zip)
Compiled: [myApp.v0.1.0.zip](https://github.com/laedit/myApp/release/latest/myApp.zip)

laedit avatar Mar 12 '15 05:03 laedit

Additional thought, it can be handy to include the checksum of the files:

Source: [myApp-source.v0.1.0.zip](https://github.com/laedit/myApp/release/latest/source.zip) / checksum (md5): 99c3a849f6e9a0d143f057433c7f4d84
Compiled: [myApp.v0.1.0.zip](https://github.com/laedit/myApp/release/latest/myApp.zip) / checksum (sha-1): bf35fa420d3e0f669e27b337062bf19f510480d4

What do you think?

laedit avatar Apr 08 '15 14:04 laedit

Sounds good. The checksum should be optional. Is it just the keys we are enforcing right? Or do we enforce the structure?

JakeGinnivan avatar Apr 08 '15 16:04 JakeGinnivan

Yes, checksum is optional. The keys are defined in order to distinguish the metadata from the summary, but I don't know if it's worth it to check the value/structure. I have made it in #19 with a simple regex in order to validate that the value contain two hashes, but for download I think it can be anything from a url to a link with any extension (or no extension at all), so for this one I think we can just accept any values after the source and compiler keys.

laedit avatar Apr 09 '15 09:04 laedit

Just thought of another, contributors which will list the people who contributed to each release

JakeGinnivan avatar Apr 12 '15 16:04 JakeGinnivan

Something like this?

Contributors: Jake Ginnivan, Jérémie Bertrand

laedit avatar Apr 12 '15 17:04 laedit

Yep, I tend to do [Name](GithubProfileLink) so it's a markdown link

JakeGinnivan avatar Apr 12 '15 17:04 JakeGinnivan

Yeah, I think this one should not have to be checked on the value side.

laedit avatar Apr 14 '15 13:04 laedit

Thinking through generating/updates existing release notes a generated at: <time> would also be very handy

So basically, I think we need

  • Contributors
  • Commits
  • Source
  • Binaries
  • Generated at

I think that should do it for now :P

JakeGinnivan avatar Apr 15 '15 18:04 JakeGinnivan

All right, another good thought. I'll update #19 when I'll have the time.

laedit avatar Apr 16 '15 08:04 laedit

Do we think these metadata "titles"/keys need to be namespace? Like:

  • Release\Contributors
  • Release\Commits
  • Release\Source
  • Release\Binaries
  • Release\Generated

avanderhoorn avatar Apr 21 '15 15:04 avanderhoorn

Personally I don't see the point, the metada are linked to one release so I don't think it can be a problem. But I might missing something.

@JakeGinnivan concerning generated at:, we must agree on a universal date format, do the 'year-month-day` like for the release date in #11 is ok?

laedit avatar Apr 21 '15 15:04 laedit

Lets just follow http://en.wikipedia.org/wiki/ISO_8601

Should we use UTC so yyyy-mm-dd HH:mm:ssZ (Z for zero offset), or should we put the timezone which the release notes were generated in?

JakeGinnivan avatar Apr 21 '15 16:04 JakeGinnivan

I have preference for UTC but since right now you are the only user of this metadata, what is the best for you? :smile:

laedit avatar Apr 21 '15 16:04 laedit

Don't really care. It is a tool which is going to use this to append new items to an existing release.

JakeGinnivan avatar Apr 21 '15 16:04 JakeGinnivan

So let's say we use UTC.

laedit avatar Apr 21 '15 16:04 laedit

Yep :+1:

JakeGinnivan avatar Apr 21 '15 17:04 JakeGinnivan

I'm good with that format and UTC sounds good. Regarding namespaces, guess I'm wanting to make sure that we don't shoot ourselves in the foot.

avanderhoorn avatar Apr 21 '15 21:04 avanderhoorn