Adding version detection based on .js files params

patch-1
Ricardo Maia 2022-10-19 10:55:34 -03:00
parent 3e1423b48d
commit 337563d59a
1 changed files with 10 additions and 10 deletions

View File

@ -16,24 +16,24 @@ requests:
path:
- "{{BaseURL}}"
- "{{BaseURL}}/CHANGELOG.md"
stop-at-first-match: true
matchers-condition: or
stop-at-first-match: true
matchers:
- type: regex
regex:
- '(?i)base\.min\.js\?v=([\d.|\d]+)">'
- type: regex
regex:
- '(?i)jquery\.min\.js\?v=([\d.|\d]+)">'
- type: word
words:
- "GLPI changes"
- "glpi-project.org"
condition: and
- type: regex
regex:
- '(GLPI.*[C|c]opyright.*(|Teclib))'
extractors:
- type: regex
name: version
part: body
group: 1
regex:
- '# GLPI changes\n\n.*\n.*\n.*\n##\s\[(\d+\.\d+|\d+\.\d+\.\d+)\]'
- '(?i)base\.min\.js\?v=([\d.|\d]+)">'
- '(?i)jquery\.min\.js\?v=([\d.|\d]+)">'
- '(?i)# GLPI changes\n\n.*\n.*\n.*\n##\s\[(\d+\.\d+|\d+\.\d+\.\d+)\]'