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

Update readme generator and generate README.rst only when fragments changed #256

Merged
merged 3 commits into from
Sep 3, 2023

Conversation

sbidoul
Copy link
Member

@sbidoul sbidoul commented Sep 2, 2023

No description provided.

@@ -33,6 +33,7 @@ def _gen_addons_readme(org, repo, branch, cwd):
_logger.info("oca-gen-addon-readme in %s/%s@%s", org, repo, branch)
gen_addon_readme_cmd = [
"oca-gen-addon-readme",
"--if-fragments-changed",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If i understand correctly, the readme will not be updated, if a PR change only the manifest info (like module name, maintainers, licences, ...)
If yes, It is not desired, dont you think ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The option name might be misleading but the manifest is included in the digest computation as well as the whole readme fragments directory:

https://github.com/OCA/maintainer-tools/blob/9a5d4cbe17a7fe9921e4157d74e64461019e03f3/tools/gen_addon_readme.py#L516-L520

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh. Should be --if-source-changed ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alrighty. Done :)

@sbidoul sbidoul merged commit 80a04ea into OCA:master Sep 3, 2023
5 checks passed
@sbidoul sbidoul deleted the update-readme-generator-sbi branch September 3, 2023 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants