lister: Allow lister to build url out of the instance parameter
This pushes the rather elementary logic within the lister's scope. This will simplify and unify cli call between lister and scheduler clis. This will also allow to reduce erroneous operations which can happen for example in the add-forge-now. With the following, we will only have to provide the type and the instance, then everything will be scheduled properly. Refs. swh/devel/swh-lister#4693
Showing
- swh/lister/gitlab/lister.py 8 additions, 2 deletionsswh/lister/gitlab/lister.py
- swh/lister/gitlab/tests/test_lister.py 15 additions, 2 deletionsswh/lister/gitlab/tests/test_lister.py
- swh/lister/gogs/lister.py 7 additions, 2 deletionsswh/lister/gogs/lister.py
- swh/lister/gogs/tests/test_lister.py 14 additions, 4 deletionsswh/lister/gogs/tests/test_lister.py
- swh/lister/pattern.py 34 additions, 3 deletionsswh/lister/pattern.py
- swh/lister/tests/test_cli.py 4 additions, 5 deletionsswh/lister/tests/test_cli.py
- swh/lister/tests/test_pattern.py 18 additions, 0 deletionsswh/lister/tests/test_pattern.py
Loading
Please register or sign in to comment