Skip to content
New issue

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

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

Already on GitHub? # to your account

yaml support for literals #69

Closed
fkuep opened this issue Nov 25, 2022 · 2 comments
Closed

yaml support for literals #69

fkuep opened this issue Nov 25, 2022 · 2 comments

Comments

@fkuep
Copy link
Contributor

fkuep commented Nov 25, 2022

Hi Ned and everybody,

I want to use scriv to changlog my ansible collection .
It's version is in a galaxy.yaml file like this:

namespace: myCollections
name: a_collection
version: 1.2.3
authors:
- Me  <ich@mag.net>
description: This is gonna be great!
repository: https://github.com/example-corp/fluffy_husky.git
issues: https://github.com/example-corp/fluffy_husky/issues
build_ignore: ['*.tar.gz', '*.pass', '*.key', '*.id_rsa', publish.sh,
  .gitignore, 'changelog.d/*']

Now - wouldn't it be great, if literals could be enhanced to parse yaml files ?

@fkuep fkuep mentioned this issue Nov 25, 2022
@fkuep
Copy link
Contributor Author

fkuep commented Nov 25, 2022

This seems to work:

$ scriv collect --keep
Collecting from changelog.d
$

changelog.d/scriv.ini

[scriv]
format = md
version = literal: galaxy.yml: version

generated CHANGELOG.md

<a id='changelog-1.2.3'></a>
# 1.2.3 — 2022-11-25

## Added

- I did the following new ...

@nedbat
Copy link
Owner

nedbat commented Dec 3, 2022

Implemented in 65f7e96.

@nedbat nedbat closed this as completed Dec 3, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants