Skip to content
Snippets Groups Projects
Commit 43f5a981 authored by Mathieu Courtois's avatar Mathieu Courtois
Browse files

[#34358] man_s docs changes are now detected

parent 84cae527
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ from aslint.logger import logger
from aslint.string_utils import convert
RE_KEY = re.compile(
"(?P<key>(?P<chap>(?P<man>[arduvm]){1}[0-9]+)" r"\.[0-9a-zA-Z]+\.[0-9]+)$", re.I
"(?P<key>(?P<chap>(?P<man>s?[arduvm]){1}[0-9]+)" r"\.[0-9a-zA-Z]+\.[0-9]+)$", re.I
)
RE_TXT = re.compile("<.*?>", re.M)
......@@ -48,7 +48,7 @@ def changelog_doc(key, folder=None, limit=50):
project = project_id[folder]
branches = [br["name"] for br in api_request(project, query=f"branches?per_page={limit}")]
args["folder"] = f"source/{folder}/" if folder == "manuals" else ""
values = {"path": "{folder}man_{man}/{chap}/{key}".format(**args)}
values = {"path": "{folder}man_{man[0]}/{chap}/{key}".format(**args)}
descr = []
for branch in branches:
values["ref_name"] = branch
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment