split github upload into generic http method and github specific

We might use some features from the http upload for another parser
This commit is contained in:
2021-10-15 23:36:09 +03:00
parent 04bbabe898
commit a5a99ec0b8
7 changed files with 175 additions and 124 deletions

View File

@ -107,14 +107,14 @@ Remote synchronization settings.
Group name must refer to architecture, e.g. it should be `github:x86_64` for x86_64 architecture. This feature requires Github key creation (see below).
* `api_key` - created Github API key. In order to create it do the following:
1. Go to [settings page](https://github.com/settings/profile).
2. Switch to [developers settings](https://github.com/settings/apps).
3. Switch to [personal access tokens](https://github.com/settings/tokens).
4. Generate new token. Required scope is `public_repo` (or `repo` for private repository support).
* `owner` - Github repository owner, string, required.
* `password` - created Github API key. In order to create it do the following:
1. Go to [settings page](https://github.com/settings/profile).
2. Switch to [developers settings](https://github.com/settings/apps).
3. Switch to [personal access tokens](https://github.com/settings/tokens).
4. Generate new token. Required scope is `public_repo` (or `repo` for private repository support).
* `repository` - Github repository name, string, required. Repository must be created before any action and must have active branch (e.g. with readme).
* `username` - Github authorization user, string, optional, default is the same as `owner`.
* `username` - Github authorization user, string, required. Basically the same as `owner`.
### `rsync:*` groups

View File

@ -194,9 +194,10 @@ There are several choices:
target = github
[github]
api_key = ...
owner = ahriman
password = ...
repository = repository
username = ahriman
```
## Reporting