Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use h2 for version headings in Changelog to allow deeplinking #5149

Merged
merged 1 commit into from Dec 4, 2013
Merged

Use h2 for version headings in Changelog to allow deeplinking #5149

merged 1 commit into from Dec 4, 2013

Conversation

colszowka
Copy link
Contributor

Amended the changelog to use Markdown-style h2 headings for the versions. This allows deeplinking release notes for specific versions thanks to html-pipeline. Yay :)

@colszowka
Copy link
Contributor Author

I didn't want to be too intrusive on this one. I love the project and had a need for deeplinking the release notes for 1.4, so that is how this one came about.

Some further changes to the changelog I would suggest, based upon my experience with my somewhat popular ruby code coverage library simplecov:

  • Use something equivalent to your git release tag for the h2 heading (i.e. v0.8.2). This makes it possible to use the github api to fetch tags and then link to a specific release changelog (sans the ., they get stripped in the anchor)
  • Give a link to the github compare view for the inclined reader who'd like to see the actual changes to the previous release

I have used this for the latest release of simplecov and it corresponds to the github tags api so it'd be very easy to scrape and use in unforeseen ways :)

Thanks for the great work on this.

mpdehaan added a commit that referenced this pull request Dec 4, 2013
Use h2 for version headings in Changelog to allow deeplinking
@mpdehaan mpdehaan merged commit 231b0d5 into ansible:devel Dec 4, 2013
@mpdehaan
Copy link
Contributor

mpdehaan commented Dec 4, 2013

merged, thanks!

dagwieers added a commit to dagwieers/ansible that referenced this pull request Dec 7, 2016
Various changes and improvements:

- Fixed a few issues with the existing unzip support which were related
  to Zipfile (which is fundamentally incompatible with unzip
  excludes/opts).  And issues related to forced ownership.

- Improvements to the UnarchiveError Exception, so it can report
  more detailed information to why an archive cannot be handled.

- A bugfix relatd to unicode filenames and crc32 handling.

- Renamed a few things so the code is easier to read.

- Ensure gtar considers size changes to unarchive its content.
  This fixes ansible#5149.

- Added a note about ZIP archives without directories
  This fixes ansible#5744.

The unarchive module is a hard beast to tame, corner-cases and
platform-specific issues make it hard to troubleshoot individual issues.

- Improves the default output (e.g. unzip no longer shows standard output,
  just like gtar) and adds the ability to get debug-output when using -vvvv
  (verbosity >= 4) or -vvvvv. So that when issues are i reported we have
  the means to look what is going on internally.

- Because the output by default is reduced, proper warnings/errors are now
  more obvious to end-users, e.g.

```
TASK [unarchive]
***************************************************************
task path: /home/dag/home-made/ansible.testing/test126.yml:11
changed: [localhost] => {"changed": true, "dest": "/tmp/test126a", "extract_results": {"cmd":
["/usr/bin/unzip", "-q", "-o", "/home/dag/.ansible/tmp/ansible-tmp-1479989967.66-3171393713112/source",
"-x", "some.directory/", "another.directory/simple.test.file.txt", "-d", "/tmp/test126a"], "err":
"caution: excluded filename not matched: some.directory/\ncaution: excluded filename not matched:
another.directory/simple.test.file.txt\n", "out": "", "rc": 0}, "gid": 500, "group": "dag", "handler":
"ZipArchive", "mode": "0775", "owner": "dag", "secontext": "unconfined_u:object_r:user_tmp_t:s0",
"size": 4096, "src": "/home/dag/.ansible/tmp/ansible-tmp-1479989967.66-3171393713112/source",
"state": "directory", "uid": 500}
```

Whereas before the complete list of deflated files was being shown (when
using -v) which was much more than anyone was willing to look at.
@ansible ansible locked and limited conversation to collaborators Apr 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants