-
Notifications
You must be signed in to change notification settings - Fork 29
Fix version_added #68
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
base: master
Are you sure you want to change the base?
Conversation
Can someone please review this PR? |
Can someone please review this PR this year? |
Can I ask what you're trying to do with this? The original purpose of this code was to update lots of files from the core ansible repository and update them to have fully-qualified collection names for use in a new collection. This new collection would naturally have a version_added of My guess is you're trying to use this as a kind of validation step to make sure FQCNs are used consistently in docs? If so, that's probably a thing that we could pivot this to do, though in that case I'm not sure we need this code at all as I'm pretty sure ansible-lint already has checks requiring version_added. |
Hi @Qalthos, many thanks for taking the time and checking my pull request. I didn't know about that migration background. My situation is that I am running collection_prep as a pipeline step in my collection repository to get the docs generated from the doc-strings inside the modules. But of course my version_added differ in many cases from My PR is checking for the configured Proposal:
Interesting that you are mentioning |
It sounds like you just want Though if there is something that update does that add_docs doesn't, let us know and we'll see if we can get it in add_docs instead.
Yeah, I got my wires crossed, sorry. |
I was observing that collection_prep took the field
version_added
from the modules doc-string and replaced whatever was written inversion_added
with1.0.0
.I don't understand very much what's going on in collection_prep but it was very unexpected that collection_prep did not only produced unexpected results but changed the actual module doc-string as well. I would expect collection_prep to leave the module docstring untouched.