Skip to content

Commit b1f5809

Browse files
authored
Update filter for gitlab.com tags. (#839)
1 parent 29bc9bb commit b1f5809

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/source/filters.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ and for Gitlab tags:
475475
476476
url: https://gitlab.com/chinstrap/gammastep/-/tags
477477
filter:
478-
- xpath: (//a[contains(@class,"item-title ref-name")])[1]
478+
- xpath: (//*[@class="gl-font-bold"])[1]
479479
- html2text
480480
481481
Alternatively, ``jq`` can be used for filtering:

lib/urlwatch/tests/data/filter_documentation_testdata.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,9 @@ https://github.com/thp/urlwatch/tags:
271271
2.28
272272
https://gitlab.com/chinstrap/gammastep/-/tags:
273273
input: |-
274-
<a class="item-title ref-name" href="/chinstrap/gammastep/-/tags/v2.0.7">v2.0.7</a>
274+
<a class="gl-font-bold" href="/chinstrap/gammastep/-/tags/v2.0.9">v2.0.9</a>
275275
output: |-
276-
v2.0.7
276+
v2.0.9
277277
https://example.com/regex-substitute.html:
278278
input: |-
279279
<div>

0 commit comments

Comments
 (0)