swh.lister.phabricator
Add a lister of all hosted repositories on a Phabricator instance Closes T808
This commit is contained in:
parent
4efb2ce62b
commit
fedfd73c8e
14 changed files with 2894 additions and 1 deletions
13
README.md
13
README.md
|
@ -15,6 +15,7 @@ following Python modules:
|
|||
- `swh.lister.gitlab`
|
||||
- `swh.lister.pypi`
|
||||
- `swh.lister.npm`
|
||||
- `swh.lister.phabricator`
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
@ -164,6 +165,18 @@ logging.basicConfig(level=logging.DEBUG)
|
|||
npm_lister()
|
||||
```
|
||||
|
||||
## lister-phabricator
|
||||
|
||||
Once configured, you can execute a Phabricator lister using the following instructions in a `python3` script:
|
||||
|
||||
```lang=python
|
||||
import logging
|
||||
from swh.lister.phabricator.tasks import incremental_phabricator_lister
|
||||
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
incremental_phabricator_lister(forge_url='https://forge.softwareheritage.org', api_token='XXXX')
|
||||
```
|
||||
|
||||
Licensing
|
||||
---------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue