зеркало из
1
0
Форкнуть 0
This commit is contained in:
Sebastian Bauersfeld 2021-02-12 17:48:03 +01:00
Родитель ecda455d89
Коммит b9097fa2ee
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -80,7 +80,7 @@ pipenv run ./gh2jira sync
``` ```
Note: Instead of the `--gh-token` and `--jira-token` options, you may also set the `GH2JIRA_GH_TOKEN` and `GH2JIRA_JIRA_TOKEN` environment variables. Note: Instead of the `--gh-token` and `--jira-token` options, you may also set the `GH2JIRA_GH_TOKEN` and `GH2JIRA_JIRA_TOKEN` environment variables.
The above command could be invoked via a cronjob every X minutes, to make sure issues and alerts are kept in sync. Currently, two-way integration is not yet possible via this command. If you need it, use the CLI's `serve` command (see below). The above command could be invoked via a cronjob every X minutes, to make sure issues and alerts are kept in sync. To allow two-way integration (via `--direction both`) you have to provide a states file via `--states-file states.json`. The CLI will create that file, if it doesn't exist!
## Using the CLI's `serve` command ## Using the CLI's `serve` command

3
cli.py
Просмотреть файл

@ -247,7 +247,8 @@ def main():
) )
sync_parser.add_argument( sync_parser.add_argument(
'--states-file', '--states-file',
help='File holding the current states.', help='File holding the current states of all alerts. The program will create the' +
' file if it doesn\'t exist and update it after each run.',
default=None default=None
) )
sync_parser.set_defaults(func=sync) sync_parser.set_defaults(func=sync)