Compare commits
59 Commits
feature/gi
...
main
Author | SHA1 | Date | |
---|---|---|---|
1dada74055 | |||
bb7e0e12f9 | |||
3e5db1aaab | |||
41d31e7eda | |||
7a827fe479 | |||
49204abb29 | |||
931bfa7ae7 | |||
f9cc8e99b1 | |||
dc6f7872d2 | |||
e8451f3bfb | |||
b8e2a9369c | |||
2927cfb45e | |||
222db96717 | |||
c22a85b97d | |||
91334e038c | |||
2eb5b7cdba | |||
0126eddfe5 | |||
1b493045d0 | |||
61ac6dd614 | |||
d6a8c1251b | |||
b965a4b47e | |||
b43deff8ad | |||
73088892f3 | |||
3e17eb5ece | |||
00a827464a | |||
eaaa5557f8 | |||
38d2dc932e | |||
ce5efdd6b8 | |||
28a7b6f2ab | |||
b5cbe8d7a9 | |||
53645f6274 | |||
b2b851a144 | |||
b7c16b8d61 | |||
933455d200 | |||
5a02f37174 | |||
1f726716e7 | |||
3b1b02e681 | |||
0dedf9268d | |||
c00b3a97d2 | |||
e0d0077109 | |||
ef28a7a248 | |||
720fb81b1b | |||
998375e82a | |||
50fdefbcd4 | |||
0878d71ff0 | |||
bb51770505 | |||
a3ecad1355 | |||
ba40b46b70 | |||
991861db99 | |||
0d6e8bc4a0 | |||
1b565f5a1c | |||
62599b7138 | |||
3d478101cb | |||
c3d12054d5 | |||
39800daad3 | |||
6899c28ddf | |||
1abe50fcc8 | |||
ee749e91e1 | |||
ad72050779 |
2
.drone.yml
Executable file
2
.drone.yml
Executable file
@ -0,0 +1,2 @@
|
||||
kind: template
|
||||
load: cuddle-rust-cli-plan.yaml
|
31
.github/release-drafter.yml
vendored
Normal file
31
.github/release-drafter.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
name-template: "v$RESOLVED_VERSION 🌈"
|
||||
tag-template: "v$RESOLVED_VERSION"
|
||||
categories:
|
||||
- title: "🚀 Features"
|
||||
labels:
|
||||
- "feature"
|
||||
- "enhancement"
|
||||
- title: "🐛 Bug Fixes"
|
||||
labels:
|
||||
- "fix"
|
||||
- "bugfix"
|
||||
- "bug"
|
||||
- title: "🧰 Maintenance"
|
||||
label: "chore"
|
||||
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
|
||||
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
|
||||
version-resolver:
|
||||
major:
|
||||
labels:
|
||||
- "major"
|
||||
minor:
|
||||
labels:
|
||||
- "minor"
|
||||
patch:
|
||||
labels:
|
||||
- "patch"
|
||||
default: patch
|
||||
template: |
|
||||
## Changes
|
||||
|
||||
$CHANGES
|
25
.github/workflows/release-drafter.yml
vendored
Normal file
25
.github/workflows/release-drafter.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
name: Release Drafter
|
||||
|
||||
on:
|
||||
push:
|
||||
# branches to consider in the event; optional, defaults to all
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
types: [opened, reopened, synchronize]
|
||||
pull_request_target:
|
||||
types: [opened, reopened, synchronize]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
update_release_draft:
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: release-drafter/release-drafter@v6
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,4 @@
|
||||
/target
|
||||
.cuddle/
|
||||
target/
|
||||
.env
|
||||
|
@ -1 +0,0 @@
|
||||
# Configuration server
|
2456
Cargo.lock
generated
Normal file
2456
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
32
Cargo.toml
Normal file
32
Cargo.toml
Normal file
@ -0,0 +1,32 @@
|
||||
[package]
|
||||
name = "octopush"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[workspace]
|
||||
members = [
|
||||
".",
|
||||
"crates/octopush_cli",
|
||||
"crates/octopush_infra",
|
||||
"crates/octopush_core",
|
||||
"crates/gitea_raw_client",
|
||||
"crates/gitea_client",
|
||||
]
|
||||
|
||||
[workspace.dependencies]
|
||||
eyre = { version = "0.6.12" }
|
||||
async-trait = "0.1.80"
|
||||
tokio = { version = "1.37.0", features = ["full", "test-util"] }
|
||||
tracing = { version = "0.1.40", features = ["log"] }
|
||||
|
||||
[dependencies]
|
||||
octopush_cli = { path = "crates/octopush_cli" }
|
||||
|
||||
eyre = { workspace = true }
|
||||
tokio = { workspace = true }
|
||||
tracing = { workspace = true }
|
||||
|
||||
tracing-subscriber = { version = "0.3.18", features = ["json", "env-filter"] }
|
||||
dotenv = { version = "0.15.0", features = ["clap", "cli"] }
|
105
README.md
105
README.md
@ -14,19 +14,19 @@ are so many of them. Octopush aims to change that.
|
||||
|
||||
## Features
|
||||
|
||||
- Uses an actions repository, where you store all your pending commands or
|
||||
queries to be performed across your fleet of repositories. (See \_examples)
|
||||
- Actions can both execute changes, open pull-requests or in some cases commit
|
||||
directly to your preferred branch
|
||||
- Actions natively use either shell, go or docker files to execute changes
|
||||
(see \_examples/actions)
|
||||
- Actions can also be analytical, so you can query your fleet for whatever you
|
||||
would like
|
||||
- Works both as a client, or as a server
|
||||
- [x] Uses an actions repository, where you store all your pending commands or
|
||||
queries to be performed across your fleet of repositories. (See
|
||||
\_examples)
|
||||
- [x] Actions can both execute changes, open pull-requests or in some cases
|
||||
commit directly to your preferred branch
|
||||
- [x] Actions natively use either shell, go or docker files to execute changes
|
||||
(see \_examples/actions)
|
||||
- [ ] Actions can also be analytical, so you can query your fleet for whatever
|
||||
you would like
|
||||
- Supports SSH/https for fetching repos
|
||||
- Supports GPG signing
|
||||
- Supports dry-run mode for easy testing when developing your actions (enabled
|
||||
by default on the cli)
|
||||
- [ ] Supports GPG signing
|
||||
- [ ] Supports dry-run mode for easy testing when developing your actions
|
||||
(enabled by default on the cli)
|
||||
|
||||
## Roadmap
|
||||
|
||||
@ -34,10 +34,8 @@ Refer to [roadmap.md](roadmap.md)
|
||||
|
||||
## Installation
|
||||
|
||||
Octopush comes in two modes. Client or Client -> Server. Octopush can stand alone as
|
||||
a client, for smaller and less secure changes. However, for organisations, it
|
||||
may be useful to use Octopush in server mode, which supports more features, and
|
||||
has extra security built in.
|
||||
Octopush runs on your client and acts on your behalf, unless of course it is
|
||||
setup on a remote server
|
||||
|
||||
### Client (CLI)
|
||||
|
||||
@ -55,8 +53,8 @@ docker run --rm kasperhermansen/octopushcli:latest version
|
||||
git clone https://github.com/kjuulh/octopush.git
|
||||
cd octopush
|
||||
|
||||
go build cmd/octopush/octopush.go
|
||||
./octopush version
|
||||
cargo build --release --target=x64_86-unknown-linux_musl
|
||||
./target/x64_86-unknown-linux_musl/octopush version
|
||||
```
|
||||
|
||||
#### Or Build with cuddle
|
||||
@ -68,49 +66,12 @@ cd octopush
|
||||
cuddle_cli x build_cli
|
||||
```
|
||||
|
||||
### Server
|
||||
|
||||
We prefer to run the server directly as a docker image.
|
||||
|
||||
```bash
|
||||
docker pull kasperhermansen/octopushserver:latest
|
||||
docker run -p 9090:80 --rm kasperhermansen/octopushserver:latest
|
||||
```
|
||||
|
||||
#### Or Build from source
|
||||
|
||||
```bash
|
||||
git clone https://github.com/kjuulh/octopush.git
|
||||
cd octopush
|
||||
|
||||
go build cmd/server/server.go
|
||||
./server version
|
||||
```
|
||||
|
||||
#### Or Build with cuddle
|
||||
|
||||
```bash
|
||||
git clone https://github.com/kjuulh/octopush.git
|
||||
cd octopush
|
||||
|
||||
cuddle_cli x build_server
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
**DISCLAIMER:** It is still early days, and the api of the CLI is subject to
|
||||
change, this provides the aim of the project, but as it is currently in flux,
|
||||
there may not be as much handholding in the actual usage.
|
||||
|
||||
I will focus on the client here, as the server provides the same features,
|
||||
though available through the cli, but instead as configuration options (see
|
||||
[CONFIGURATION_SERVER.md](CONFIGURATION_SERVER.md))
|
||||
|
||||
Octopush ships with autocomplete built in (courtesy of spf13/cobra). To add:
|
||||
|
||||
- Bash: `echo 'source <(octopush completion bash)' >> ~/.bashrc`
|
||||
- Zsh: `echo 'source <(octopush completion zsh)' >> ~/.zshrc`
|
||||
|
||||
### Creating a new action
|
||||
|
||||
Creating a new action
|
||||
@ -118,14 +79,15 @@ Creating a new action
|
||||
```bash
|
||||
git init my-actions # should only be done once
|
||||
cd my-actions
|
||||
octopush tmpl init write-a-readme --command
|
||||
octopush tmpl init write-a-readme --action
|
||||
cat write-a-readme/octopush.yml
|
||||
|
||||
# Output
|
||||
# apiVersion: git.front.kjuulh.io/kjuulh/octopush/blob/main/schema/v1
|
||||
# apiVersion: action
|
||||
# name: write-a-readme
|
||||
# select:
|
||||
# repositories: []
|
||||
# git:
|
||||
# repositories: []
|
||||
# actions:
|
||||
# - type: shell
|
||||
# entry: "main.sh"
|
||||
@ -143,9 +105,9 @@ cat << EOF > write-a-readme/octopush.yml
|
||||
apiVersion: git.front.kjuulh.io/kjuulh/octopush/blob/main/schema/v1
|
||||
name: write-a-readme
|
||||
select:
|
||||
providers: # new
|
||||
- gitea: https://git.front.kjuulh.io # new
|
||||
organisation: "kjuulh" # new
|
||||
gitea: # new
|
||||
repositories: # new
|
||||
"kjuulh/octopush" # new
|
||||
actions:
|
||||
- type: shell
|
||||
entry: "main.sh"
|
||||
@ -182,8 +144,8 @@ To run the script use
|
||||
octopush process --path "write-a-readme"
|
||||
```
|
||||
|
||||
This will cause the octopush process to automatically apply the action on the repo
|
||||
and open a pr.
|
||||
This will cause the octopush process to automatically apply the action on the
|
||||
repo and open a pr.
|
||||
|
||||
### Query repositories
|
||||
|
||||
@ -212,8 +174,8 @@ to help test locally, as well as not cause serious issues. The server
|
||||
configuration is pretty much the same, except the command would look like so:
|
||||
`octopush server process --path "write-a-readme" --apply`. Octopush will try to
|
||||
infer as much as possible, but it may be needed to apply some extra flags to
|
||||
specify upstream repositories and such. Octopush will also help you setup keys and
|
||||
such on the first run, using `octopush setup` or `octopush server setup`.
|
||||
specify upstream repositories and such. Octopush will also help you setup keys
|
||||
and such on the first run, using `octopush setup` or `octopush server setup`.
|
||||
|
||||
## Contributing
|
||||
|
||||
@ -234,16 +196,5 @@ outside core maintainers.
|
||||
Simply:
|
||||
|
||||
```bash
|
||||
go run cmd/octopush/octopush.go # CLI
|
||||
go run cmd/server/server.go # Server
|
||||
```
|
||||
|
||||
We follow the `gofmt` formatting, along with optionally but recommend `golines`
|
||||
|
||||
If using cuddle
|
||||
|
||||
```
|
||||
cuddle_cli x run # Run both server and client, will do a quick test sweep on the cli
|
||||
cuddle_cli x watch_run # Automatically refresh both
|
||||
cuddle_cli x fmt # will format the current code
|
||||
cargo build
|
||||
```
|
||||
|
@ -1,11 +0,0 @@
|
||||
module write_a_readme
|
||||
|
||||
go 1.19
|
||||
|
||||
require github.com/bitfield/script v0.20.2
|
||||
|
||||
require (
|
||||
bitbucket.org/creachadair/shell v0.0.7 // indirect
|
||||
github.com/itchyny/gojq v0.12.7 // indirect
|
||||
github.com/itchyny/timefmt-go v0.1.3 // indirect
|
||||
)
|
@ -1,20 +0,0 @@
|
||||
bitbucket.org/creachadair/shell v0.0.7 h1:Z96pB6DkSb7F3Y3BBnJeOZH2gazyMTWlvecSD4vDqfk=
|
||||
bitbucket.org/creachadair/shell v0.0.7/go.mod h1:oqtXSSvSYr4624lnnabXHaBsYW6RD80caLi2b3hJk0U=
|
||||
github.com/bitfield/script v0.20.2 h1:4DexsRtBILVMEn3EZwHbtJdDqdk43sXI8gM3F04JXgs=
|
||||
github.com/bitfield/script v0.20.2/go.mod h1:l3AZPVAtKQrL03bwh7nlNTUtgrgSWurpJSbtqspYrOA=
|
||||
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.7 h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o=
|
||||
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
|
||||
github.com/itchyny/gojq v0.12.7 h1:hYPTpeWfrJ1OT+2j6cvBScbhl0TkdwGM4bc66onUSOQ=
|
||||
github.com/itchyny/gojq v0.12.7/go.mod h1:ZdvNHVlzPgUf8pgjnuDTmGfHA/21KoutQUJ3An/xNuw=
|
||||
github.com/itchyny/timefmt-go v0.1.3 h1:7M3LGVDsqcd0VZH2U+x393obrzZisp7C0uEe921iRkU=
|
||||
github.com/itchyny/timefmt-go v0.1.3/go.mod h1:0osSSCQSASBJMsIZnhAaF1C2fCBTJZXrnj37mG8/c+A=
|
||||
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
|
||||
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
|
||||
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
@ -1,25 +0,0 @@
|
||||
package main
|
||||
|
||||
import "github.com/bitfield/script"
|
||||
|
||||
func main() {
|
||||
|
||||
releaseRc := `
|
||||
branches:
|
||||
- "main"
|
||||
- "v0.x"
|
||||
|
||||
plugins:
|
||||
- "@semantic-release/commit-analyzer"
|
||||
- "@semantic-release/release-notes-generator"
|
||||
- "@semantic-release/changelog"
|
||||
- "@semantic-release/git"
|
||||
`
|
||||
|
||||
_, err := script.
|
||||
Echo(releaseRc).
|
||||
WriteFile(".releaserc.yml")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
apiVersion: git.front.kjuulh.io/kjuulh/octopush/blob/main/schema/v1
|
||||
name: write-a-readme
|
||||
select:
|
||||
repositories:
|
||||
- git@git.front.kjuulh.io:kjuulh/octopush-test.git
|
||||
#- git@git.front.kjuulh.io:kjuulh/octopush.git
|
||||
# providers:
|
||||
# - gitea: https://git.front.kjuulh.io
|
||||
# organisation: "cibus"
|
||||
actions:
|
||||
- type: go
|
||||
entry: "main.go"
|
@ -1,8 +0,0 @@
|
||||
FROM debian:bullseye-slim
|
||||
|
||||
# Octopush relies on this path being the specified path
|
||||
WORKDIR /src/work/
|
||||
|
||||
COPY entry.sh /src/script.sh
|
||||
|
||||
CMD [ "/src/script.sh" ]
|
@ -1,5 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
echo "# README docker" > README.md
|
@ -1,11 +0,0 @@
|
||||
module write_a_readme
|
||||
|
||||
go 1.19
|
||||
|
||||
require github.com/bitfield/script v0.20.2
|
||||
|
||||
require (
|
||||
bitbucket.org/creachadair/shell v0.0.7 // indirect
|
||||
github.com/itchyny/gojq v0.12.7 // indirect
|
||||
github.com/itchyny/timefmt-go v0.1.3 // indirect
|
||||
)
|
@ -1,20 +0,0 @@
|
||||
bitbucket.org/creachadair/shell v0.0.7 h1:Z96pB6DkSb7F3Y3BBnJeOZH2gazyMTWlvecSD4vDqfk=
|
||||
bitbucket.org/creachadair/shell v0.0.7/go.mod h1:oqtXSSvSYr4624lnnabXHaBsYW6RD80caLi2b3hJk0U=
|
||||
github.com/bitfield/script v0.20.2 h1:4DexsRtBILVMEn3EZwHbtJdDqdk43sXI8gM3F04JXgs=
|
||||
github.com/bitfield/script v0.20.2/go.mod h1:l3AZPVAtKQrL03bwh7nlNTUtgrgSWurpJSbtqspYrOA=
|
||||
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.7 h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o=
|
||||
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
|
||||
github.com/itchyny/gojq v0.12.7 h1:hYPTpeWfrJ1OT+2j6cvBScbhl0TkdwGM4bc66onUSOQ=
|
||||
github.com/itchyny/gojq v0.12.7/go.mod h1:ZdvNHVlzPgUf8pgjnuDTmGfHA/21KoutQUJ3An/xNuw=
|
||||
github.com/itchyny/timefmt-go v0.1.3 h1:7M3LGVDsqcd0VZH2U+x393obrzZisp7C0uEe921iRkU=
|
||||
github.com/itchyny/timefmt-go v0.1.3/go.mod h1:0osSSCQSASBJMsIZnhAaF1C2fCBTJZXrnj37mG8/c+A=
|
||||
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
|
||||
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
|
||||
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
@ -1,11 +0,0 @@
|
||||
apiVersion: git.front.kjuulh.io/kjuulh/octopush/blob/main/schema/v1
|
||||
name: write-a-readme
|
||||
select:
|
||||
repositories:
|
||||
- git@git.front.kjuulh.io:kjuulh/octopush-test.git
|
||||
# providers:
|
||||
# - gitea: https://git.front.kjuulh.io
|
||||
# organisation: "cibus"
|
||||
actions:
|
||||
- type: docker-build
|
||||
entry: Dockerfile
|
1
_examples/actions/write_a_readme/.gitignore
vendored
Normal file
1
_examples/actions/write_a_readme/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
dist/
|
@ -2,10 +2,11 @@ module write_a_readme
|
||||
|
||||
go 1.19
|
||||
|
||||
require github.com/bitfield/script v0.20.2
|
||||
require github.com/bitfield/script v0.22.1
|
||||
|
||||
require (
|
||||
bitbucket.org/creachadair/shell v0.0.7 // indirect
|
||||
github.com/itchyny/gojq v0.12.7 // indirect
|
||||
github.com/itchyny/timefmt-go v0.1.3 // indirect
|
||||
github.com/itchyny/gojq v0.12.13 // indirect
|
||||
github.com/itchyny/timefmt-go v0.1.5 // indirect
|
||||
mvdan.cc/sh/v3 v3.7.0 // indirect
|
||||
)
|
||||
|
@ -2,19 +2,64 @@ bitbucket.org/creachadair/shell v0.0.7 h1:Z96pB6DkSb7F3Y3BBnJeOZH2gazyMTWlvecSD4
|
||||
bitbucket.org/creachadair/shell v0.0.7/go.mod h1:oqtXSSvSYr4624lnnabXHaBsYW6RD80caLi2b3hJk0U=
|
||||
github.com/bitfield/script v0.20.2 h1:4DexsRtBILVMEn3EZwHbtJdDqdk43sXI8gM3F04JXgs=
|
||||
github.com/bitfield/script v0.20.2/go.mod h1:l3AZPVAtKQrL03bwh7nlNTUtgrgSWurpJSbtqspYrOA=
|
||||
github.com/bitfield/script v0.21.0 h1:/OMglZmed2JyzLkmxYvZQMWs18XjPZxDB/0ht0pxrBk=
|
||||
github.com/bitfield/script v0.21.0/go.mod h1:l3AZPVAtKQrL03bwh7nlNTUtgrgSWurpJSbtqspYrOA=
|
||||
github.com/bitfield/script v0.21.1 h1:k3vYchaqnEPrQ/AS8VFJADM2/B6RbGT75Q3Eago9AHU=
|
||||
github.com/bitfield/script v0.21.1/go.mod h1:l3AZPVAtKQrL03bwh7nlNTUtgrgSWurpJSbtqspYrOA=
|
||||
github.com/bitfield/script v0.21.2 h1:YoubIUrBWeKKvp3+Ig7laCIyL4++JRs9k2EA3P5f34M=
|
||||
github.com/bitfield/script v0.21.2/go.mod h1:l3AZPVAtKQrL03bwh7nlNTUtgrgSWurpJSbtqspYrOA=
|
||||
github.com/bitfield/script v0.21.3 h1:M67zRsHvm2XEmUXaKRfr2+VrX9rSFmKt2Nfu+PIueCw=
|
||||
github.com/bitfield/script v0.21.3/go.mod h1:l3AZPVAtKQrL03bwh7nlNTUtgrgSWurpJSbtqspYrOA=
|
||||
github.com/bitfield/script v0.21.4 h1:XPMD/ti7pa9KW1aPMq7Hfh+mVznQdlqxkbiZSM2lnbE=
|
||||
github.com/bitfield/script v0.21.4/go.mod h1:l3AZPVAtKQrL03bwh7nlNTUtgrgSWurpJSbtqspYrOA=
|
||||
github.com/bitfield/script v0.22.0 h1:LA7QHuEsXMPD52YLtxWrlqCCy+9FOpzNYfsRHC5Gsrc=
|
||||
github.com/bitfield/script v0.22.0/go.mod h1:ms4w+9B8f2/W0mbsgWDVTtl7K94bYuZc3AunnJC4Ebs=
|
||||
github.com/bitfield/script v0.22.1 h1:DphxoC5ssYciwd0ZS+N0Xae46geAD/0mVWh6a2NUxM4=
|
||||
github.com/bitfield/script v0.22.1/go.mod h1:fv+6x4OzVsRs6qAlc7wiGq8fq1b5orhtQdtW0dwjUHI=
|
||||
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
|
||||
github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4=
|
||||
github.com/frankban/quicktest v1.14.4/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
|
||||
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.7 h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o=
|
||||
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
|
||||
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||
github.com/google/renameio/v2 v2.0.0/go.mod h1:BtmJXm5YlszgC+TD4HOEEUFgkJP3nLxehU6hfe7jRt4=
|
||||
github.com/itchyny/gojq v0.12.7 h1:hYPTpeWfrJ1OT+2j6cvBScbhl0TkdwGM4bc66onUSOQ=
|
||||
github.com/itchyny/gojq v0.12.7/go.mod h1:ZdvNHVlzPgUf8pgjnuDTmGfHA/21KoutQUJ3An/xNuw=
|
||||
github.com/itchyny/gojq v0.12.12 h1:x+xGI9BXqKoJQZkr95ibpe3cdrTbY8D9lonrK433rcA=
|
||||
github.com/itchyny/gojq v0.12.12/go.mod h1:j+3sVkjxwd7A7Z5jrbKibgOLn0ZfLWkV+Awxr/pyzJE=
|
||||
github.com/itchyny/gojq v0.12.13 h1:IxyYlHYIlspQHHTE0f3cJF0NKDMfajxViuhBLnHd/QU=
|
||||
github.com/itchyny/gojq v0.12.13/go.mod h1:JzwzAqenfhrPUuwbmEz3nu3JQmFLlQTQMUcOdnu/Sf4=
|
||||
github.com/itchyny/timefmt-go v0.1.3 h1:7M3LGVDsqcd0VZH2U+x393obrzZisp7C0uEe921iRkU=
|
||||
github.com/itchyny/timefmt-go v0.1.3/go.mod h1:0osSSCQSASBJMsIZnhAaF1C2fCBTJZXrnj37mG8/c+A=
|
||||
github.com/itchyny/timefmt-go v0.1.5 h1:G0INE2la8S6ru/ZI5JecgyzbbJNs5lG1RcBqa7Jm6GE=
|
||||
github.com/itchyny/timefmt-go v0.1.5/go.mod h1:nEP7L+2YmAbT2kZ2HfSs1d8Xtw9LY8D2stDBckWakZ8=
|
||||
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
|
||||
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
|
||||
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
|
||||
github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
|
||||
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
|
||||
github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
|
||||
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
|
||||
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
|
||||
github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
|
||||
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
|
||||
github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog=
|
||||
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
mvdan.cc/editorconfig v0.2.0/go.mod h1:lvnnD3BNdBYkhq+B4uBuFFKatfp02eB6HixDvEz91C0=
|
||||
mvdan.cc/sh/v3 v3.6.0 h1:gtva4EXJ0dFNvl5bHjcUEvws+KRcDslT8VKheTYkbGU=
|
||||
mvdan.cc/sh/v3 v3.6.0/go.mod h1:U4mhtBLZ32iWhif5/lD+ygy1zrgaQhUu+XFy7C8+TTA=
|
||||
mvdan.cc/sh/v3 v3.7.0 h1:lSTjdP/1xsddtaKfGg7Myu7DnlHItd3/M2tomOcNNBg=
|
||||
mvdan.cc/sh/v3 v3.7.0/go.mod h1:K2gwkaesF/D7av7Kxl0HbF5kGOd2ArupNTX3X44+8l8=
|
||||
|
BIN
_examples/actions/write_a_readme/main
Executable file
BIN
_examples/actions/write_a_readme/main
Executable file
Binary file not shown.
@ -1,12 +1,38 @@
|
||||
package main
|
||||
|
||||
import "github.com/bitfield/script"
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/bitfield/script"
|
||||
)
|
||||
|
||||
func main() {
|
||||
_, err := script.
|
||||
Echo("# Readme").
|
||||
WriteFile("README.md")
|
||||
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
println("ran stuff")
|
||||
entries, err := os.ReadDir(".")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
for _, entry := range entries {
|
||||
if !entry.IsDir() {
|
||||
file, err := os.ReadFile(entry.Name())
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
println(string(file))
|
||||
}
|
||||
}
|
||||
|
||||
wd, err := os.Getwd()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
println(wd)
|
||||
}
|
||||
|
@ -1,11 +1,26 @@
|
||||
apiVersion: git.front.kjuulh.io/kjuulh/octopush/blob/main/schema/v1
|
||||
apiVersion: action
|
||||
name: write-a-readme
|
||||
select:
|
||||
repositories:
|
||||
- git@git.front.kjuulh.io:kjuulh/octopush-test.git
|
||||
# providers:
|
||||
# - gitea: https://git.front.kjuulh.io
|
||||
# organisation: "cibus"
|
||||
actions:
|
||||
- type: go
|
||||
entry: "main.go"
|
||||
# github:
|
||||
# repositories:
|
||||
# - kjuulh/octopush-test
|
||||
# push:
|
||||
# pull-request:
|
||||
# name: "write a readme"
|
||||
|
||||
gitea:
|
||||
repositories:
|
||||
- kjuulh/octopush-test
|
||||
push:
|
||||
pull-request:
|
||||
name: "write a readme"
|
||||
|
||||
# git:
|
||||
# repositories:
|
||||
# - git@git.front.kjuulh.io:kjuulh/octopush-test.git
|
||||
# push:
|
||||
# branch:
|
||||
# name: "write a readme"
|
||||
action:
|
||||
type: go
|
||||
entry: "main.go"
|
||||
|
@ -1,9 +0,0 @@
|
||||
apiVersion: git.front.kjuulh.io/kjuulh/octopush/blob/main/schema/v1
|
||||
name: write-a-readme
|
||||
select:
|
||||
providers:
|
||||
- gitea: https://git.front.kjuulh.io
|
||||
organisation: "cibus"
|
||||
queries:
|
||||
- type: grep
|
||||
query: "releaser"
|
@ -1,11 +0,0 @@
|
||||
apiVersion: git.front.kjuulh.io/kjuulh/octopush/blob/main/schema/v1
|
||||
name: write-a-readme
|
||||
select:
|
||||
repositories:
|
||||
- git@git.front.kjuulh.io:kjuulh/octopush-test.git
|
||||
# providers:
|
||||
# - gitea: https://git.front.kjuulh.io
|
||||
# organisation: "cibus"
|
||||
queries:
|
||||
- type: grep
|
||||
query: "# README"
|
Binary file not shown.
Before Width: | Height: | Size: 32 KiB |
@ -1,10 +0,0 @@
|
||||
<svg width="1000" height="1000" viewBox="0 0 1000 1000" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M975 568C975 830.335 762.335 497 500 497C237.665 497 25 830.335 25 568C25 305.665 237.665 93 500 93C762.335 93 975 305.665 975 568Z" fill="#52DB78"/>
|
||||
<path d="M237.436 856.185C165.693 827.571 320.875 755.464 377.754 612.854C434.634 470.243 371.672 311.132 443.414 339.746C515.157 368.36 527.205 507.165 470.326 649.776C413.446 792.386 309.178 884.799 237.436 856.185Z" fill="#52DB78"/>
|
||||
<path d="M428.353 849.847C353.918 829.229 500.308 740.627 541.293 592.663C582.278 444.699 502.337 293.405 576.773 314.023C651.208 334.641 678.325 471.303 637.34 619.267C596.355 767.231 502.788 870.465 428.353 849.847Z" fill="#52DB78"/>
|
||||
<path d="M598.707 855.902C523.231 839.498 664.415 742.813 697.024 592.781C729.634 442.748 641.321 296.183 716.797 312.588C792.272 328.992 827.022 463.916 794.413 613.948C761.803 763.98 674.183 872.307 598.707 855.902Z" fill="#52DB78"/>
|
||||
<path d="M47.896 838.855C-19.3259 800.817 144.17 750.323 219.784 616.698C295.397 483.073 254.495 316.918 321.717 354.956C388.938 392.994 382.136 532.155 306.522 665.78C230.909 799.405 115.118 876.893 47.896 838.855Z" fill="#52DB78"/>
|
||||
<ellipse cx="605.35" cy="265.255" rx="57.5" ry="36.5" transform="rotate(-40.9544 605.35 265.255)" fill="white"/>
|
||||
<ellipse cx="359.35" cy="265.255" rx="57.5" ry="36.5" transform="rotate(-40.9544 359.35 265.255)" fill="white"/>
|
||||
<path d="M385.635 374C385.635 374 391.199 435.298 463.528 438.425C535.857 441.553 538.492 380.61 538.492 380.61" stroke="white" stroke-width="8"/>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.5 KiB |
@ -1,61 +0,0 @@
|
||||
package commands
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"git.front.kjuulh.io/kjuulh/octopush/internal/cli"
|
||||
"git.front.kjuulh.io/kjuulh/octopush/internal/commands"
|
||||
"github.com/spf13/cobra"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
func CreateOctopushProcessCmd(logger *zap.Logger) *cobra.Command {
|
||||
|
||||
var (
|
||||
actionsRepo string
|
||||
branch string
|
||||
path string
|
||||
)
|
||||
cmd := &cobra.Command{
|
||||
Use: "process",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
if err := cmd.ParseFlags(args); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
ctx := cmd.Context()
|
||||
|
||||
deps, cleanupFunc, err := cli.Start(ctx, logger)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
defer func() {
|
||||
ctx, _ = context.WithTimeout(ctx, time.Second*5)
|
||||
if err := cleanupFunc(ctx); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}()
|
||||
|
||||
err = commands.
|
||||
NewProcessRepos(logger, deps).
|
||||
Process(ctx, actionsRepo, branch, path)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
}
|
||||
|
||||
pf := cmd.PersistentFlags()
|
||||
|
||||
pf.StringVar(&actionsRepo, "actions-repo", "", "actions repo is the location of your actions, not where to apply the actions themselves, that should be self contained")
|
||||
cmd.MarkPersistentFlagRequired("actions-repo")
|
||||
pf.StringVar(&branch, "branch", "main", "which branch to look for actions in, will default to main")
|
||||
pf.StringVar(&path, "path", "", "the location of the path inside the repository")
|
||||
cmd.MarkPersistentFlagRequired("path")
|
||||
|
||||
return cmd
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
package commands
|
||||
|
||||
import (
|
||||
"git.front.kjuulh.io/kjuulh/octopush/cmd/octopush/commands/server"
|
||||
"github.com/spf13/cobra"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
func CreateOctopushCmd(logger *zap.Logger) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "octopush",
|
||||
}
|
||||
|
||||
cmd.AddCommand(CreateOctopushProcessCmd(logger))
|
||||
cmd.AddCommand(server.CreateOctopushServerCmd(logger))
|
||||
|
||||
return cmd
|
||||
}
|
@ -1,73 +0,0 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func CreateOctopushProcessCmd() *cobra.Command {
|
||||
|
||||
var (
|
||||
actionsRepo string
|
||||
branch string
|
||||
path string
|
||||
)
|
||||
cmd := &cobra.Command{
|
||||
Use: "process",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
if err := cmd.ParseFlags(args); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
client := http.Client{}
|
||||
|
||||
var buf bytes.Buffer
|
||||
err := json.NewEncoder(&buf).
|
||||
Encode(struct {
|
||||
Repository string `json:"repository"`
|
||||
Branch string `json:"branch"`
|
||||
Path string `json:"path"`
|
||||
}{
|
||||
Repository: actionsRepo,
|
||||
Branch: branch,
|
||||
Path: path,
|
||||
})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
req, err := http.NewRequestWithContext(
|
||||
cmd.Context(),
|
||||
http.MethodPost,
|
||||
"http://localhost:3000/commands/processRepos",
|
||||
&buf,
|
||||
)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
resp, err := client.Do(req)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
if resp.StatusCode >= 300 {
|
||||
panic(resp.Status)
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
}
|
||||
|
||||
pf := cmd.PersistentFlags()
|
||||
|
||||
pf.StringVar(&actionsRepo, "actions-repo", "", "actions repo is the location of your actions, not where to apply the actions themselves, that should be self contained")
|
||||
cmd.MarkPersistentFlagRequired("actions-repo")
|
||||
pf.StringVar(&branch, "branch", "main", "which branch to look for actions in, will default to main")
|
||||
pf.StringVar(&path, "path", "", "the location of the path inside the repository")
|
||||
cmd.MarkPersistentFlagRequired("path")
|
||||
|
||||
return cmd
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
func CreateOctopushServerCmd(logger *zap.Logger) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "server",
|
||||
}
|
||||
|
||||
cmd.AddCommand(CreateOctopushProcessCmd())
|
||||
|
||||
return cmd
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"git.front.kjuulh.io/kjuulh/octopush/cmd/octopush/commands"
|
||||
"git.front.kjuulh.io/kjuulh/octopush/internal/logger"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
func main() {
|
||||
logger, err := logger.New()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
_ = logger.Sync()
|
||||
|
||||
zap.ReplaceGlobals(logger)
|
||||
|
||||
Execute(logger)
|
||||
}
|
||||
|
||||
func Execute(logger *zap.Logger) {
|
||||
err := commands.CreateOctopushCmd(logger).Execute()
|
||||
if err != nil {
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
package commands
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
func CreateServerCmd(logger *zap.Logger) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "octopushserver",
|
||||
}
|
||||
|
||||
cmd.AddCommand(NewStartServerCommand(logger))
|
||||
|
||||
return cmd
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
package commands
|
||||
|
||||
import (
|
||||
"git.front.kjuulh.io/kjuulh/octopush/internal/server"
|
||||
"github.com/spf13/cobra"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
func NewStartServerCommand(logger *zap.Logger) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "start",
|
||||
Short: "Start the octopush server",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return server.Start(logger)
|
||||
},
|
||||
}
|
||||
|
||||
return cmd
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"git.front.kjuulh.io/kjuulh/octopush/cmd/server/commands"
|
||||
"git.front.kjuulh.io/kjuulh/octopush/internal/logger"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
func main() {
|
||||
logger, err := logger.New()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
_ = logger.Sync()
|
||||
|
||||
zap.ReplaceGlobals(logger)
|
||||
|
||||
Execute(logger)
|
||||
}
|
||||
|
||||
func Execute(logger *zap.Logger) {
|
||||
err := commands.CreateServerCmd(logger).Execute()
|
||||
if err != nil {
|
||||
logger.Error("execution failed", zap.Error(err))
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
13
crates/gitea_client/Cargo.toml
Normal file
13
crates/gitea_client/Cargo.toml
Normal file
@ -0,0 +1,13 @@
|
||||
[package]
|
||||
name = "gitea_client"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
gitea_raw_client = { path = "../gitea_raw_client" }
|
||||
|
||||
async-trait = { workspace = true }
|
||||
|
||||
reqwest = "0.12.4"
|
1
crates/gitea_client/src/apis/defaults/mod.rs
Normal file
1
crates/gitea_client/src/apis/defaults/mod.rs
Normal file
@ -0,0 +1 @@
|
||||
pub mod repository;
|
1115
crates/gitea_client/src/apis/defaults/repository.rs
Normal file
1115
crates/gitea_client/src/apis/defaults/repository.rs
Normal file
File diff suppressed because it is too large
Load Diff
2
crates/gitea_client/src/apis/mod.rs
Normal file
2
crates/gitea_client/src/apis/mod.rs
Normal file
@ -0,0 +1,2 @@
|
||||
pub mod defaults;
|
||||
pub mod repository;
|
841
crates/gitea_client/src/apis/repository.rs
Normal file
841
crates/gitea_client/src/apis/repository.rs
Normal file
@ -0,0 +1,841 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use async_trait::async_trait;
|
||||
use gitea_raw_client::{apis::Error, models};
|
||||
|
||||
pub use gitea_raw_client::apis::repository_api::*;
|
||||
|
||||
#[async_trait]
|
||||
pub trait Repository {
|
||||
async fn accept_transfer(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
) -> Result<models::Repository, Error<AcceptRepoTransferError>>;
|
||||
async fn create_current_user_repo(
|
||||
&self,
|
||||
body: Option<models::CreateRepoOption>,
|
||||
) -> Result<models::Repository, Error<CreateCurrentUserRepoError>>;
|
||||
async fn create_fork(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
body: Option<models::CreateForkOption>,
|
||||
) -> Result<models::Repository, Error<CreateForkError>>;
|
||||
async fn generate_repo(
|
||||
&self,
|
||||
template_owner: &str,
|
||||
template_repo: &str,
|
||||
body: Option<models::GenerateRepoOption>,
|
||||
) -> Result<models::Repository, Error<GenerateRepoError>>;
|
||||
async fn get_annotated_tag(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
sha: &str,
|
||||
) -> Result<models::AnnotatedTag, Error<GetAnnotatedTagError>>;
|
||||
async fn get_blob(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
sha: &str,
|
||||
) -> Result<models::GitBlobResponse, Error<GetBlobError>>;
|
||||
async fn get_tree(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
sha: &str,
|
||||
recursive: Option<bool>,
|
||||
page: Option<i32>,
|
||||
per_page: Option<i32>,
|
||||
) -> Result<models::GitTreeResponse, Error<GetTreeError>>;
|
||||
async fn list_forks(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
page: Option<i32>,
|
||||
limit: Option<i32>,
|
||||
) -> Result<Vec<models::Repository>, Error<ListForksError>>;
|
||||
async fn reject_transfer(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
) -> Result<models::Repository, Error<RejectRepoTransferError>>;
|
||||
async fn add_collaborator(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
collaborator: &str,
|
||||
body: Option<models::AddCollaboratorOption>,
|
||||
) -> Result<(), Error<RepoAddCollaboratorError>>;
|
||||
async fn add_team(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
team: &str,
|
||||
) -> Result<(), Error<RepoAddTeamError>>;
|
||||
async fn add_topic(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
topic: &str,
|
||||
) -> Result<(), Error<RepoAddTopicError>>;
|
||||
async fn apply_diff_patch(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
body: models::UpdateFileOptions,
|
||||
) -> Result<models::FileResponse, Error<RepoApplyDiffPatchError>>;
|
||||
async fn cancel_scheduled_auto_merge(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
index: i64,
|
||||
) -> Result<(), Error<RepoCancelScheduledAutoMergeError>>;
|
||||
async fn check_collaborator(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
collaborator: &str,
|
||||
) -> Result<(), Error<RepoCheckCollaboratorError>>;
|
||||
async fn check_team(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
team: &str,
|
||||
) -> Result<models::Team, Error<RepoCheckTeamError>>;
|
||||
async fn create_branch(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
body: Option<models::CreateBranchRepoOption>,
|
||||
) -> Result<models::Branch, Error<RepoCreateBranchError>>;
|
||||
async fn create_branch_protection(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
body: Option<models::CreateBranchProtectionOption>,
|
||||
) -> Result<models::BranchProtection, Error<RepoCreateBranchProtectionError>>;
|
||||
async fn create_file(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
filepath: &str,
|
||||
body: models::CreateFileOptions,
|
||||
) -> Result<models::FileResponse, Error<RepoCreateFileError>>;
|
||||
async fn create_hook(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
body: Option<models::CreateHookOption>,
|
||||
) -> Result<models::Hook, Error<RepoCreateHookError>>;
|
||||
async fn create_key(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
body: Option<models::CreateKeyOption>,
|
||||
) -> Result<models::DeployKey, Error<RepoCreateKeyError>>;
|
||||
async fn create_pull_request(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
body: Option<models::CreatePullRequestOption>,
|
||||
) -> Result<models::PullRequest, Error<RepoCreatePullRequestError>>;
|
||||
async fn create_pull_review(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
index: i64,
|
||||
body: models::CreatePullReviewOptions,
|
||||
) -> Result<models::PullReview, Error<RepoCreatePullReviewError>>;
|
||||
async fn create_pull_review_requests(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
index: i64,
|
||||
body: models::PullReviewRequestOptions,
|
||||
) -> Result<Vec<models::PullReview>, Error<RepoCreatePullReviewRequestsError>>;
|
||||
async fn create_release(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
body: Option<models::CreateReleaseOption>,
|
||||
) -> Result<models::Release, Error<RepoCreateReleaseError>>;
|
||||
async fn create_release_attachment(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
id: i64,
|
||||
attachment: std::path::PathBuf,
|
||||
name: Option<&str>,
|
||||
) -> Result<models::Attachment, Error<RepoCreateReleaseAttachmentError>>;
|
||||
async fn create_status(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
sha: &str,
|
||||
body: Option<models::CreateStatusOption>,
|
||||
) -> Result<models::CommitStatus, Error<RepoCreateStatusError>>;
|
||||
async fn create_tag(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
body: Option<models::CreateTagOption>,
|
||||
) -> Result<models::Tag, Error<RepoCreateTagError>>;
|
||||
async fn create_wiki_page(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
body: Option<models::CreateWikiPageOptions>,
|
||||
) -> Result<models::WikiPage, Error<RepoCreateWikiPageError>>;
|
||||
async fn delete(&self, owner: &str, repo: &str) -> Result<(), Error<RepoDeleteError>>;
|
||||
async fn delete_branch(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
branch: &str,
|
||||
) -> Result<(), Error<RepoDeleteBranchError>>;
|
||||
async fn delete_branch_protection(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
name: &str,
|
||||
) -> Result<(), Error<RepoDeleteBranchProtectionError>>;
|
||||
async fn delete_collaborator(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
collaborator: &str,
|
||||
) -> Result<(), Error<RepoDeleteCollaboratorError>>;
|
||||
async fn delete_file(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
filepath: &str,
|
||||
body: models::DeleteFileOptions,
|
||||
) -> Result<models::FileDeleteResponse, Error<RepoDeleteFileError>>;
|
||||
async fn delete_git_hook(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
id: &str,
|
||||
) -> Result<(), Error<RepoDeleteGitHookError>>;
|
||||
async fn delete_hook(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
id: i64,
|
||||
) -> Result<(), Error<RepoDeleteHookError>>;
|
||||
async fn delete_key(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
id: i64,
|
||||
) -> Result<(), Error<RepoDeleteKeyError>>;
|
||||
async fn delete_pull_review(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
index: i64,
|
||||
id: i64,
|
||||
) -> Result<(), Error<RepoDeletePullReviewError>>;
|
||||
async fn delete_pull_review_requests(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
index: i64,
|
||||
body: models::PullReviewRequestOptions,
|
||||
) -> Result<(), Error<RepoDeletePullReviewRequestsError>>;
|
||||
async fn delete_release(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
id: i64,
|
||||
) -> Result<(), Error<RepoDeleteReleaseError>>;
|
||||
async fn delete_release_attachment(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
id: i64,
|
||||
attachment_id: i64,
|
||||
) -> Result<(), Error<RepoDeleteReleaseAttachmentError>>;
|
||||
async fn delete_release_by_tag(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
tag: &str,
|
||||
) -> Result<(), Error<RepoDeleteReleaseByTagError>>;
|
||||
async fn delete_tag(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
tag: &str,
|
||||
) -> Result<(), Error<RepoDeleteTagError>>;
|
||||
async fn delete_team(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
team: &str,
|
||||
) -> Result<(), Error<RepoDeleteTeamError>>;
|
||||
async fn delete_topic(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
topic: &str,
|
||||
) -> Result<(), Error<RepoDeleteTopicError>>;
|
||||
async fn delete_wiki_page(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
page_name: &str,
|
||||
) -> Result<(), Error<RepoDeleteWikiPageError>>;
|
||||
async fn dismiss_pull_review(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
index: i64,
|
||||
id: i64,
|
||||
body: models::DismissPullReviewOptions,
|
||||
) -> Result<models::PullReview, Error<RepoDismissPullReviewError>>;
|
||||
async fn download_commit_diff_or_patch(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
sha: &str,
|
||||
diff_type: &str,
|
||||
) -> Result<String, Error<RepoDownloadCommitDiffOrPatchError>>;
|
||||
async fn download_pull_diff_or_patch(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
index: i64,
|
||||
diff_type: &str,
|
||||
binary: Option<bool>,
|
||||
) -> Result<String, Error<RepoDownloadPullDiffOrPatchError>>;
|
||||
async fn edit(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
body: Option<models::EditRepoOption>,
|
||||
) -> Result<models::Repository, Error<RepoEditError>>;
|
||||
async fn edit_branch_protection(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
name: &str,
|
||||
body: Option<models::EditBranchProtectionOption>,
|
||||
) -> Result<models::BranchProtection, Error<RepoEditBranchProtectionError>>;
|
||||
async fn edit_git_hook(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
id: &str,
|
||||
body: Option<models::EditGitHookOption>,
|
||||
) -> Result<models::GitHook, Error<RepoEditGitHookError>>;
|
||||
async fn edit_hook(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
id: i64,
|
||||
body: Option<models::EditHookOption>,
|
||||
) -> Result<models::Hook, Error<RepoEditHookError>>;
|
||||
async fn edit_pull_request(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
index: i64,
|
||||
body: Option<models::EditPullRequestOption>,
|
||||
) -> Result<models::PullRequest, Error<RepoEditPullRequestError>>;
|
||||
async fn edit_release(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
id: i64,
|
||||
body: Option<models::EditReleaseOption>,
|
||||
) -> Result<models::Release, Error<RepoEditReleaseError>>;
|
||||
async fn edit_release_attachment(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
id: i64,
|
||||
attachment_id: i64,
|
||||
body: Option<models::EditAttachmentOptions>,
|
||||
) -> Result<models::Attachment, Error<RepoEditReleaseAttachmentError>>;
|
||||
async fn edit_wiki_page(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
page_name: &str,
|
||||
body: Option<models::CreateWikiPageOptions>,
|
||||
) -> Result<models::WikiPage, Error<RepoEditWikiPageError>>;
|
||||
async fn get(&self, owner: &str, repo: &str)
|
||||
-> Result<models::Repository, Error<RepoGetError>>;
|
||||
async fn get_all_commits(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
sha: Option<&str>,
|
||||
path: Option<&str>,
|
||||
page: Option<i32>,
|
||||
limit: Option<i32>,
|
||||
) -> Result<Vec<models::Commit>, Error<RepoGetAllCommitsError>>;
|
||||
async fn get_archive(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
archive: &str,
|
||||
) -> Result<(), Error<RepoGetArchiveError>>;
|
||||
async fn get_assignees(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
) -> Result<Vec<models::User>, Error<RepoGetAssigneesError>>;
|
||||
async fn get_branch(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
branch: &str,
|
||||
) -> Result<models::Branch, Error<RepoGetBranchError>>;
|
||||
async fn get_branch_protection(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
name: &str,
|
||||
) -> Result<models::BranchProtection, Error<RepoGetBranchProtectionError>>;
|
||||
async fn get_by_id(&self, id: i64) -> Result<models::Repository, Error<RepoGetByIdError>>;
|
||||
async fn get_combined_status_by_ref(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
r#ref: &str,
|
||||
page: Option<i32>,
|
||||
limit: Option<i32>,
|
||||
) -> Result<models::CombinedStatus, Error<RepoGetCombinedStatusByRefError>>;
|
||||
async fn get_contents(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
filepath: &str,
|
||||
r#ref: Option<&str>,
|
||||
) -> Result<models::ContentsResponse, Error<RepoGetContentsError>>;
|
||||
async fn get_contents_list(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
r#ref: Option<&str>,
|
||||
) -> Result<Vec<models::ContentsResponse>, Error<RepoGetContentsListError>>;
|
||||
async fn get_editor_config(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
filepath: &str,
|
||||
r#ref: Option<&str>,
|
||||
) -> Result<(), Error<RepoGetEditorConfigError>>;
|
||||
async fn get_git_hook(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
id: &str,
|
||||
) -> Result<models::GitHook, Error<RepoGetGitHookError>>;
|
||||
async fn get_hook(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
id: i64,
|
||||
) -> Result<models::Hook, Error<RepoGetHookError>>;
|
||||
async fn get_issue_templates(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
) -> Result<Vec<models::IssueTemplate>, Error<RepoGetIssueTemplatesError>>;
|
||||
async fn get_key(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
id: i64,
|
||||
) -> Result<models::DeployKey, Error<RepoGetKeyError>>;
|
||||
async fn get_languages(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
) -> Result<::std::collections::HashMap<String, i64>, Error<RepoGetLanguagesError>>;
|
||||
async fn get_note(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
sha: &str,
|
||||
) -> Result<models::Note, Error<RepoGetNoteError>>;
|
||||
async fn get_pull_request(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
index: i64,
|
||||
) -> Result<models::PullRequest, Error<RepoGetPullRequestError>>;
|
||||
async fn get_pull_request_commits(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
index: i64,
|
||||
page: Option<i32>,
|
||||
limit: Option<i32>,
|
||||
) -> Result<Vec<models::Commit>, Error<RepoGetPullRequestCommitsError>>;
|
||||
async fn get_pull_review(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
index: i64,
|
||||
id: i64,
|
||||
) -> Result<models::PullReview, Error<RepoGetPullReviewError>>;
|
||||
async fn get_pull_review_comments(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
index: i64,
|
||||
id: i64,
|
||||
) -> Result<Vec<models::PullReviewComment>, Error<RepoGetPullReviewCommentsError>>;
|
||||
async fn get_raw_file(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
filepath: &str,
|
||||
r#ref: Option<&str>,
|
||||
) -> Result<(), Error<RepoGetRawFileError>>;
|
||||
async fn get_raw_file_or_lfs(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
filepath: &str,
|
||||
r#ref: Option<&str>,
|
||||
) -> Result<(), Error<RepoGetRawFileOrLfsError>>;
|
||||
async fn get_release(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
id: i64,
|
||||
) -> Result<models::Release, Error<RepoGetReleaseError>>;
|
||||
async fn get_release_attachment(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
id: i64,
|
||||
attachment_id: i64,
|
||||
) -> Result<models::Attachment, Error<RepoGetReleaseAttachmentError>>;
|
||||
async fn get_release_by_tag(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
tag: &str,
|
||||
) -> Result<models::Release, Error<RepoGetReleaseByTagError>>;
|
||||
async fn get_repo_permissions(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
collaborator: &str,
|
||||
) -> Result<models::RepoCollaboratorPermission, Error<RepoGetRepoPermissionsError>>;
|
||||
async fn get_reviewers(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
) -> Result<Vec<models::User>, Error<RepoGetReviewersError>>;
|
||||
async fn get_single_commit(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
sha: &str,
|
||||
) -> Result<models::Commit, Error<RepoGetSingleCommitError>>;
|
||||
async fn get_tag(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
tag: &str,
|
||||
) -> Result<models::Tag, Error<RepoGetTagError>>;
|
||||
async fn get_wiki_page(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
page_name: &str,
|
||||
) -> Result<models::WikiPage, Error<RepoGetWikiPageError>>;
|
||||
async fn get_wiki_page_revisions(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
page_name: &str,
|
||||
page: Option<i32>,
|
||||
) -> Result<models::WikiCommitList, Error<RepoGetWikiPageRevisionsError>>;
|
||||
async fn get_wiki_pages(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
page: Option<i32>,
|
||||
limit: Option<i32>,
|
||||
) -> Result<Vec<models::WikiPageMetaData>, Error<RepoGetWikiPagesError>>;
|
||||
async fn list_all_git_refs(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
) -> Result<Vec<models::Reference>, Error<RepoListAllGitRefsError>>;
|
||||
async fn list_branch_protection(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
) -> Result<Vec<models::BranchProtection>, Error<RepoListBranchProtectionError>>;
|
||||
async fn list_branches(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
page: Option<i32>,
|
||||
limit: Option<i32>,
|
||||
) -> Result<Vec<models::Branch>, Error<RepoListBranchesError>>;
|
||||
async fn list_collaborators(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
page: Option<i32>,
|
||||
limit: Option<i32>,
|
||||
) -> Result<Vec<models::User>, Error<RepoListCollaboratorsError>>;
|
||||
async fn list_git_hooks(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
) -> Result<Vec<models::GitHook>, Error<RepoListGitHooksError>>;
|
||||
async fn list_git_refs(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
r#ref: &str,
|
||||
) -> Result<Vec<models::Reference>, Error<RepoListGitRefsError>>;
|
||||
async fn list_hooks(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
page: Option<i32>,
|
||||
limit: Option<i32>,
|
||||
) -> Result<Vec<models::Hook>, Error<RepoListHooksError>>;
|
||||
async fn list_keys(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
key_id: Option<i32>,
|
||||
fingerprint: Option<&str>,
|
||||
page: Option<i32>,
|
||||
limit: Option<i32>,
|
||||
) -> Result<Vec<models::DeployKey>, Error<RepoListKeysError>>;
|
||||
async fn list_pull_requests(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
state: Option<&str>,
|
||||
sort: Option<&str>,
|
||||
milestone: Option<i64>,
|
||||
labels: Option<Vec<i64>>,
|
||||
page: Option<i32>,
|
||||
limit: Option<i32>,
|
||||
) -> Result<Vec<models::PullRequest>, Error<RepoListPullRequestsError>>;
|
||||
async fn list_pull_reviews(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
index: i64,
|
||||
page: Option<i32>,
|
||||
limit: Option<i32>,
|
||||
) -> Result<Vec<models::PullReview>, Error<RepoListPullReviewsError>>;
|
||||
async fn list_release_attachments(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
id: i64,
|
||||
) -> Result<Vec<models::Attachment>, Error<RepoListReleaseAttachmentsError>>;
|
||||
async fn list_releases(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
draft: Option<bool>,
|
||||
pre_release: Option<bool>,
|
||||
per_page: Option<i32>,
|
||||
page: Option<i32>,
|
||||
limit: Option<i32>,
|
||||
) -> Result<Vec<models::Release>, Error<RepoListReleasesError>>;
|
||||
async fn list_stargazers(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
page: Option<i32>,
|
||||
limit: Option<i32>,
|
||||
) -> Result<Vec<models::User>, Error<RepoListStargazersError>>;
|
||||
async fn list_statuses(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
sha: &str,
|
||||
sort: Option<&str>,
|
||||
state: Option<&str>,
|
||||
page: Option<i32>,
|
||||
limit: Option<i32>,
|
||||
) -> Result<Vec<models::CommitStatus>, Error<RepoListStatusesError>>;
|
||||
async fn list_statuses_by_ref(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
r#ref: &str,
|
||||
sort: Option<&str>,
|
||||
state: Option<&str>,
|
||||
page: Option<i32>,
|
||||
limit: Option<i32>,
|
||||
) -> Result<Vec<models::CommitStatus>, Error<RepoListStatusesByRefError>>;
|
||||
async fn list_subscribers(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
page: Option<i32>,
|
||||
limit: Option<i32>,
|
||||
) -> Result<Vec<models::User>, Error<RepoListSubscribersError>>;
|
||||
async fn list_tags(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
page: Option<i32>,
|
||||
limit: Option<i32>,
|
||||
) -> Result<Vec<models::Tag>, Error<RepoListTagsError>>;
|
||||
async fn list_teams(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
) -> Result<Vec<models::Team>, Error<RepoListTeamsError>>;
|
||||
async fn list_topics(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
page: Option<i32>,
|
||||
limit: Option<i32>,
|
||||
) -> Result<models::TopicName, Error<RepoListTopicsError>>;
|
||||
async fn merge_pull_request(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
index: i64,
|
||||
body: Option<models::MergePullRequestOption>,
|
||||
) -> Result<(), Error<RepoMergePullRequestError>>;
|
||||
async fn migrate(
|
||||
&self,
|
||||
body: Option<models::MigrateRepoOptions>,
|
||||
) -> Result<models::Repository, Error<RepoMigrateError>>;
|
||||
async fn mirror_sync(&self, owner: &str, repo: &str) -> Result<(), Error<RepoMirrorSyncError>>;
|
||||
async fn pull_request_is_merged(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
index: i64,
|
||||
) -> Result<(), Error<RepoPullRequestIsMergedError>>;
|
||||
async fn search(
|
||||
&self,
|
||||
q: Option<&str>,
|
||||
topic: Option<bool>,
|
||||
include_desc: Option<bool>,
|
||||
uid: Option<i64>,
|
||||
priority_owner_id: Option<i64>,
|
||||
team_id: Option<i64>,
|
||||
starred_by: Option<i64>,
|
||||
private: Option<bool>,
|
||||
is_private: Option<bool>,
|
||||
template: Option<bool>,
|
||||
archived: Option<bool>,
|
||||
mode: Option<&str>,
|
||||
exclusive: Option<bool>,
|
||||
sort: Option<&str>,
|
||||
order: Option<&str>,
|
||||
page: Option<i32>,
|
||||
limit: Option<i32>,
|
||||
) -> Result<models::SearchResults, Error<RepoSearchError>>;
|
||||
async fn signing_key(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
) -> Result<String, Error<RepoSigningKeyError>>;
|
||||
async fn submit_pull_review(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
index: i64,
|
||||
id: i64,
|
||||
body: models::SubmitPullReviewOptions,
|
||||
) -> Result<models::PullReview, Error<RepoSubmitPullReviewError>>;
|
||||
async fn test_hook(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
id: i64,
|
||||
r#ref: Option<&str>,
|
||||
) -> Result<(), Error<RepoTestHookError>>;
|
||||
async fn tracked_times(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
user: Option<&str>,
|
||||
since: Option<String>,
|
||||
before: Option<String>,
|
||||
page: Option<i32>,
|
||||
limit: Option<i32>,
|
||||
) -> Result<Vec<models::TrackedTime>, Error<RepoTrackedTimesError>>;
|
||||
async fn transfer(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
body: models::TransferRepoOption,
|
||||
) -> Result<models::Repository, Error<RepoTransferError>>;
|
||||
async fn un_dismiss_pull_review(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
index: i64,
|
||||
id: i64,
|
||||
) -> Result<models::PullReview, Error<RepoUnDismissPullReviewError>>;
|
||||
async fn update_file(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
filepath: &str,
|
||||
body: models::UpdateFileOptions,
|
||||
) -> Result<models::FileResponse, Error<RepoUpdateFileError>>;
|
||||
async fn update_pull_request(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
index: i64,
|
||||
style: Option<&str>,
|
||||
) -> Result<(), Error<RepoUpdatePullRequestError>>;
|
||||
async fn update_topics(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
body: Option<models::RepoTopicOptions>,
|
||||
) -> Result<(), Error<RepoUpdateTopicsError>>;
|
||||
async fn topic_search(
|
||||
&self,
|
||||
q: &str,
|
||||
page: Option<i32>,
|
||||
limit: Option<i32>,
|
||||
) -> Result<Vec<models::TopicResponse>, Error<TopicSearchError>>;
|
||||
async fn user_current_check_subscription(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
) -> Result<models::WatchInfo, Error<UserCurrentCheckSubscriptionError>>;
|
||||
async fn user_current_delete_subscription(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
) -> Result<(), Error<UserCurrentDeleteSubscriptionError>>;
|
||||
async fn user_current_put_subscription(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
) -> Result<models::WatchInfo, Error<UserCurrentPutSubscriptionError>>;
|
||||
async fn user_tracked_times(
|
||||
&self,
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
user: &str,
|
||||
) -> Result<Vec<models::TrackedTime>, Error<UserTrackedTimesError>>;
|
||||
}
|
||||
|
||||
pub type DynRepository = Arc<dyn Repository + Send + Sync>;
|
66
crates/gitea_client/src/builder.rs
Normal file
66
crates/gitea_client/src/builder.rs
Normal file
@ -0,0 +1,66 @@
|
||||
use gitea_raw_client::apis::configuration::{ApiKey, Configuration};
|
||||
|
||||
use crate::client::GiteaClient;
|
||||
|
||||
pub struct GiteaClientBuilder {
|
||||
conf: Configuration,
|
||||
}
|
||||
|
||||
impl GiteaClientBuilder {
|
||||
pub fn new() -> Self {
|
||||
Self::default()
|
||||
}
|
||||
|
||||
pub fn set_basic_auth(mut self, username: String, password: Option<String>) -> Self {
|
||||
self.conf.basic_auth = Some((username, password));
|
||||
self
|
||||
}
|
||||
|
||||
pub fn set_oauth(mut self, oauth_token: String) -> Self {
|
||||
self.conf.oauth_access_token = Some(oauth_token);
|
||||
self
|
||||
}
|
||||
|
||||
pub fn set_bearer(mut self, bearer_token: String) -> Self {
|
||||
self.conf.bearer_access_token = Some(bearer_token);
|
||||
self
|
||||
}
|
||||
|
||||
pub fn set_api_key(mut self, api_key: String, prefix: Option<String>) -> Self {
|
||||
self.conf.api_key = Some(ApiKey {
|
||||
key: api_key,
|
||||
prefix,
|
||||
});
|
||||
self
|
||||
}
|
||||
|
||||
pub fn set_base_path(mut self, base_path: &String) -> Self {
|
||||
self.conf.base_path = base_path.clone();
|
||||
self
|
||||
}
|
||||
|
||||
pub fn set_client(mut self, client: reqwest::Client) -> Self {
|
||||
self.conf.client = client;
|
||||
self
|
||||
}
|
||||
|
||||
pub fn build(self) -> GiteaClient {
|
||||
GiteaClient::new(self.conf)
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for GiteaClientBuilder {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
conf: Configuration::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Configuration> for GiteaClientBuilder {
|
||||
fn from(conf: Configuration) -> Self {
|
||||
let mut s = Self::default();
|
||||
s.conf = conf;
|
||||
s
|
||||
}
|
||||
}
|
29
crates/gitea_client/src/client.rs
Normal file
29
crates/gitea_client/src/client.rs
Normal file
@ -0,0 +1,29 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use gitea_raw_client::apis::configuration::Configuration;
|
||||
|
||||
use crate::apis::{defaults::repository::DefaultRepository, repository::DynRepository};
|
||||
|
||||
pub struct GiteaClient {
|
||||
repository: DynRepository,
|
||||
}
|
||||
|
||||
impl GiteaClient {
|
||||
pub fn new(config: Configuration) -> Self {
|
||||
let conf = Arc::new(config);
|
||||
|
||||
Self {
|
||||
repository: Arc::new(DefaultRepository::new(conf.clone())),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn repository(&self) -> DynRepository {
|
||||
self.repository.clone()
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Configuration> for GiteaClient {
|
||||
fn from(conf: Configuration) -> Self {
|
||||
Self::new(conf)
|
||||
}
|
||||
}
|
8
crates/gitea_client/src/lib.rs
Normal file
8
crates/gitea_client/src/lib.rs
Normal file
@ -0,0 +1,8 @@
|
||||
pub mod apis;
|
||||
pub mod builder;
|
||||
pub mod client;
|
||||
|
||||
pub mod models {
|
||||
pub use gitea_raw_client::models::*;
|
||||
}
|
||||
|
3
crates/gitea_raw_client/.gitignore
vendored
Normal file
3
crates/gitea_raw_client/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
/target/
|
||||
**/*.rs.bk
|
||||
Cargo.lock
|
23
crates/gitea_raw_client/.openapi-generator-ignore
Normal file
23
crates/gitea_raw_client/.openapi-generator-ignore
Normal file
@ -0,0 +1,23 @@
|
||||
# OpenAPI Generator Ignore
|
||||
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
||||
|
||||
# Use this file to prevent files from being overwritten by the generator.
|
||||
# The patterns follow closely to .gitignore or .dockerignore.
|
||||
|
||||
# As an example, the C# client generator defines ApiClient.cs.
|
||||
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
||||
#ApiClient.cs
|
||||
|
||||
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
||||
#foo/*/qux
|
||||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
||||
|
||||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
||||
#foo/**/qux
|
||||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
||||
|
||||
# You can also negate patterns with an exclamation (!).
|
||||
# For example, you can ignore all files in a docs folder with the file extension .md:
|
||||
#docs/*.md
|
||||
# Then explicitly reverse the ignore rule for a single file:
|
||||
#!docs/README.md
|
335
crates/gitea_raw_client/.openapi-generator/FILES
Normal file
335
crates/gitea_raw_client/.openapi-generator/FILES
Normal file
@ -0,0 +1,335 @@
|
||||
.gitignore
|
||||
.travis.yml
|
||||
Cargo.toml
|
||||
README.md
|
||||
docs/AccessToken.md
|
||||
docs/AddCollaboratorOption.md
|
||||
docs/AddTimeOption.md
|
||||
docs/AdminApi.md
|
||||
docs/AnnotatedTag.md
|
||||
docs/AnnotatedTagObject.md
|
||||
docs/ApiError.md
|
||||
docs/Attachment.md
|
||||
docs/Branch.md
|
||||
docs/BranchProtection.md
|
||||
docs/CombinedStatus.md
|
||||
docs/Comment.md
|
||||
docs/Commit.md
|
||||
docs/CommitAffectedFiles.md
|
||||
docs/CommitDateOptions.md
|
||||
docs/CommitMeta.md
|
||||
docs/CommitStats.md
|
||||
docs/CommitStatus.md
|
||||
docs/CommitUser.md
|
||||
docs/ContentsResponse.md
|
||||
docs/CreateAccessTokenOption.md
|
||||
docs/CreateBranchProtectionOption.md
|
||||
docs/CreateBranchRepoOption.md
|
||||
docs/CreateEmailOption.md
|
||||
docs/CreateFileOptions.md
|
||||
docs/CreateForkOption.md
|
||||
docs/CreateGpgKeyOption.md
|
||||
docs/CreateHookOption.md
|
||||
docs/CreateIssueCommentOption.md
|
||||
docs/CreateIssueOption.md
|
||||
docs/CreateKeyOption.md
|
||||
docs/CreateLabelOption.md
|
||||
docs/CreateMilestoneOption.md
|
||||
docs/CreateOAuth2ApplicationOptions.md
|
||||
docs/CreateOrgOption.md
|
||||
docs/CreatePullRequestOption.md
|
||||
docs/CreatePullReviewComment.md
|
||||
docs/CreatePullReviewOptions.md
|
||||
docs/CreateReleaseOption.md
|
||||
docs/CreateRepoOption.md
|
||||
docs/CreateStatusOption.md
|
||||
docs/CreateTagOption.md
|
||||
docs/CreateTeamOption.md
|
||||
docs/CreateUserOption.md
|
||||
docs/CreateWikiPageOptions.md
|
||||
docs/Cron.md
|
||||
docs/DeleteEmailOption.md
|
||||
docs/DeleteFileOptions.md
|
||||
docs/DeployKey.md
|
||||
docs/DismissPullReviewOptions.md
|
||||
docs/EditAttachmentOptions.md
|
||||
docs/EditBranchProtectionOption.md
|
||||
docs/EditDeadlineOption.md
|
||||
docs/EditGitHookOption.md
|
||||
docs/EditHookOption.md
|
||||
docs/EditIssueCommentOption.md
|
||||
docs/EditIssueOption.md
|
||||
docs/EditLabelOption.md
|
||||
docs/EditMilestoneOption.md
|
||||
docs/EditOrgOption.md
|
||||
docs/EditPullRequestOption.md
|
||||
docs/EditReactionOption.md
|
||||
docs/EditReleaseOption.md
|
||||
docs/EditRepoOption.md
|
||||
docs/EditTeamOption.md
|
||||
docs/EditUserOption.md
|
||||
docs/Email.md
|
||||
docs/ExternalTracker.md
|
||||
docs/ExternalWiki.md
|
||||
docs/FileCommitResponse.md
|
||||
docs/FileDeleteResponse.md
|
||||
docs/FileLinksResponse.md
|
||||
docs/FileResponse.md
|
||||
docs/GeneralApiSettings.md
|
||||
docs/GeneralAttachmentSettings.md
|
||||
docs/GeneralRepoSettings.md
|
||||
docs/GeneralUiSettings.md
|
||||
docs/GenerateRepoOption.md
|
||||
docs/GitBlobResponse.md
|
||||
docs/GitEntry.md
|
||||
docs/GitHook.md
|
||||
docs/GitObject.md
|
||||
docs/GitTreeResponse.md
|
||||
docs/GpgKey.md
|
||||
docs/GpgKeyEmail.md
|
||||
docs/Hook.md
|
||||
docs/Identity.md
|
||||
docs/InternalTracker.md
|
||||
docs/Issue.md
|
||||
docs/IssueApi.md
|
||||
docs/IssueDeadline.md
|
||||
docs/IssueLabelsOption.md
|
||||
docs/IssueTemplate.md
|
||||
docs/Label.md
|
||||
docs/MarkdownOption.md
|
||||
docs/MergePullRequestOption.md
|
||||
docs/MigrateRepoForm.md
|
||||
docs/MigrateRepoOptions.md
|
||||
docs/Milestone.md
|
||||
docs/MiscellaneousApi.md
|
||||
docs/NodeInfo.md
|
||||
docs/NodeInfoServices.md
|
||||
docs/NodeInfoSoftware.md
|
||||
docs/NodeInfoUsage.md
|
||||
docs/NodeInfoUsageUsers.md
|
||||
docs/Note.md
|
||||
docs/NotificationApi.md
|
||||
docs/NotificationCount.md
|
||||
docs/NotificationSubject.md
|
||||
docs/NotificationThread.md
|
||||
docs/OAuth2Application.md
|
||||
docs/Organization.md
|
||||
docs/OrganizationApi.md
|
||||
docs/OrganizationPermissions.md
|
||||
docs/Package.md
|
||||
docs/PackageApi.md
|
||||
docs/PackageFile.md
|
||||
docs/PayloadCommit.md
|
||||
docs/PayloadCommitVerification.md
|
||||
docs/PayloadUser.md
|
||||
docs/Permission.md
|
||||
docs/PrBranchInfo.md
|
||||
docs/PublicKey.md
|
||||
docs/PullRequest.md
|
||||
docs/PullRequestMeta.md
|
||||
docs/PullReview.md
|
||||
docs/PullReviewComment.md
|
||||
docs/PullReviewRequestOptions.md
|
||||
docs/Reaction.md
|
||||
docs/Reference.md
|
||||
docs/Release.md
|
||||
docs/RepoCollaboratorPermission.md
|
||||
docs/RepoCommit.md
|
||||
docs/RepoTopicOptions.md
|
||||
docs/RepoTransfer.md
|
||||
docs/Repository.md
|
||||
docs/RepositoryApi.md
|
||||
docs/RepositoryMeta.md
|
||||
docs/SearchResults.md
|
||||
docs/ServerVersion.md
|
||||
docs/SettingsApi.md
|
||||
docs/StopWatch.md
|
||||
docs/SubmitPullReviewOptions.md
|
||||
docs/Tag.md
|
||||
docs/Team.md
|
||||
docs/TeamSearch200Response.md
|
||||
docs/TimelineComment.md
|
||||
docs/TopicName.md
|
||||
docs/TopicResponse.md
|
||||
docs/TrackedTime.md
|
||||
docs/TransferRepoOption.md
|
||||
docs/UpdateFileOptions.md
|
||||
docs/User.md
|
||||
docs/UserApi.md
|
||||
docs/UserHeatmapData.md
|
||||
docs/UserSearch200Response.md
|
||||
docs/UserSettings.md
|
||||
docs/UserSettingsOptions.md
|
||||
docs/WatchInfo.md
|
||||
docs/WikiCommit.md
|
||||
docs/WikiCommitList.md
|
||||
docs/WikiPage.md
|
||||
docs/WikiPageMetaData.md
|
||||
git_push.sh
|
||||
src/apis/admin_api.rs
|
||||
src/apis/configuration.rs
|
||||
src/apis/issue_api.rs
|
||||
src/apis/miscellaneous_api.rs
|
||||
src/apis/mod.rs
|
||||
src/apis/notification_api.rs
|
||||
src/apis/organization_api.rs
|
||||
src/apis/package_api.rs
|
||||
src/apis/repository_api.rs
|
||||
src/apis/settings_api.rs
|
||||
src/apis/user_api.rs
|
||||
src/lib.rs
|
||||
src/models/access_token.rs
|
||||
src/models/add_collaborator_option.rs
|
||||
src/models/add_time_option.rs
|
||||
src/models/annotated_tag.rs
|
||||
src/models/annotated_tag_object.rs
|
||||
src/models/api_error.rs
|
||||
src/models/attachment.rs
|
||||
src/models/branch.rs
|
||||
src/models/branch_protection.rs
|
||||
src/models/combined_status.rs
|
||||
src/models/comment.rs
|
||||
src/models/commit.rs
|
||||
src/models/commit_affected_files.rs
|
||||
src/models/commit_date_options.rs
|
||||
src/models/commit_meta.rs
|
||||
src/models/commit_stats.rs
|
||||
src/models/commit_status.rs
|
||||
src/models/commit_user.rs
|
||||
src/models/contents_response.rs
|
||||
src/models/create_access_token_option.rs
|
||||
src/models/create_branch_protection_option.rs
|
||||
src/models/create_branch_repo_option.rs
|
||||
src/models/create_email_option.rs
|
||||
src/models/create_file_options.rs
|
||||
src/models/create_fork_option.rs
|
||||
src/models/create_gpg_key_option.rs
|
||||
src/models/create_hook_option.rs
|
||||
src/models/create_issue_comment_option.rs
|
||||
src/models/create_issue_option.rs
|
||||
src/models/create_key_option.rs
|
||||
src/models/create_label_option.rs
|
||||
src/models/create_milestone_option.rs
|
||||
src/models/create_o_auth2_application_options.rs
|
||||
src/models/create_org_option.rs
|
||||
src/models/create_pull_request_option.rs
|
||||
src/models/create_pull_review_comment.rs
|
||||
src/models/create_pull_review_options.rs
|
||||
src/models/create_release_option.rs
|
||||
src/models/create_repo_option.rs
|
||||
src/models/create_status_option.rs
|
||||
src/models/create_tag_option.rs
|
||||
src/models/create_team_option.rs
|
||||
src/models/create_user_option.rs
|
||||
src/models/create_wiki_page_options.rs
|
||||
src/models/cron.rs
|
||||
src/models/delete_email_option.rs
|
||||
src/models/delete_file_options.rs
|
||||
src/models/deploy_key.rs
|
||||
src/models/dismiss_pull_review_options.rs
|
||||
src/models/edit_attachment_options.rs
|
||||
src/models/edit_branch_protection_option.rs
|
||||
src/models/edit_deadline_option.rs
|
||||
src/models/edit_git_hook_option.rs
|
||||
src/models/edit_hook_option.rs
|
||||
src/models/edit_issue_comment_option.rs
|
||||
src/models/edit_issue_option.rs
|
||||
src/models/edit_label_option.rs
|
||||
src/models/edit_milestone_option.rs
|
||||
src/models/edit_org_option.rs
|
||||
src/models/edit_pull_request_option.rs
|
||||
src/models/edit_reaction_option.rs
|
||||
src/models/edit_release_option.rs
|
||||
src/models/edit_repo_option.rs
|
||||
src/models/edit_team_option.rs
|
||||
src/models/edit_user_option.rs
|
||||
src/models/email.rs
|
||||
src/models/external_tracker.rs
|
||||
src/models/external_wiki.rs
|
||||
src/models/file_commit_response.rs
|
||||
src/models/file_delete_response.rs
|
||||
src/models/file_links_response.rs
|
||||
src/models/file_response.rs
|
||||
src/models/general_api_settings.rs
|
||||
src/models/general_attachment_settings.rs
|
||||
src/models/general_repo_settings.rs
|
||||
src/models/general_ui_settings.rs
|
||||
src/models/generate_repo_option.rs
|
||||
src/models/git_blob_response.rs
|
||||
src/models/git_entry.rs
|
||||
src/models/git_hook.rs
|
||||
src/models/git_object.rs
|
||||
src/models/git_tree_response.rs
|
||||
src/models/gpg_key.rs
|
||||
src/models/gpg_key_email.rs
|
||||
src/models/hook.rs
|
||||
src/models/identity.rs
|
||||
src/models/internal_tracker.rs
|
||||
src/models/issue.rs
|
||||
src/models/issue_deadline.rs
|
||||
src/models/issue_labels_option.rs
|
||||
src/models/issue_template.rs
|
||||
src/models/label.rs
|
||||
src/models/markdown_option.rs
|
||||
src/models/merge_pull_request_option.rs
|
||||
src/models/migrate_repo_form.rs
|
||||
src/models/migrate_repo_options.rs
|
||||
src/models/milestone.rs
|
||||
src/models/mod.rs
|
||||
src/models/node_info.rs
|
||||
src/models/node_info_services.rs
|
||||
src/models/node_info_software.rs
|
||||
src/models/node_info_usage.rs
|
||||
src/models/node_info_usage_users.rs
|
||||
src/models/note.rs
|
||||
src/models/notification_count.rs
|
||||
src/models/notification_subject.rs
|
||||
src/models/notification_thread.rs
|
||||
src/models/o_auth2_application.rs
|
||||
src/models/organization.rs
|
||||
src/models/organization_permissions.rs
|
||||
src/models/package.rs
|
||||
src/models/package_file.rs
|
||||
src/models/payload_commit.rs
|
||||
src/models/payload_commit_verification.rs
|
||||
src/models/payload_user.rs
|
||||
src/models/permission.rs
|
||||
src/models/pr_branch_info.rs
|
||||
src/models/public_key.rs
|
||||
src/models/pull_request.rs
|
||||
src/models/pull_request_meta.rs
|
||||
src/models/pull_review.rs
|
||||
src/models/pull_review_comment.rs
|
||||
src/models/pull_review_request_options.rs
|
||||
src/models/reaction.rs
|
||||
src/models/reference.rs
|
||||
src/models/release.rs
|
||||
src/models/repo_collaborator_permission.rs
|
||||
src/models/repo_commit.rs
|
||||
src/models/repo_topic_options.rs
|
||||
src/models/repo_transfer.rs
|
||||
src/models/repository.rs
|
||||
src/models/repository_meta.rs
|
||||
src/models/search_results.rs
|
||||
src/models/server_version.rs
|
||||
src/models/stop_watch.rs
|
||||
src/models/submit_pull_review_options.rs
|
||||
src/models/tag.rs
|
||||
src/models/team.rs
|
||||
src/models/team_search_200_response.rs
|
||||
src/models/timeline_comment.rs
|
||||
src/models/topic_name.rs
|
||||
src/models/topic_response.rs
|
||||
src/models/tracked_time.rs
|
||||
src/models/transfer_repo_option.rs
|
||||
src/models/update_file_options.rs
|
||||
src/models/user.rs
|
||||
src/models/user_heatmap_data.rs
|
||||
src/models/user_search_200_response.rs
|
||||
src/models/user_settings.rs
|
||||
src/models/user_settings_options.rs
|
||||
src/models/watch_info.rs
|
||||
src/models/wiki_commit.rs
|
||||
src/models/wiki_commit_list.rs
|
||||
src/models/wiki_page.rs
|
||||
src/models/wiki_page_meta_data.rs
|
1
crates/gitea_raw_client/.openapi-generator/VERSION
Normal file
1
crates/gitea_raw_client/.openapi-generator/VERSION
Normal file
@ -0,0 +1 @@
|
||||
6.3.0-SNAPSHOT
|
1
crates/gitea_raw_client/.travis.yml
Normal file
1
crates/gitea_raw_client/.travis.yml
Normal file
@ -0,0 +1 @@
|
||||
language: rust
|
17
crates/gitea_raw_client/Cargo.toml
Normal file
17
crates/gitea_raw_client/Cargo.toml
Normal file
@ -0,0 +1,17 @@
|
||||
[package]
|
||||
name = "gitea_raw_client"
|
||||
version = "1.17.3"
|
||||
authors = ["OpenAPI Generator team and contributors"]
|
||||
description = "This documentation describes the Gitea API."
|
||||
license = "MIT"
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
serde = "^1.0"
|
||||
serde_derive = "^1.0"
|
||||
serde_json = "^1.0"
|
||||
url = "^2.5"
|
||||
uuid = { version = "^1.8", features = ["serde"] }
|
||||
[dependencies.reqwest]
|
||||
version = "^0.12"
|
||||
features = ["json", "multipart"]
|
499
crates/gitea_raw_client/README.md
Normal file
499
crates/gitea_raw_client/README.md
Normal file
@ -0,0 +1,499 @@
|
||||
# Rust API client for gitea_raw_client
|
||||
|
||||
This documentation describes the Gitea API.
|
||||
|
||||
|
||||
## Overview
|
||||
|
||||
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client.
|
||||
|
||||
- API version: 1.17.3
|
||||
- Package version: 1.17.3
|
||||
- Build package: `org.openapitools.codegen.languages.RustClientCodegen`
|
||||
|
||||
## Installation
|
||||
|
||||
Put the package under your project folder in a directory named `gitea_raw_client` and add the following to `Cargo.toml` under `[dependencies]`:
|
||||
|
||||
```
|
||||
gitea_raw_client = { path = "./gitea_raw_client" }
|
||||
```
|
||||
|
||||
## Documentation for API Endpoints
|
||||
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Class | Method | HTTP request | Description
|
||||
------------ | ------------- | ------------- | -------------
|
||||
*AdminApi* | [**admin_adopt_repository**](docs/AdminApi.md#admin_adopt_repository) | **POST** /admin/unadopted/{owner}/{repo} | Adopt unadopted files as a repository
|
||||
*AdminApi* | [**admin_create_org**](docs/AdminApi.md#admin_create_org) | **POST** /admin/users/{username}/orgs | Create an organization
|
||||
*AdminApi* | [**admin_create_public_key**](docs/AdminApi.md#admin_create_public_key) | **POST** /admin/users/{username}/keys | Add a public key on behalf of a user
|
||||
*AdminApi* | [**admin_create_repo**](docs/AdminApi.md#admin_create_repo) | **POST** /admin/users/{username}/repos | Create a repository on behalf of a user
|
||||
*AdminApi* | [**admin_create_user**](docs/AdminApi.md#admin_create_user) | **POST** /admin/users | Create a user
|
||||
*AdminApi* | [**admin_cron_list**](docs/AdminApi.md#admin_cron_list) | **GET** /admin/cron | List cron tasks
|
||||
*AdminApi* | [**admin_cron_run**](docs/AdminApi.md#admin_cron_run) | **POST** /admin/cron/{task} | Run cron task
|
||||
*AdminApi* | [**admin_delete_unadopted_repository**](docs/AdminApi.md#admin_delete_unadopted_repository) | **DELETE** /admin/unadopted/{owner}/{repo} | Delete unadopted files
|
||||
*AdminApi* | [**admin_delete_user**](docs/AdminApi.md#admin_delete_user) | **DELETE** /admin/users/{username} | Delete a user
|
||||
*AdminApi* | [**admin_delete_user_public_key**](docs/AdminApi.md#admin_delete_user_public_key) | **DELETE** /admin/users/{username}/keys/{id} | Delete a user's public key
|
||||
*AdminApi* | [**admin_edit_user**](docs/AdminApi.md#admin_edit_user) | **PATCH** /admin/users/{username} | Edit an existing user
|
||||
*AdminApi* | [**admin_get_all_orgs**](docs/AdminApi.md#admin_get_all_orgs) | **GET** /admin/orgs | List all organizations
|
||||
*AdminApi* | [**admin_get_all_users**](docs/AdminApi.md#admin_get_all_users) | **GET** /admin/users | List all users
|
||||
*AdminApi* | [**admin_unadopted_list**](docs/AdminApi.md#admin_unadopted_list) | **GET** /admin/unadopted | List unadopted repositories
|
||||
*IssueApi* | [**issue_add_label**](docs/IssueApi.md#issue_add_label) | **POST** /repos/{owner}/{repo}/issues/{index}/labels | Add a label to an issue
|
||||
*IssueApi* | [**issue_add_subscription**](docs/IssueApi.md#issue_add_subscription) | **PUT** /repos/{owner}/{repo}/issues/{index}/subscriptions/{user} | Subscribe user to issue
|
||||
*IssueApi* | [**issue_add_time**](docs/IssueApi.md#issue_add_time) | **POST** /repos/{owner}/{repo}/issues/{index}/times | Add tracked time to a issue
|
||||
*IssueApi* | [**issue_check_subscription**](docs/IssueApi.md#issue_check_subscription) | **GET** /repos/{owner}/{repo}/issues/{index}/subscriptions/check | Check if user is subscribed to an issue
|
||||
*IssueApi* | [**issue_clear_labels**](docs/IssueApi.md#issue_clear_labels) | **DELETE** /repos/{owner}/{repo}/issues/{index}/labels | Remove all labels from an issue
|
||||
*IssueApi* | [**issue_create_comment**](docs/IssueApi.md#issue_create_comment) | **POST** /repos/{owner}/{repo}/issues/{index}/comments | Add a comment to an issue
|
||||
*IssueApi* | [**issue_create_issue**](docs/IssueApi.md#issue_create_issue) | **POST** /repos/{owner}/{repo}/issues | Create an issue. If using deadline only the date will be taken into account, and time of day ignored.
|
||||
*IssueApi* | [**issue_create_label**](docs/IssueApi.md#issue_create_label) | **POST** /repos/{owner}/{repo}/labels | Create a label
|
||||
*IssueApi* | [**issue_create_milestone**](docs/IssueApi.md#issue_create_milestone) | **POST** /repos/{owner}/{repo}/milestones | Create a milestone
|
||||
*IssueApi* | [**issue_delete**](docs/IssueApi.md#issue_delete) | **DELETE** /repos/{owner}/{repo}/issues/{index} | Delete an issue
|
||||
*IssueApi* | [**issue_delete_comment**](docs/IssueApi.md#issue_delete_comment) | **DELETE** /repos/{owner}/{repo}/issues/comments/{id} | Delete a comment
|
||||
*IssueApi* | [**issue_delete_comment_deprecated**](docs/IssueApi.md#issue_delete_comment_deprecated) | **DELETE** /repos/{owner}/{repo}/issues/{index}/comments/{id} | Delete a comment
|
||||
*IssueApi* | [**issue_delete_comment_reaction**](docs/IssueApi.md#issue_delete_comment_reaction) | **DELETE** /repos/{owner}/{repo}/issues/comments/{id}/reactions | Remove a reaction from a comment of an issue
|
||||
*IssueApi* | [**issue_delete_issue_reaction**](docs/IssueApi.md#issue_delete_issue_reaction) | **DELETE** /repos/{owner}/{repo}/issues/{index}/reactions | Remove a reaction from an issue
|
||||
*IssueApi* | [**issue_delete_label**](docs/IssueApi.md#issue_delete_label) | **DELETE** /repos/{owner}/{repo}/labels/{id} | Delete a label
|
||||
*IssueApi* | [**issue_delete_milestone**](docs/IssueApi.md#issue_delete_milestone) | **DELETE** /repos/{owner}/{repo}/milestones/{id} | Delete a milestone
|
||||
*IssueApi* | [**issue_delete_stop_watch**](docs/IssueApi.md#issue_delete_stop_watch) | **DELETE** /repos/{owner}/{repo}/issues/{index}/stopwatch/delete | Delete an issue's existing stopwatch.
|
||||
*IssueApi* | [**issue_delete_subscription**](docs/IssueApi.md#issue_delete_subscription) | **DELETE** /repos/{owner}/{repo}/issues/{index}/subscriptions/{user} | Unsubscribe user from issue
|
||||
*IssueApi* | [**issue_delete_time**](docs/IssueApi.md#issue_delete_time) | **DELETE** /repos/{owner}/{repo}/issues/{index}/times/{id} | Delete specific tracked time
|
||||
*IssueApi* | [**issue_edit_comment**](docs/IssueApi.md#issue_edit_comment) | **PATCH** /repos/{owner}/{repo}/issues/comments/{id} | Edit a comment
|
||||
*IssueApi* | [**issue_edit_comment_deprecated**](docs/IssueApi.md#issue_edit_comment_deprecated) | **PATCH** /repos/{owner}/{repo}/issues/{index}/comments/{id} | Edit a comment
|
||||
*IssueApi* | [**issue_edit_issue**](docs/IssueApi.md#issue_edit_issue) | **PATCH** /repos/{owner}/{repo}/issues/{index} | Edit an issue. If using deadline only the date will be taken into account, and time of day ignored.
|
||||
*IssueApi* | [**issue_edit_issue_deadline**](docs/IssueApi.md#issue_edit_issue_deadline) | **POST** /repos/{owner}/{repo}/issues/{index}/deadline | Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored.
|
||||
*IssueApi* | [**issue_edit_label**](docs/IssueApi.md#issue_edit_label) | **PATCH** /repos/{owner}/{repo}/labels/{id} | Update a label
|
||||
*IssueApi* | [**issue_edit_milestone**](docs/IssueApi.md#issue_edit_milestone) | **PATCH** /repos/{owner}/{repo}/milestones/{id} | Update a milestone
|
||||
*IssueApi* | [**issue_get_comment**](docs/IssueApi.md#issue_get_comment) | **GET** /repos/{owner}/{repo}/issues/comments/{id} | Get a comment
|
||||
*IssueApi* | [**issue_get_comment_reactions**](docs/IssueApi.md#issue_get_comment_reactions) | **GET** /repos/{owner}/{repo}/issues/comments/{id}/reactions | Get a list of reactions from a comment of an issue
|
||||
*IssueApi* | [**issue_get_comments**](docs/IssueApi.md#issue_get_comments) | **GET** /repos/{owner}/{repo}/issues/{index}/comments | List all comments on an issue
|
||||
*IssueApi* | [**issue_get_comments_and_timeline**](docs/IssueApi.md#issue_get_comments_and_timeline) | **GET** /repos/{owner}/{repo}/issues/{index}/timeline | List all comments and events on an issue
|
||||
*IssueApi* | [**issue_get_issue**](docs/IssueApi.md#issue_get_issue) | **GET** /repos/{owner}/{repo}/issues/{index} | Get an issue
|
||||
*IssueApi* | [**issue_get_issue_reactions**](docs/IssueApi.md#issue_get_issue_reactions) | **GET** /repos/{owner}/{repo}/issues/{index}/reactions | Get a list reactions of an issue
|
||||
*IssueApi* | [**issue_get_label**](docs/IssueApi.md#issue_get_label) | **GET** /repos/{owner}/{repo}/labels/{id} | Get a single label
|
||||
*IssueApi* | [**issue_get_labels**](docs/IssueApi.md#issue_get_labels) | **GET** /repos/{owner}/{repo}/issues/{index}/labels | Get an issue's labels
|
||||
*IssueApi* | [**issue_get_milestone**](docs/IssueApi.md#issue_get_milestone) | **GET** /repos/{owner}/{repo}/milestones/{id} | Get a milestone
|
||||
*IssueApi* | [**issue_get_milestones_list**](docs/IssueApi.md#issue_get_milestones_list) | **GET** /repos/{owner}/{repo}/milestones | Get all of a repository's opened milestones
|
||||
*IssueApi* | [**issue_get_repo_comments**](docs/IssueApi.md#issue_get_repo_comments) | **GET** /repos/{owner}/{repo}/issues/comments | List all comments in a repository
|
||||
*IssueApi* | [**issue_list_issues**](docs/IssueApi.md#issue_list_issues) | **GET** /repos/{owner}/{repo}/issues | List a repository's issues
|
||||
*IssueApi* | [**issue_list_labels**](docs/IssueApi.md#issue_list_labels) | **GET** /repos/{owner}/{repo}/labels | Get all of a repository's labels
|
||||
*IssueApi* | [**issue_post_comment_reaction**](docs/IssueApi.md#issue_post_comment_reaction) | **POST** /repos/{owner}/{repo}/issues/comments/{id}/reactions | Add a reaction to a comment of an issue
|
||||
*IssueApi* | [**issue_post_issue_reaction**](docs/IssueApi.md#issue_post_issue_reaction) | **POST** /repos/{owner}/{repo}/issues/{index}/reactions | Add a reaction to an issue
|
||||
*IssueApi* | [**issue_remove_label**](docs/IssueApi.md#issue_remove_label) | **DELETE** /repos/{owner}/{repo}/issues/{index}/labels/{id} | Remove a label from an issue
|
||||
*IssueApi* | [**issue_replace_labels**](docs/IssueApi.md#issue_replace_labels) | **PUT** /repos/{owner}/{repo}/issues/{index}/labels | Replace an issue's labels
|
||||
*IssueApi* | [**issue_reset_time**](docs/IssueApi.md#issue_reset_time) | **DELETE** /repos/{owner}/{repo}/issues/{index}/times | Reset a tracked time of an issue
|
||||
*IssueApi* | [**issue_search_issues**](docs/IssueApi.md#issue_search_issues) | **GET** /repos/issues/search | Search for issues across the repositories that the user has access to
|
||||
*IssueApi* | [**issue_start_stop_watch**](docs/IssueApi.md#issue_start_stop_watch) | **POST** /repos/{owner}/{repo}/issues/{index}/stopwatch/start | Start stopwatch on an issue.
|
||||
*IssueApi* | [**issue_stop_stop_watch**](docs/IssueApi.md#issue_stop_stop_watch) | **POST** /repos/{owner}/{repo}/issues/{index}/stopwatch/stop | Stop an issue's existing stopwatch.
|
||||
*IssueApi* | [**issue_subscriptions**](docs/IssueApi.md#issue_subscriptions) | **GET** /repos/{owner}/{repo}/issues/{index}/subscriptions | Get users who subscribed on an issue.
|
||||
*IssueApi* | [**issue_tracked_times**](docs/IssueApi.md#issue_tracked_times) | **GET** /repos/{owner}/{repo}/issues/{index}/times | List an issue's tracked times
|
||||
*MiscellaneousApi* | [**get_node_info**](docs/MiscellaneousApi.md#get_node_info) | **GET** /nodeinfo | Returns the nodeinfo of the Gitea application
|
||||
*MiscellaneousApi* | [**get_signing_key**](docs/MiscellaneousApi.md#get_signing_key) | **GET** /signing-key.gpg | Get default signing-key.gpg
|
||||
*MiscellaneousApi* | [**get_version**](docs/MiscellaneousApi.md#get_version) | **GET** /version | Returns the version of the Gitea application
|
||||
*MiscellaneousApi* | [**render_markdown**](docs/MiscellaneousApi.md#render_markdown) | **POST** /markdown | Render a markdown document as HTML
|
||||
*MiscellaneousApi* | [**render_markdown_raw**](docs/MiscellaneousApi.md#render_markdown_raw) | **POST** /markdown/raw | Render raw markdown as HTML
|
||||
*NotificationApi* | [**notify_get_list**](docs/NotificationApi.md#notify_get_list) | **GET** /notifications | List users's notification threads
|
||||
*NotificationApi* | [**notify_get_repo_list**](docs/NotificationApi.md#notify_get_repo_list) | **GET** /repos/{owner}/{repo}/notifications | List users's notification threads on a specific repo
|
||||
*NotificationApi* | [**notify_get_thread**](docs/NotificationApi.md#notify_get_thread) | **GET** /notifications/threads/{id} | Get notification thread by ID
|
||||
*NotificationApi* | [**notify_new_available**](docs/NotificationApi.md#notify_new_available) | **GET** /notifications/new | Check if unread notifications exist
|
||||
*NotificationApi* | [**notify_read_list**](docs/NotificationApi.md#notify_read_list) | **PUT** /notifications | Mark notification threads as read, pinned or unread
|
||||
*NotificationApi* | [**notify_read_repo_list**](docs/NotificationApi.md#notify_read_repo_list) | **PUT** /repos/{owner}/{repo}/notifications | Mark notification threads as read, pinned or unread on a specific repo
|
||||
*NotificationApi* | [**notify_read_thread**](docs/NotificationApi.md#notify_read_thread) | **PATCH** /notifications/threads/{id} | Mark notification thread as read by ID
|
||||
*OrganizationApi* | [**create_org_repo**](docs/OrganizationApi.md#create_org_repo) | **POST** /orgs/{org}/repos | Create a repository in an organization
|
||||
*OrganizationApi* | [**create_org_repo_deprecated**](docs/OrganizationApi.md#create_org_repo_deprecated) | **POST** /org/{org}/repos | Create a repository in an organization
|
||||
*OrganizationApi* | [**org_add_team_member**](docs/OrganizationApi.md#org_add_team_member) | **PUT** /teams/{id}/members/{username} | Add a team member
|
||||
*OrganizationApi* | [**org_add_team_repository**](docs/OrganizationApi.md#org_add_team_repository) | **PUT** /teams/{id}/repos/{org}/{repo} | Add a repository to a team
|
||||
*OrganizationApi* | [**org_conceal_member**](docs/OrganizationApi.md#org_conceal_member) | **DELETE** /orgs/{org}/public_members/{username} | Conceal a user's membership
|
||||
*OrganizationApi* | [**org_create**](docs/OrganizationApi.md#org_create) | **POST** /orgs | Create an organization
|
||||
*OrganizationApi* | [**org_create_hook**](docs/OrganizationApi.md#org_create_hook) | **POST** /orgs/{org}/hooks/ | Create a hook
|
||||
*OrganizationApi* | [**org_create_label**](docs/OrganizationApi.md#org_create_label) | **POST** /orgs/{org}/labels | Create a label for an organization
|
||||
*OrganizationApi* | [**org_create_team**](docs/OrganizationApi.md#org_create_team) | **POST** /orgs/{org}/teams | Create a team
|
||||
*OrganizationApi* | [**org_delete**](docs/OrganizationApi.md#org_delete) | **DELETE** /orgs/{org} | Delete an organization
|
||||
*OrganizationApi* | [**org_delete_hook**](docs/OrganizationApi.md#org_delete_hook) | **DELETE** /orgs/{org}/hooks/{id} | Delete a hook
|
||||
*OrganizationApi* | [**org_delete_label**](docs/OrganizationApi.md#org_delete_label) | **DELETE** /orgs/{org}/labels/{id} | Delete a label
|
||||
*OrganizationApi* | [**org_delete_member**](docs/OrganizationApi.md#org_delete_member) | **DELETE** /orgs/{org}/members/{username} | Remove a member from an organization
|
||||
*OrganizationApi* | [**org_delete_team**](docs/OrganizationApi.md#org_delete_team) | **DELETE** /teams/{id} | Delete a team
|
||||
*OrganizationApi* | [**org_edit**](docs/OrganizationApi.md#org_edit) | **PATCH** /orgs/{org} | Edit an organization
|
||||
*OrganizationApi* | [**org_edit_hook**](docs/OrganizationApi.md#org_edit_hook) | **PATCH** /orgs/{org}/hooks/{id} | Update a hook
|
||||
*OrganizationApi* | [**org_edit_label**](docs/OrganizationApi.md#org_edit_label) | **PATCH** /orgs/{org}/labels/{id} | Update a label
|
||||
*OrganizationApi* | [**org_edit_team**](docs/OrganizationApi.md#org_edit_team) | **PATCH** /teams/{id} | Edit a team
|
||||
*OrganizationApi* | [**org_get**](docs/OrganizationApi.md#org_get) | **GET** /orgs/{org} | Get an organization
|
||||
*OrganizationApi* | [**org_get_all**](docs/OrganizationApi.md#org_get_all) | **GET** /orgs | Get list of organizations
|
||||
*OrganizationApi* | [**org_get_hook**](docs/OrganizationApi.md#org_get_hook) | **GET** /orgs/{org}/hooks/{id} | Get a hook
|
||||
*OrganizationApi* | [**org_get_label**](docs/OrganizationApi.md#org_get_label) | **GET** /orgs/{org}/labels/{id} | Get a single label
|
||||
*OrganizationApi* | [**org_get_team**](docs/OrganizationApi.md#org_get_team) | **GET** /teams/{id} | Get a team
|
||||
*OrganizationApi* | [**org_get_user_permissions**](docs/OrganizationApi.md#org_get_user_permissions) | **GET** /users/{username}/orgs/{org}/permissions | Get user permissions in organization
|
||||
*OrganizationApi* | [**org_is_member**](docs/OrganizationApi.md#org_is_member) | **GET** /orgs/{org}/members/{username} | Check if a user is a member of an organization
|
||||
*OrganizationApi* | [**org_is_public_member**](docs/OrganizationApi.md#org_is_public_member) | **GET** /orgs/{org}/public_members/{username} | Check if a user is a public member of an organization
|
||||
*OrganizationApi* | [**org_list_current_user_orgs**](docs/OrganizationApi.md#org_list_current_user_orgs) | **GET** /user/orgs | List the current user's organizations
|
||||
*OrganizationApi* | [**org_list_hooks**](docs/OrganizationApi.md#org_list_hooks) | **GET** /orgs/{org}/hooks | List an organization's webhooks
|
||||
*OrganizationApi* | [**org_list_labels**](docs/OrganizationApi.md#org_list_labels) | **GET** /orgs/{org}/labels | List an organization's labels
|
||||
*OrganizationApi* | [**org_list_members**](docs/OrganizationApi.md#org_list_members) | **GET** /orgs/{org}/members | List an organization's members
|
||||
*OrganizationApi* | [**org_list_public_members**](docs/OrganizationApi.md#org_list_public_members) | **GET** /orgs/{org}/public_members | List an organization's public members
|
||||
*OrganizationApi* | [**org_list_repos**](docs/OrganizationApi.md#org_list_repos) | **GET** /orgs/{org}/repos | List an organization's repos
|
||||
*OrganizationApi* | [**org_list_team_member**](docs/OrganizationApi.md#org_list_team_member) | **GET** /teams/{id}/members/{username} | List a particular member of team
|
||||
*OrganizationApi* | [**org_list_team_members**](docs/OrganizationApi.md#org_list_team_members) | **GET** /teams/{id}/members | List a team's members
|
||||
*OrganizationApi* | [**org_list_team_repo**](docs/OrganizationApi.md#org_list_team_repo) | **GET** /teams/{id}/repos/{org}/{repo} | List a particular repo of team
|
||||
*OrganizationApi* | [**org_list_team_repos**](docs/OrganizationApi.md#org_list_team_repos) | **GET** /teams/{id}/repos | List a team's repos
|
||||
*OrganizationApi* | [**org_list_teams**](docs/OrganizationApi.md#org_list_teams) | **GET** /orgs/{org}/teams | List an organization's teams
|
||||
*OrganizationApi* | [**org_list_user_orgs**](docs/OrganizationApi.md#org_list_user_orgs) | **GET** /users/{username}/orgs | List a user's organizations
|
||||
*OrganizationApi* | [**org_publicize_member**](docs/OrganizationApi.md#org_publicize_member) | **PUT** /orgs/{org}/public_members/{username} | Publicize a user's membership
|
||||
*OrganizationApi* | [**org_remove_team_member**](docs/OrganizationApi.md#org_remove_team_member) | **DELETE** /teams/{id}/members/{username} | Remove a team member
|
||||
*OrganizationApi* | [**org_remove_team_repository**](docs/OrganizationApi.md#org_remove_team_repository) | **DELETE** /teams/{id}/repos/{org}/{repo} | Remove a repository from a team
|
||||
*OrganizationApi* | [**team_search**](docs/OrganizationApi.md#team_search) | **GET** /orgs/{org}/teams/search | Search for teams within an organization
|
||||
*PackageApi* | [**delete_package**](docs/PackageApi.md#delete_package) | **DELETE** /packages/{owner}/{type}/{name}/{version} | Delete a package
|
||||
*PackageApi* | [**get_package**](docs/PackageApi.md#get_package) | **GET** /packages/{owner}/{type}/{name}/{version} | Gets a package
|
||||
*PackageApi* | [**list_package_files**](docs/PackageApi.md#list_package_files) | **GET** /packages/{owner}/{type}/{name}/{version}/files | Gets all files of a package
|
||||
*PackageApi* | [**list_packages**](docs/PackageApi.md#list_packages) | **GET** /packages/{owner} | Gets all packages of an owner
|
||||
*RepositoryApi* | [**accept_repo_transfer**](docs/RepositoryApi.md#accept_repo_transfer) | **POST** /repos/{owner}/{repo}/transfer/accept | Accept a repo transfer
|
||||
*RepositoryApi* | [**create_current_user_repo**](docs/RepositoryApi.md#create_current_user_repo) | **POST** /user/repos | Create a repository
|
||||
*RepositoryApi* | [**create_fork**](docs/RepositoryApi.md#create_fork) | **POST** /repos/{owner}/{repo}/forks | Fork a repository
|
||||
*RepositoryApi* | [**generate_repo**](docs/RepositoryApi.md#generate_repo) | **POST** /repos/{template_owner}/{template_repo}/generate | Create a repository using a template
|
||||
*RepositoryApi* | [**get_annotated_tag**](docs/RepositoryApi.md#get_annotated_tag) | **GET** /repos/{owner}/{repo}/git/tags/{sha} | Gets the tag object of an annotated tag (not lightweight tags)
|
||||
*RepositoryApi* | [**get_blob**](docs/RepositoryApi.md#get_blob) | **GET** /repos/{owner}/{repo}/git/blobs/{sha} | Gets the blob of a repository.
|
||||
*RepositoryApi* | [**get_tree**](docs/RepositoryApi.md#get_tree) | **GET** /repos/{owner}/{repo}/git/trees/{sha} | Gets the tree of a repository.
|
||||
*RepositoryApi* | [**list_forks**](docs/RepositoryApi.md#list_forks) | **GET** /repos/{owner}/{repo}/forks | List a repository's forks
|
||||
*RepositoryApi* | [**reject_repo_transfer**](docs/RepositoryApi.md#reject_repo_transfer) | **POST** /repos/{owner}/{repo}/transfer/reject | Reject a repo transfer
|
||||
*RepositoryApi* | [**repo_add_collaborator**](docs/RepositoryApi.md#repo_add_collaborator) | **PUT** /repos/{owner}/{repo}/collaborators/{collaborator} | Add a collaborator to a repository
|
||||
*RepositoryApi* | [**repo_add_team**](docs/RepositoryApi.md#repo_add_team) | **PUT** /repos/{owner}/{repo}/teams/{team} | Add a team to a repository
|
||||
*RepositoryApi* | [**repo_add_topic**](docs/RepositoryApi.md#repo_add_topic) | **PUT** /repos/{owner}/{repo}/topics/{topic} | Add a topic to a repository
|
||||
*RepositoryApi* | [**repo_apply_diff_patch**](docs/RepositoryApi.md#repo_apply_diff_patch) | **POST** /repos/{owner}/{repo}/diffpatch | Apply diff patch to repository
|
||||
*RepositoryApi* | [**repo_cancel_scheduled_auto_merge**](docs/RepositoryApi.md#repo_cancel_scheduled_auto_merge) | **DELETE** /repos/{owner}/{repo}/pulls/{index}/merge | Cancel the scheduled auto merge for the given pull request
|
||||
*RepositoryApi* | [**repo_check_collaborator**](docs/RepositoryApi.md#repo_check_collaborator) | **GET** /repos/{owner}/{repo}/collaborators/{collaborator} | Check if a user is a collaborator of a repository
|
||||
*RepositoryApi* | [**repo_check_team**](docs/RepositoryApi.md#repo_check_team) | **GET** /repos/{owner}/{repo}/teams/{team} | Check if a team is assigned to a repository
|
||||
*RepositoryApi* | [**repo_create_branch**](docs/RepositoryApi.md#repo_create_branch) | **POST** /repos/{owner}/{repo}/branches | Create a branch
|
||||
*RepositoryApi* | [**repo_create_branch_protection**](docs/RepositoryApi.md#repo_create_branch_protection) | **POST** /repos/{owner}/{repo}/branch_protections | Create a branch protections for a repository
|
||||
*RepositoryApi* | [**repo_create_file**](docs/RepositoryApi.md#repo_create_file) | **POST** /repos/{owner}/{repo}/contents/{filepath} | Create a file in a repository
|
||||
*RepositoryApi* | [**repo_create_hook**](docs/RepositoryApi.md#repo_create_hook) | **POST** /repos/{owner}/{repo}/hooks | Create a hook
|
||||
*RepositoryApi* | [**repo_create_key**](docs/RepositoryApi.md#repo_create_key) | **POST** /repos/{owner}/{repo}/keys | Add a key to a repository
|
||||
*RepositoryApi* | [**repo_create_pull_request**](docs/RepositoryApi.md#repo_create_pull_request) | **POST** /repos/{owner}/{repo}/pulls | Create a pull request
|
||||
*RepositoryApi* | [**repo_create_pull_review**](docs/RepositoryApi.md#repo_create_pull_review) | **POST** /repos/{owner}/{repo}/pulls/{index}/reviews | Create a review to an pull request
|
||||
*RepositoryApi* | [**repo_create_pull_review_requests**](docs/RepositoryApi.md#repo_create_pull_review_requests) | **POST** /repos/{owner}/{repo}/pulls/{index}/requested_reviewers | create review requests for a pull request
|
||||
*RepositoryApi* | [**repo_create_release**](docs/RepositoryApi.md#repo_create_release) | **POST** /repos/{owner}/{repo}/releases | Create a release
|
||||
*RepositoryApi* | [**repo_create_release_attachment**](docs/RepositoryApi.md#repo_create_release_attachment) | **POST** /repos/{owner}/{repo}/releases/{id}/assets | Create a release attachment
|
||||
*RepositoryApi* | [**repo_create_status**](docs/RepositoryApi.md#repo_create_status) | **POST** /repos/{owner}/{repo}/statuses/{sha} | Create a commit status
|
||||
*RepositoryApi* | [**repo_create_tag**](docs/RepositoryApi.md#repo_create_tag) | **POST** /repos/{owner}/{repo}/tags | Create a new git tag in a repository
|
||||
*RepositoryApi* | [**repo_create_wiki_page**](docs/RepositoryApi.md#repo_create_wiki_page) | **POST** /repos/{owner}/{repo}/wiki/new | Create a wiki page
|
||||
*RepositoryApi* | [**repo_delete**](docs/RepositoryApi.md#repo_delete) | **DELETE** /repos/{owner}/{repo} | Delete a repository
|
||||
*RepositoryApi* | [**repo_delete_branch**](docs/RepositoryApi.md#repo_delete_branch) | **DELETE** /repos/{owner}/{repo}/branches/{branch} | Delete a specific branch from a repository
|
||||
*RepositoryApi* | [**repo_delete_branch_protection**](docs/RepositoryApi.md#repo_delete_branch_protection) | **DELETE** /repos/{owner}/{repo}/branch_protections/{name} | Delete a specific branch protection for the repository
|
||||
*RepositoryApi* | [**repo_delete_collaborator**](docs/RepositoryApi.md#repo_delete_collaborator) | **DELETE** /repos/{owner}/{repo}/collaborators/{collaborator} | Delete a collaborator from a repository
|
||||
*RepositoryApi* | [**repo_delete_file**](docs/RepositoryApi.md#repo_delete_file) | **DELETE** /repos/{owner}/{repo}/contents/{filepath} | Delete a file in a repository
|
||||
*RepositoryApi* | [**repo_delete_git_hook**](docs/RepositoryApi.md#repo_delete_git_hook) | **DELETE** /repos/{owner}/{repo}/hooks/git/{id} | Delete a Git hook in a repository
|
||||
*RepositoryApi* | [**repo_delete_hook**](docs/RepositoryApi.md#repo_delete_hook) | **DELETE** /repos/{owner}/{repo}/hooks/{id} | Delete a hook in a repository
|
||||
*RepositoryApi* | [**repo_delete_key**](docs/RepositoryApi.md#repo_delete_key) | **DELETE** /repos/{owner}/{repo}/keys/{id} | Delete a key from a repository
|
||||
*RepositoryApi* | [**repo_delete_pull_review**](docs/RepositoryApi.md#repo_delete_pull_review) | **DELETE** /repos/{owner}/{repo}/pulls/{index}/reviews/{id} | Delete a specific review from a pull request
|
||||
*RepositoryApi* | [**repo_delete_pull_review_requests**](docs/RepositoryApi.md#repo_delete_pull_review_requests) | **DELETE** /repos/{owner}/{repo}/pulls/{index}/requested_reviewers | cancel review requests for a pull request
|
||||
*RepositoryApi* | [**repo_delete_release**](docs/RepositoryApi.md#repo_delete_release) | **DELETE** /repos/{owner}/{repo}/releases/{id} | Delete a release
|
||||
*RepositoryApi* | [**repo_delete_release_attachment**](docs/RepositoryApi.md#repo_delete_release_attachment) | **DELETE** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Delete a release attachment
|
||||
*RepositoryApi* | [**repo_delete_release_by_tag**](docs/RepositoryApi.md#repo_delete_release_by_tag) | **DELETE** /repos/{owner}/{repo}/releases/tags/{tag} | Delete a release by tag name
|
||||
*RepositoryApi* | [**repo_delete_tag**](docs/RepositoryApi.md#repo_delete_tag) | **DELETE** /repos/{owner}/{repo}/tags/{tag} | Delete a repository's tag by name
|
||||
*RepositoryApi* | [**repo_delete_team**](docs/RepositoryApi.md#repo_delete_team) | **DELETE** /repos/{owner}/{repo}/teams/{team} | Delete a team from a repository
|
||||
*RepositoryApi* | [**repo_delete_topic**](docs/RepositoryApi.md#repo_delete_topic) | **DELETE** /repos/{owner}/{repo}/topics/{topic} | Delete a topic from a repository
|
||||
*RepositoryApi* | [**repo_delete_wiki_page**](docs/RepositoryApi.md#repo_delete_wiki_page) | **DELETE** /repos/{owner}/{repo}/wiki/page/{pageName} | Delete a wiki page
|
||||
*RepositoryApi* | [**repo_dismiss_pull_review**](docs/RepositoryApi.md#repo_dismiss_pull_review) | **POST** /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/dismissals | Dismiss a review for a pull request
|
||||
*RepositoryApi* | [**repo_download_commit_diff_or_patch**](docs/RepositoryApi.md#repo_download_commit_diff_or_patch) | **GET** /repos/{owner}/{repo}/git/commits/{sha}.{diffType} | Get a commit's diff or patch
|
||||
*RepositoryApi* | [**repo_download_pull_diff_or_patch**](docs/RepositoryApi.md#repo_download_pull_diff_or_patch) | **GET** /repos/{owner}/{repo}/pulls/{index}.{diffType} | Get a pull request diff or patch
|
||||
*RepositoryApi* | [**repo_edit**](docs/RepositoryApi.md#repo_edit) | **PATCH** /repos/{owner}/{repo} | Edit a repository's properties. Only fields that are set will be changed.
|
||||
*RepositoryApi* | [**repo_edit_branch_protection**](docs/RepositoryApi.md#repo_edit_branch_protection) | **PATCH** /repos/{owner}/{repo}/branch_protections/{name} | Edit a branch protections for a repository. Only fields that are set will be changed
|
||||
*RepositoryApi* | [**repo_edit_git_hook**](docs/RepositoryApi.md#repo_edit_git_hook) | **PATCH** /repos/{owner}/{repo}/hooks/git/{id} | Edit a Git hook in a repository
|
||||
*RepositoryApi* | [**repo_edit_hook**](docs/RepositoryApi.md#repo_edit_hook) | **PATCH** /repos/{owner}/{repo}/hooks/{id} | Edit a hook in a repository
|
||||
*RepositoryApi* | [**repo_edit_pull_request**](docs/RepositoryApi.md#repo_edit_pull_request) | **PATCH** /repos/{owner}/{repo}/pulls/{index} | Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.
|
||||
*RepositoryApi* | [**repo_edit_release**](docs/RepositoryApi.md#repo_edit_release) | **PATCH** /repos/{owner}/{repo}/releases/{id} | Update a release
|
||||
*RepositoryApi* | [**repo_edit_release_attachment**](docs/RepositoryApi.md#repo_edit_release_attachment) | **PATCH** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Edit a release attachment
|
||||
*RepositoryApi* | [**repo_edit_wiki_page**](docs/RepositoryApi.md#repo_edit_wiki_page) | **PATCH** /repos/{owner}/{repo}/wiki/page/{pageName} | Edit a wiki page
|
||||
*RepositoryApi* | [**repo_get**](docs/RepositoryApi.md#repo_get) | **GET** /repos/{owner}/{repo} | Get a repository
|
||||
*RepositoryApi* | [**repo_get_all_commits**](docs/RepositoryApi.md#repo_get_all_commits) | **GET** /repos/{owner}/{repo}/commits | Get a list of all commits from a repository
|
||||
*RepositoryApi* | [**repo_get_archive**](docs/RepositoryApi.md#repo_get_archive) | **GET** /repos/{owner}/{repo}/archive/{archive} | Get an archive of a repository
|
||||
*RepositoryApi* | [**repo_get_assignees**](docs/RepositoryApi.md#repo_get_assignees) | **GET** /repos/{owner}/{repo}/assignees | Return all users that have write access and can be assigned to issues
|
||||
*RepositoryApi* | [**repo_get_branch**](docs/RepositoryApi.md#repo_get_branch) | **GET** /repos/{owner}/{repo}/branches/{branch} | Retrieve a specific branch from a repository, including its effective branch protection
|
||||
*RepositoryApi* | [**repo_get_branch_protection**](docs/RepositoryApi.md#repo_get_branch_protection) | **GET** /repos/{owner}/{repo}/branch_protections/{name} | Get a specific branch protection for the repository
|
||||
*RepositoryApi* | [**repo_get_by_id**](docs/RepositoryApi.md#repo_get_by_id) | **GET** /repositories/{id} | Get a repository by id
|
||||
*RepositoryApi* | [**repo_get_combined_status_by_ref**](docs/RepositoryApi.md#repo_get_combined_status_by_ref) | **GET** /repos/{owner}/{repo}/commits/{ref}/status | Get a commit's combined status, by branch/tag/commit reference
|
||||
*RepositoryApi* | [**repo_get_contents**](docs/RepositoryApi.md#repo_get_contents) | **GET** /repos/{owner}/{repo}/contents/{filepath} | Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir
|
||||
*RepositoryApi* | [**repo_get_contents_list**](docs/RepositoryApi.md#repo_get_contents_list) | **GET** /repos/{owner}/{repo}/contents | Gets the metadata of all the entries of the root dir
|
||||
*RepositoryApi* | [**repo_get_editor_config**](docs/RepositoryApi.md#repo_get_editor_config) | **GET** /repos/{owner}/{repo}/editorconfig/{filepath} | Get the EditorConfig definitions of a file in a repository
|
||||
*RepositoryApi* | [**repo_get_git_hook**](docs/RepositoryApi.md#repo_get_git_hook) | **GET** /repos/{owner}/{repo}/hooks/git/{id} | Get a Git hook
|
||||
*RepositoryApi* | [**repo_get_hook**](docs/RepositoryApi.md#repo_get_hook) | **GET** /repos/{owner}/{repo}/hooks/{id} | Get a hook
|
||||
*RepositoryApi* | [**repo_get_issue_templates**](docs/RepositoryApi.md#repo_get_issue_templates) | **GET** /repos/{owner}/{repo}/issue_templates | Get available issue templates for a repository
|
||||
*RepositoryApi* | [**repo_get_key**](docs/RepositoryApi.md#repo_get_key) | **GET** /repos/{owner}/{repo}/keys/{id} | Get a repository's key by id
|
||||
*RepositoryApi* | [**repo_get_languages**](docs/RepositoryApi.md#repo_get_languages) | **GET** /repos/{owner}/{repo}/languages | Get languages and number of bytes of code written
|
||||
*RepositoryApi* | [**repo_get_note**](docs/RepositoryApi.md#repo_get_note) | **GET** /repos/{owner}/{repo}/git/notes/{sha} | Get a note corresponding to a single commit from a repository
|
||||
*RepositoryApi* | [**repo_get_pull_request**](docs/RepositoryApi.md#repo_get_pull_request) | **GET** /repos/{owner}/{repo}/pulls/{index} | Get a pull request
|
||||
*RepositoryApi* | [**repo_get_pull_request_commits**](docs/RepositoryApi.md#repo_get_pull_request_commits) | **GET** /repos/{owner}/{repo}/pulls/{index}/commits | Get commits for a pull request
|
||||
*RepositoryApi* | [**repo_get_pull_review**](docs/RepositoryApi.md#repo_get_pull_review) | **GET** /repos/{owner}/{repo}/pulls/{index}/reviews/{id} | Get a specific review for a pull request
|
||||
*RepositoryApi* | [**repo_get_pull_review_comments**](docs/RepositoryApi.md#repo_get_pull_review_comments) | **GET** /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments | Get a specific review for a pull request
|
||||
*RepositoryApi* | [**repo_get_raw_file**](docs/RepositoryApi.md#repo_get_raw_file) | **GET** /repos/{owner}/{repo}/raw/{filepath} | Get a file from a repository
|
||||
*RepositoryApi* | [**repo_get_raw_file_or_lfs**](docs/RepositoryApi.md#repo_get_raw_file_or_lfs) | **GET** /repos/{owner}/{repo}/media/{filepath} | Get a file or it's LFS object from a repository
|
||||
*RepositoryApi* | [**repo_get_release**](docs/RepositoryApi.md#repo_get_release) | **GET** /repos/{owner}/{repo}/releases/{id} | Get a release
|
||||
*RepositoryApi* | [**repo_get_release_attachment**](docs/RepositoryApi.md#repo_get_release_attachment) | **GET** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Get a release attachment
|
||||
*RepositoryApi* | [**repo_get_release_by_tag**](docs/RepositoryApi.md#repo_get_release_by_tag) | **GET** /repos/{owner}/{repo}/releases/tags/{tag} | Get a release by tag name
|
||||
*RepositoryApi* | [**repo_get_repo_permissions**](docs/RepositoryApi.md#repo_get_repo_permissions) | **GET** /repos/{owner}/{repo}/collaborators/{collaborator}/permission | Get repository permissions for a user
|
||||
*RepositoryApi* | [**repo_get_reviewers**](docs/RepositoryApi.md#repo_get_reviewers) | **GET** /repos/{owner}/{repo}/reviewers | Return all users that can be requested to review in this repo
|
||||
*RepositoryApi* | [**repo_get_single_commit**](docs/RepositoryApi.md#repo_get_single_commit) | **GET** /repos/{owner}/{repo}/git/commits/{sha} | Get a single commit from a repository
|
||||
*RepositoryApi* | [**repo_get_tag**](docs/RepositoryApi.md#repo_get_tag) | **GET** /repos/{owner}/{repo}/tags/{tag} | Get the tag of a repository by tag name
|
||||
*RepositoryApi* | [**repo_get_wiki_page**](docs/RepositoryApi.md#repo_get_wiki_page) | **GET** /repos/{owner}/{repo}/wiki/page/{pageName} | Get a wiki page
|
||||
*RepositoryApi* | [**repo_get_wiki_page_revisions**](docs/RepositoryApi.md#repo_get_wiki_page_revisions) | **GET** /repos/{owner}/{repo}/wiki/revisions/{pageName} | Get revisions of a wiki page
|
||||
*RepositoryApi* | [**repo_get_wiki_pages**](docs/RepositoryApi.md#repo_get_wiki_pages) | **GET** /repos/{owner}/{repo}/wiki/pages | Get all wiki pages
|
||||
*RepositoryApi* | [**repo_list_all_git_refs**](docs/RepositoryApi.md#repo_list_all_git_refs) | **GET** /repos/{owner}/{repo}/git/refs | Get specified ref or filtered repository's refs
|
||||
*RepositoryApi* | [**repo_list_branch_protection**](docs/RepositoryApi.md#repo_list_branch_protection) | **GET** /repos/{owner}/{repo}/branch_protections | List branch protections for a repository
|
||||
*RepositoryApi* | [**repo_list_branches**](docs/RepositoryApi.md#repo_list_branches) | **GET** /repos/{owner}/{repo}/branches | List a repository's branches
|
||||
*RepositoryApi* | [**repo_list_collaborators**](docs/RepositoryApi.md#repo_list_collaborators) | **GET** /repos/{owner}/{repo}/collaborators | List a repository's collaborators
|
||||
*RepositoryApi* | [**repo_list_git_hooks**](docs/RepositoryApi.md#repo_list_git_hooks) | **GET** /repos/{owner}/{repo}/hooks/git | List the Git hooks in a repository
|
||||
*RepositoryApi* | [**repo_list_git_refs**](docs/RepositoryApi.md#repo_list_git_refs) | **GET** /repos/{owner}/{repo}/git/refs/{ref} | Get specified ref or filtered repository's refs
|
||||
*RepositoryApi* | [**repo_list_hooks**](docs/RepositoryApi.md#repo_list_hooks) | **GET** /repos/{owner}/{repo}/hooks | List the hooks in a repository
|
||||
*RepositoryApi* | [**repo_list_keys**](docs/RepositoryApi.md#repo_list_keys) | **GET** /repos/{owner}/{repo}/keys | List a repository's keys
|
||||
*RepositoryApi* | [**repo_list_pull_requests**](docs/RepositoryApi.md#repo_list_pull_requests) | **GET** /repos/{owner}/{repo}/pulls | List a repo's pull requests
|
||||
*RepositoryApi* | [**repo_list_pull_reviews**](docs/RepositoryApi.md#repo_list_pull_reviews) | **GET** /repos/{owner}/{repo}/pulls/{index}/reviews | List all reviews for a pull request
|
||||
*RepositoryApi* | [**repo_list_release_attachments**](docs/RepositoryApi.md#repo_list_release_attachments) | **GET** /repos/{owner}/{repo}/releases/{id}/assets | List release's attachments
|
||||
*RepositoryApi* | [**repo_list_releases**](docs/RepositoryApi.md#repo_list_releases) | **GET** /repos/{owner}/{repo}/releases | List a repo's releases
|
||||
*RepositoryApi* | [**repo_list_stargazers**](docs/RepositoryApi.md#repo_list_stargazers) | **GET** /repos/{owner}/{repo}/stargazers | List a repo's stargazers
|
||||
*RepositoryApi* | [**repo_list_statuses**](docs/RepositoryApi.md#repo_list_statuses) | **GET** /repos/{owner}/{repo}/statuses/{sha} | Get a commit's statuses
|
||||
*RepositoryApi* | [**repo_list_statuses_by_ref**](docs/RepositoryApi.md#repo_list_statuses_by_ref) | **GET** /repos/{owner}/{repo}/commits/{ref}/statuses | Get a commit's statuses, by branch/tag/commit reference
|
||||
*RepositoryApi* | [**repo_list_subscribers**](docs/RepositoryApi.md#repo_list_subscribers) | **GET** /repos/{owner}/{repo}/subscribers | List a repo's watchers
|
||||
*RepositoryApi* | [**repo_list_tags**](docs/RepositoryApi.md#repo_list_tags) | **GET** /repos/{owner}/{repo}/tags | List a repository's tags
|
||||
*RepositoryApi* | [**repo_list_teams**](docs/RepositoryApi.md#repo_list_teams) | **GET** /repos/{owner}/{repo}/teams | List a repository's teams
|
||||
*RepositoryApi* | [**repo_list_topics**](docs/RepositoryApi.md#repo_list_topics) | **GET** /repos/{owner}/{repo}/topics | Get list of topics that a repository has
|
||||
*RepositoryApi* | [**repo_merge_pull_request**](docs/RepositoryApi.md#repo_merge_pull_request) | **POST** /repos/{owner}/{repo}/pulls/{index}/merge | Merge a pull request
|
||||
*RepositoryApi* | [**repo_migrate**](docs/RepositoryApi.md#repo_migrate) | **POST** /repos/migrate | Migrate a remote git repository
|
||||
*RepositoryApi* | [**repo_mirror_sync**](docs/RepositoryApi.md#repo_mirror_sync) | **POST** /repos/{owner}/{repo}/mirror-sync | Sync a mirrored repository
|
||||
*RepositoryApi* | [**repo_pull_request_is_merged**](docs/RepositoryApi.md#repo_pull_request_is_merged) | **GET** /repos/{owner}/{repo}/pulls/{index}/merge | Check if a pull request has been merged
|
||||
*RepositoryApi* | [**repo_search**](docs/RepositoryApi.md#repo_search) | **GET** /repos/search | Search for repositories
|
||||
*RepositoryApi* | [**repo_signing_key**](docs/RepositoryApi.md#repo_signing_key) | **GET** /repos/{owner}/{repo}/signing-key.gpg | Get signing-key.gpg for given repository
|
||||
*RepositoryApi* | [**repo_submit_pull_review**](docs/RepositoryApi.md#repo_submit_pull_review) | **POST** /repos/{owner}/{repo}/pulls/{index}/reviews/{id} | Submit a pending review to an pull request
|
||||
*RepositoryApi* | [**repo_test_hook**](docs/RepositoryApi.md#repo_test_hook) | **POST** /repos/{owner}/{repo}/hooks/{id}/tests | Test a push webhook
|
||||
*RepositoryApi* | [**repo_tracked_times**](docs/RepositoryApi.md#repo_tracked_times) | **GET** /repos/{owner}/{repo}/times | List a repo's tracked times
|
||||
*RepositoryApi* | [**repo_transfer**](docs/RepositoryApi.md#repo_transfer) | **POST** /repos/{owner}/{repo}/transfer | Transfer a repo ownership
|
||||
*RepositoryApi* | [**repo_un_dismiss_pull_review**](docs/RepositoryApi.md#repo_un_dismiss_pull_review) | **POST** /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/undismissals | Cancel to dismiss a review for a pull request
|
||||
*RepositoryApi* | [**repo_update_file**](docs/RepositoryApi.md#repo_update_file) | **PUT** /repos/{owner}/{repo}/contents/{filepath} | Update a file in a repository
|
||||
*RepositoryApi* | [**repo_update_pull_request**](docs/RepositoryApi.md#repo_update_pull_request) | **POST** /repos/{owner}/{repo}/pulls/{index}/update | Merge PR's baseBranch into headBranch
|
||||
*RepositoryApi* | [**repo_update_topics**](docs/RepositoryApi.md#repo_update_topics) | **PUT** /repos/{owner}/{repo}/topics | Replace list of topics for a repository
|
||||
*RepositoryApi* | [**topic_search**](docs/RepositoryApi.md#topic_search) | **GET** /topics/search | search topics via keyword
|
||||
*RepositoryApi* | [**user_current_check_subscription**](docs/RepositoryApi.md#user_current_check_subscription) | **GET** /repos/{owner}/{repo}/subscription | Check if the current user is watching a repo
|
||||
*RepositoryApi* | [**user_current_delete_subscription**](docs/RepositoryApi.md#user_current_delete_subscription) | **DELETE** /repos/{owner}/{repo}/subscription | Unwatch a repo
|
||||
*RepositoryApi* | [**user_current_put_subscription**](docs/RepositoryApi.md#user_current_put_subscription) | **PUT** /repos/{owner}/{repo}/subscription | Watch a repo
|
||||
*RepositoryApi* | [**user_tracked_times**](docs/RepositoryApi.md#user_tracked_times) | **GET** /repos/{owner}/{repo}/times/{user} | List a user's tracked times in a repo
|
||||
*SettingsApi* | [**get_general_api_settings**](docs/SettingsApi.md#get_general_api_settings) | **GET** /settings/api | Get instance's global settings for api
|
||||
*SettingsApi* | [**get_general_attachment_settings**](docs/SettingsApi.md#get_general_attachment_settings) | **GET** /settings/attachment | Get instance's global settings for Attachment
|
||||
*SettingsApi* | [**get_general_repository_settings**](docs/SettingsApi.md#get_general_repository_settings) | **GET** /settings/repository | Get instance's global settings for repositories
|
||||
*SettingsApi* | [**get_general_ui_settings**](docs/SettingsApi.md#get_general_ui_settings) | **GET** /settings/ui | Get instance's global settings for ui
|
||||
*UserApi* | [**create_current_user_repo**](docs/UserApi.md#create_current_user_repo) | **POST** /user/repos | Create a repository
|
||||
*UserApi* | [**get_user_settings**](docs/UserApi.md#get_user_settings) | **GET** /user/settings | Get user settings
|
||||
*UserApi* | [**get_verification_token**](docs/UserApi.md#get_verification_token) | **GET** /user/gpg_key_token | Get a Token to verify
|
||||
*UserApi* | [**update_user_settings**](docs/UserApi.md#update_user_settings) | **PATCH** /user/settings | Update user settings
|
||||
*UserApi* | [**user_add_email**](docs/UserApi.md#user_add_email) | **POST** /user/emails | Add email addresses
|
||||
*UserApi* | [**user_check_following**](docs/UserApi.md#user_check_following) | **GET** /users/{username}/following/{target} | Check if one user is following another user
|
||||
*UserApi* | [**user_create_o_auth2_application**](docs/UserApi.md#user_create_o_auth2_application) | **POST** /user/applications/oauth2 | creates a new OAuth2 application
|
||||
*UserApi* | [**user_create_token**](docs/UserApi.md#user_create_token) | **POST** /users/{username}/tokens | Create an access token
|
||||
*UserApi* | [**user_current_check_following**](docs/UserApi.md#user_current_check_following) | **GET** /user/following/{username} | Check whether a user is followed by the authenticated user
|
||||
*UserApi* | [**user_current_check_starring**](docs/UserApi.md#user_current_check_starring) | **GET** /user/starred/{owner}/{repo} | Whether the authenticated is starring the repo
|
||||
*UserApi* | [**user_current_delete_follow**](docs/UserApi.md#user_current_delete_follow) | **DELETE** /user/following/{username} | Unfollow a user
|
||||
*UserApi* | [**user_current_delete_gpg_key**](docs/UserApi.md#user_current_delete_gpg_key) | **DELETE** /user/gpg_keys/{id} | Remove a GPG key
|
||||
*UserApi* | [**user_current_delete_key**](docs/UserApi.md#user_current_delete_key) | **DELETE** /user/keys/{id} | Delete a public key
|
||||
*UserApi* | [**user_current_delete_star**](docs/UserApi.md#user_current_delete_star) | **DELETE** /user/starred/{owner}/{repo} | Unstar the given repo
|
||||
*UserApi* | [**user_current_get_gpg_key**](docs/UserApi.md#user_current_get_gpg_key) | **GET** /user/gpg_keys/{id} | Get a GPG key
|
||||
*UserApi* | [**user_current_get_key**](docs/UserApi.md#user_current_get_key) | **GET** /user/keys/{id} | Get a public key
|
||||
*UserApi* | [**user_current_list_followers**](docs/UserApi.md#user_current_list_followers) | **GET** /user/followers | List the authenticated user's followers
|
||||
*UserApi* | [**user_current_list_following**](docs/UserApi.md#user_current_list_following) | **GET** /user/following | List the users that the authenticated user is following
|
||||
*UserApi* | [**user_current_list_gpg_keys**](docs/UserApi.md#user_current_list_gpg_keys) | **GET** /user/gpg_keys | List the authenticated user's GPG keys
|
||||
*UserApi* | [**user_current_list_keys**](docs/UserApi.md#user_current_list_keys) | **GET** /user/keys | List the authenticated user's public keys
|
||||
*UserApi* | [**user_current_list_repos**](docs/UserApi.md#user_current_list_repos) | **GET** /user/repos | List the repos that the authenticated user owns
|
||||
*UserApi* | [**user_current_list_starred**](docs/UserApi.md#user_current_list_starred) | **GET** /user/starred | The repos that the authenticated user has starred
|
||||
*UserApi* | [**user_current_list_subscriptions**](docs/UserApi.md#user_current_list_subscriptions) | **GET** /user/subscriptions | List repositories watched by the authenticated user
|
||||
*UserApi* | [**user_current_post_gpg_key**](docs/UserApi.md#user_current_post_gpg_key) | **POST** /user/gpg_keys | Create a GPG key
|
||||
*UserApi* | [**user_current_post_key**](docs/UserApi.md#user_current_post_key) | **POST** /user/keys | Create a public key
|
||||
*UserApi* | [**user_current_put_follow**](docs/UserApi.md#user_current_put_follow) | **PUT** /user/following/{username} | Follow a user
|
||||
*UserApi* | [**user_current_put_star**](docs/UserApi.md#user_current_put_star) | **PUT** /user/starred/{owner}/{repo} | Star the given repo
|
||||
*UserApi* | [**user_current_tracked_times**](docs/UserApi.md#user_current_tracked_times) | **GET** /user/times | List the current user's tracked times
|
||||
*UserApi* | [**user_delete_access_token**](docs/UserApi.md#user_delete_access_token) | **DELETE** /users/{username}/tokens/{token} | delete an access token
|
||||
*UserApi* | [**user_delete_email**](docs/UserApi.md#user_delete_email) | **DELETE** /user/emails | Delete email addresses
|
||||
*UserApi* | [**user_delete_o_auth2_application**](docs/UserApi.md#user_delete_o_auth2_application) | **DELETE** /user/applications/oauth2/{id} | delete an OAuth2 Application
|
||||
*UserApi* | [**user_get**](docs/UserApi.md#user_get) | **GET** /users/{username} | Get a user
|
||||
*UserApi* | [**user_get_current**](docs/UserApi.md#user_get_current) | **GET** /user | Get the authenticated user
|
||||
*UserApi* | [**user_get_heatmap_data**](docs/UserApi.md#user_get_heatmap_data) | **GET** /users/{username}/heatmap | Get a user's heatmap
|
||||
*UserApi* | [**user_get_o_auth2_application**](docs/UserApi.md#user_get_o_auth2_application) | **GET** /user/applications/oauth2/{id} | get an OAuth2 Application
|
||||
*UserApi* | [**user_get_oauth2_application**](docs/UserApi.md#user_get_oauth2_application) | **GET** /user/applications/oauth2 | List the authenticated user's oauth2 applications
|
||||
*UserApi* | [**user_get_stop_watches**](docs/UserApi.md#user_get_stop_watches) | **GET** /user/stopwatches | Get list of all existing stopwatches
|
||||
*UserApi* | [**user_get_tokens**](docs/UserApi.md#user_get_tokens) | **GET** /users/{username}/tokens | List the authenticated user's access tokens
|
||||
*UserApi* | [**user_list_emails**](docs/UserApi.md#user_list_emails) | **GET** /user/emails | List the authenticated user's email addresses
|
||||
*UserApi* | [**user_list_followers**](docs/UserApi.md#user_list_followers) | **GET** /users/{username}/followers | List the given user's followers
|
||||
*UserApi* | [**user_list_following**](docs/UserApi.md#user_list_following) | **GET** /users/{username}/following | List the users that the given user is following
|
||||
*UserApi* | [**user_list_gpg_keys**](docs/UserApi.md#user_list_gpg_keys) | **GET** /users/{username}/gpg_keys | List the given user's GPG keys
|
||||
*UserApi* | [**user_list_keys**](docs/UserApi.md#user_list_keys) | **GET** /users/{username}/keys | List the given user's public keys
|
||||
*UserApi* | [**user_list_repos**](docs/UserApi.md#user_list_repos) | **GET** /users/{username}/repos | List the repos owned by the given user
|
||||
*UserApi* | [**user_list_starred**](docs/UserApi.md#user_list_starred) | **GET** /users/{username}/starred | The repos that the given user has starred
|
||||
*UserApi* | [**user_list_subscriptions**](docs/UserApi.md#user_list_subscriptions) | **GET** /users/{username}/subscriptions | List the repositories watched by a user
|
||||
*UserApi* | [**user_list_teams**](docs/UserApi.md#user_list_teams) | **GET** /user/teams | List all the teams a user belongs to
|
||||
*UserApi* | [**user_search**](docs/UserApi.md#user_search) | **GET** /users/search | Search for users
|
||||
*UserApi* | [**user_update_o_auth2_application**](docs/UserApi.md#user_update_o_auth2_application) | **PATCH** /user/applications/oauth2/{id} | update an OAuth2 Application, this includes regenerating the client secret
|
||||
*UserApi* | [**user_verify_gpg_key**](docs/UserApi.md#user_verify_gpg_key) | **POST** /user/gpg_key_verify | Verify a GPG key
|
||||
|
||||
|
||||
## Documentation For Models
|
||||
|
||||
- [AccessToken](docs/AccessToken.md)
|
||||
- [AddCollaboratorOption](docs/AddCollaboratorOption.md)
|
||||
- [AddTimeOption](docs/AddTimeOption.md)
|
||||
- [AnnotatedTag](docs/AnnotatedTag.md)
|
||||
- [AnnotatedTagObject](docs/AnnotatedTagObject.md)
|
||||
- [ApiError](docs/ApiError.md)
|
||||
- [Attachment](docs/Attachment.md)
|
||||
- [Branch](docs/Branch.md)
|
||||
- [BranchProtection](docs/BranchProtection.md)
|
||||
- [CombinedStatus](docs/CombinedStatus.md)
|
||||
- [Comment](docs/Comment.md)
|
||||
- [Commit](docs/Commit.md)
|
||||
- [CommitAffectedFiles](docs/CommitAffectedFiles.md)
|
||||
- [CommitDateOptions](docs/CommitDateOptions.md)
|
||||
- [CommitMeta](docs/CommitMeta.md)
|
||||
- [CommitStats](docs/CommitStats.md)
|
||||
- [CommitStatus](docs/CommitStatus.md)
|
||||
- [CommitUser](docs/CommitUser.md)
|
||||
- [ContentsResponse](docs/ContentsResponse.md)
|
||||
- [CreateAccessTokenOption](docs/CreateAccessTokenOption.md)
|
||||
- [CreateBranchProtectionOption](docs/CreateBranchProtectionOption.md)
|
||||
- [CreateBranchRepoOption](docs/CreateBranchRepoOption.md)
|
||||
- [CreateEmailOption](docs/CreateEmailOption.md)
|
||||
- [CreateFileOptions](docs/CreateFileOptions.md)
|
||||
- [CreateForkOption](docs/CreateForkOption.md)
|
||||
- [CreateGpgKeyOption](docs/CreateGpgKeyOption.md)
|
||||
- [CreateHookOption](docs/CreateHookOption.md)
|
||||
- [CreateIssueCommentOption](docs/CreateIssueCommentOption.md)
|
||||
- [CreateIssueOption](docs/CreateIssueOption.md)
|
||||
- [CreateKeyOption](docs/CreateKeyOption.md)
|
||||
- [CreateLabelOption](docs/CreateLabelOption.md)
|
||||
- [CreateMilestoneOption](docs/CreateMilestoneOption.md)
|
||||
- [CreateOAuth2ApplicationOptions](docs/CreateOAuth2ApplicationOptions.md)
|
||||
- [CreateOrgOption](docs/CreateOrgOption.md)
|
||||
- [CreatePullRequestOption](docs/CreatePullRequestOption.md)
|
||||
- [CreatePullReviewComment](docs/CreatePullReviewComment.md)
|
||||
- [CreatePullReviewOptions](docs/CreatePullReviewOptions.md)
|
||||
- [CreateReleaseOption](docs/CreateReleaseOption.md)
|
||||
- [CreateRepoOption](docs/CreateRepoOption.md)
|
||||
- [CreateStatusOption](docs/CreateStatusOption.md)
|
||||
- [CreateTagOption](docs/CreateTagOption.md)
|
||||
- [CreateTeamOption](docs/CreateTeamOption.md)
|
||||
- [CreateUserOption](docs/CreateUserOption.md)
|
||||
- [CreateWikiPageOptions](docs/CreateWikiPageOptions.md)
|
||||
- [Cron](docs/Cron.md)
|
||||
- [DeleteEmailOption](docs/DeleteEmailOption.md)
|
||||
- [DeleteFileOptions](docs/DeleteFileOptions.md)
|
||||
- [DeployKey](docs/DeployKey.md)
|
||||
- [DismissPullReviewOptions](docs/DismissPullReviewOptions.md)
|
||||
- [EditAttachmentOptions](docs/EditAttachmentOptions.md)
|
||||
- [EditBranchProtectionOption](docs/EditBranchProtectionOption.md)
|
||||
- [EditDeadlineOption](docs/EditDeadlineOption.md)
|
||||
- [EditGitHookOption](docs/EditGitHookOption.md)
|
||||
- [EditHookOption](docs/EditHookOption.md)
|
||||
- [EditIssueCommentOption](docs/EditIssueCommentOption.md)
|
||||
- [EditIssueOption](docs/EditIssueOption.md)
|
||||
- [EditLabelOption](docs/EditLabelOption.md)
|
||||
- [EditMilestoneOption](docs/EditMilestoneOption.md)
|
||||
- [EditOrgOption](docs/EditOrgOption.md)
|
||||
- [EditPullRequestOption](docs/EditPullRequestOption.md)
|
||||
- [EditReactionOption](docs/EditReactionOption.md)
|
||||
- [EditReleaseOption](docs/EditReleaseOption.md)
|
||||
- [EditRepoOption](docs/EditRepoOption.md)
|
||||
- [EditTeamOption](docs/EditTeamOption.md)
|
||||
- [EditUserOption](docs/EditUserOption.md)
|
||||
- [Email](docs/Email.md)
|
||||
- [ExternalTracker](docs/ExternalTracker.md)
|
||||
- [ExternalWiki](docs/ExternalWiki.md)
|
||||
- [FileCommitResponse](docs/FileCommitResponse.md)
|
||||
- [FileDeleteResponse](docs/FileDeleteResponse.md)
|
||||
- [FileLinksResponse](docs/FileLinksResponse.md)
|
||||
- [FileResponse](docs/FileResponse.md)
|
||||
- [GeneralApiSettings](docs/GeneralApiSettings.md)
|
||||
- [GeneralAttachmentSettings](docs/GeneralAttachmentSettings.md)
|
||||
- [GeneralRepoSettings](docs/GeneralRepoSettings.md)
|
||||
- [GeneralUiSettings](docs/GeneralUiSettings.md)
|
||||
- [GenerateRepoOption](docs/GenerateRepoOption.md)
|
||||
- [GitBlobResponse](docs/GitBlobResponse.md)
|
||||
- [GitEntry](docs/GitEntry.md)
|
||||
- [GitHook](docs/GitHook.md)
|
||||
- [GitObject](docs/GitObject.md)
|
||||
- [GitTreeResponse](docs/GitTreeResponse.md)
|
||||
- [GpgKey](docs/GpgKey.md)
|
||||
- [GpgKeyEmail](docs/GpgKeyEmail.md)
|
||||
- [Hook](docs/Hook.md)
|
||||
- [Identity](docs/Identity.md)
|
||||
- [InternalTracker](docs/InternalTracker.md)
|
||||
- [Issue](docs/Issue.md)
|
||||
- [IssueDeadline](docs/IssueDeadline.md)
|
||||
- [IssueLabelsOption](docs/IssueLabelsOption.md)
|
||||
- [IssueTemplate](docs/IssueTemplate.md)
|
||||
- [Label](docs/Label.md)
|
||||
- [MarkdownOption](docs/MarkdownOption.md)
|
||||
- [MergePullRequestOption](docs/MergePullRequestOption.md)
|
||||
- [MigrateRepoForm](docs/MigrateRepoForm.md)
|
||||
- [MigrateRepoOptions](docs/MigrateRepoOptions.md)
|
||||
- [Milestone](docs/Milestone.md)
|
||||
- [NodeInfo](docs/NodeInfo.md)
|
||||
- [NodeInfoServices](docs/NodeInfoServices.md)
|
||||
- [NodeInfoSoftware](docs/NodeInfoSoftware.md)
|
||||
- [NodeInfoUsage](docs/NodeInfoUsage.md)
|
||||
- [NodeInfoUsageUsers](docs/NodeInfoUsageUsers.md)
|
||||
- [Note](docs/Note.md)
|
||||
- [NotificationCount](docs/NotificationCount.md)
|
||||
- [NotificationSubject](docs/NotificationSubject.md)
|
||||
- [NotificationThread](docs/NotificationThread.md)
|
||||
- [OAuth2Application](docs/OAuth2Application.md)
|
||||
- [Organization](docs/Organization.md)
|
||||
- [OrganizationPermissions](docs/OrganizationPermissions.md)
|
||||
- [Package](docs/Package.md)
|
||||
- [PackageFile](docs/PackageFile.md)
|
||||
- [PayloadCommit](docs/PayloadCommit.md)
|
||||
- [PayloadCommitVerification](docs/PayloadCommitVerification.md)
|
||||
- [PayloadUser](docs/PayloadUser.md)
|
||||
- [Permission](docs/Permission.md)
|
||||
- [PrBranchInfo](docs/PrBranchInfo.md)
|
||||
- [PublicKey](docs/PublicKey.md)
|
||||
- [PullRequest](docs/PullRequest.md)
|
||||
- [PullRequestMeta](docs/PullRequestMeta.md)
|
||||
- [PullReview](docs/PullReview.md)
|
||||
- [PullReviewComment](docs/PullReviewComment.md)
|
||||
- [PullReviewRequestOptions](docs/PullReviewRequestOptions.md)
|
||||
- [Reaction](docs/Reaction.md)
|
||||
- [Reference](docs/Reference.md)
|
||||
- [Release](docs/Release.md)
|
||||
- [RepoCollaboratorPermission](docs/RepoCollaboratorPermission.md)
|
||||
- [RepoCommit](docs/RepoCommit.md)
|
||||
- [RepoTopicOptions](docs/RepoTopicOptions.md)
|
||||
- [RepoTransfer](docs/RepoTransfer.md)
|
||||
- [Repository](docs/Repository.md)
|
||||
- [RepositoryMeta](docs/RepositoryMeta.md)
|
||||
- [SearchResults](docs/SearchResults.md)
|
||||
- [ServerVersion](docs/ServerVersion.md)
|
||||
- [StopWatch](docs/StopWatch.md)
|
||||
- [SubmitPullReviewOptions](docs/SubmitPullReviewOptions.md)
|
||||
- [Tag](docs/Tag.md)
|
||||
- [Team](docs/Team.md)
|
||||
- [TeamSearch200Response](docs/TeamSearch200Response.md)
|
||||
- [TimelineComment](docs/TimelineComment.md)
|
||||
- [TopicName](docs/TopicName.md)
|
||||
- [TopicResponse](docs/TopicResponse.md)
|
||||
- [TrackedTime](docs/TrackedTime.md)
|
||||
- [TransferRepoOption](docs/TransferRepoOption.md)
|
||||
- [UpdateFileOptions](docs/UpdateFileOptions.md)
|
||||
- [User](docs/User.md)
|
||||
- [UserHeatmapData](docs/UserHeatmapData.md)
|
||||
- [UserSearch200Response](docs/UserSearch200Response.md)
|
||||
- [UserSettings](docs/UserSettings.md)
|
||||
- [UserSettingsOptions](docs/UserSettingsOptions.md)
|
||||
- [WatchInfo](docs/WatchInfo.md)
|
||||
- [WikiCommit](docs/WikiCommit.md)
|
||||
- [WikiCommitList](docs/WikiCommitList.md)
|
||||
- [WikiPage](docs/WikiPage.md)
|
||||
- [WikiPageMetaData](docs/WikiPageMetaData.md)
|
||||
|
||||
|
||||
To get access to the crate's generated documentation, use:
|
||||
|
||||
```
|
||||
cargo doc --open
|
||||
```
|
||||
|
||||
## Author
|
||||
|
||||
|
||||
|
14
crates/gitea_raw_client/docs/AccessToken.md
Normal file
14
crates/gitea_raw_client/docs/AccessToken.md
Normal file
@ -0,0 +1,14 @@
|
||||
# AccessToken
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | Option<**i64**> | | [optional]
|
||||
**name** | Option<**String**> | | [optional]
|
||||
**sha1** | Option<**String**> | | [optional]
|
||||
**token_last_eight** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
11
crates/gitea_raw_client/docs/AddCollaboratorOption.md
Normal file
11
crates/gitea_raw_client/docs/AddCollaboratorOption.md
Normal file
@ -0,0 +1,11 @@
|
||||
# AddCollaboratorOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**permission** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
13
crates/gitea_raw_client/docs/AddTimeOption.md
Normal file
13
crates/gitea_raw_client/docs/AddTimeOption.md
Normal file
@ -0,0 +1,13 @@
|
||||
# AddTimeOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**created** | Option<**String**> | | [optional]
|
||||
**time** | **i64** | time in seconds |
|
||||
**user_name** | Option<**String**> | User who spent the time (optional) | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
426
crates/gitea_raw_client/docs/AdminApi.md
Normal file
426
crates/gitea_raw_client/docs/AdminApi.md
Normal file
@ -0,0 +1,426 @@
|
||||
# \AdminApi
|
||||
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**admin_adopt_repository**](AdminApi.md#admin_adopt_repository) | **POST** /admin/unadopted/{owner}/{repo} | Adopt unadopted files as a repository
|
||||
[**admin_create_org**](AdminApi.md#admin_create_org) | **POST** /admin/users/{username}/orgs | Create an organization
|
||||
[**admin_create_public_key**](AdminApi.md#admin_create_public_key) | **POST** /admin/users/{username}/keys | Add a public key on behalf of a user
|
||||
[**admin_create_repo**](AdminApi.md#admin_create_repo) | **POST** /admin/users/{username}/repos | Create a repository on behalf of a user
|
||||
[**admin_create_user**](AdminApi.md#admin_create_user) | **POST** /admin/users | Create a user
|
||||
[**admin_cron_list**](AdminApi.md#admin_cron_list) | **GET** /admin/cron | List cron tasks
|
||||
[**admin_cron_run**](AdminApi.md#admin_cron_run) | **POST** /admin/cron/{task} | Run cron task
|
||||
[**admin_delete_unadopted_repository**](AdminApi.md#admin_delete_unadopted_repository) | **DELETE** /admin/unadopted/{owner}/{repo} | Delete unadopted files
|
||||
[**admin_delete_user**](AdminApi.md#admin_delete_user) | **DELETE** /admin/users/{username} | Delete a user
|
||||
[**admin_delete_user_public_key**](AdminApi.md#admin_delete_user_public_key) | **DELETE** /admin/users/{username}/keys/{id} | Delete a user's public key
|
||||
[**admin_edit_user**](AdminApi.md#admin_edit_user) | **PATCH** /admin/users/{username} | Edit an existing user
|
||||
[**admin_get_all_orgs**](AdminApi.md#admin_get_all_orgs) | **GET** /admin/orgs | List all organizations
|
||||
[**admin_get_all_users**](AdminApi.md#admin_get_all_users) | **GET** /admin/users | List all users
|
||||
[**admin_unadopted_list**](AdminApi.md#admin_unadopted_list) | **GET** /admin/unadopted | List unadopted repositories
|
||||
|
||||
|
||||
|
||||
## admin_adopt_repository
|
||||
|
||||
> admin_adopt_repository(owner, repo)
|
||||
Adopt unadopted files as a repository
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**owner** | **String** | owner of the repo | [required] |
|
||||
**repo** | **String** | name of the repo | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## admin_create_org
|
||||
|
||||
> crate::models::Organization admin_create_org(username, organization)
|
||||
Create an organization
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**username** | **String** | username of the user that will own the created organization | [required] |
|
||||
**organization** | [**CreateOrgOption**](CreateOrgOption.md) | | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**crate::models::Organization**](Organization.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## admin_create_public_key
|
||||
|
||||
> crate::models::PublicKey admin_create_public_key(username, key)
|
||||
Add a public key on behalf of a user
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**username** | **String** | username of the user | [required] |
|
||||
**key** | Option<[**CreateKeyOption**](CreateKeyOption.md)> | | |
|
||||
|
||||
### Return type
|
||||
|
||||
[**crate::models::PublicKey**](PublicKey.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## admin_create_repo
|
||||
|
||||
> crate::models::Repository admin_create_repo(username, repository)
|
||||
Create a repository on behalf of a user
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**username** | **String** | username of the user. This user will own the created repository | [required] |
|
||||
**repository** | [**CreateRepoOption**](CreateRepoOption.md) | | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**crate::models::Repository**](Repository.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## admin_create_user
|
||||
|
||||
> crate::models::User admin_create_user(body)
|
||||
Create a user
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**body** | Option<[**CreateUserOption**](CreateUserOption.md)> | | |
|
||||
|
||||
### Return type
|
||||
|
||||
[**crate::models::User**](User.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## admin_cron_list
|
||||
|
||||
> Vec<crate::models::Cron> admin_cron_list(page, limit)
|
||||
List cron tasks
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**page** | Option<**i32**> | page number of results to return (1-based) | |
|
||||
**limit** | Option<**i32**> | page size of results | |
|
||||
|
||||
### Return type
|
||||
|
||||
[**Vec<crate::models::Cron>**](Cron.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## admin_cron_run
|
||||
|
||||
> admin_cron_run(task)
|
||||
Run cron task
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**task** | **String** | task to run | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## admin_delete_unadopted_repository
|
||||
|
||||
> admin_delete_unadopted_repository(owner, repo)
|
||||
Delete unadopted files
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**owner** | **String** | owner of the repo | [required] |
|
||||
**repo** | **String** | name of the repo | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## admin_delete_user
|
||||
|
||||
> admin_delete_user(username)
|
||||
Delete a user
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**username** | **String** | username of user to delete | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## admin_delete_user_public_key
|
||||
|
||||
> admin_delete_user_public_key(username, id)
|
||||
Delete a user's public key
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**username** | **String** | username of user | [required] |
|
||||
**id** | **i64** | id of the key to delete | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## admin_edit_user
|
||||
|
||||
> crate::models::User admin_edit_user(username, body)
|
||||
Edit an existing user
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**username** | **String** | username of user to edit | [required] |
|
||||
**body** | Option<[**EditUserOption**](EditUserOption.md)> | | |
|
||||
|
||||
### Return type
|
||||
|
||||
[**crate::models::User**](User.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## admin_get_all_orgs
|
||||
|
||||
> Vec<crate::models::Organization> admin_get_all_orgs(page, limit)
|
||||
List all organizations
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**page** | Option<**i32**> | page number of results to return (1-based) | |
|
||||
**limit** | Option<**i32**> | page size of results | |
|
||||
|
||||
### Return type
|
||||
|
||||
[**Vec<crate::models::Organization>**](Organization.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## admin_get_all_users
|
||||
|
||||
> Vec<crate::models::User> admin_get_all_users(page, limit)
|
||||
List all users
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**page** | Option<**i32**> | page number of results to return (1-based) | |
|
||||
**limit** | Option<**i32**> | page size of results | |
|
||||
|
||||
### Return type
|
||||
|
||||
[**Vec<crate::models::User>**](User.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## admin_unadopted_list
|
||||
|
||||
> Vec<String> admin_unadopted_list(page, limit, pattern)
|
||||
List unadopted repositories
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**page** | Option<**i32**> | page number of results to return (1-based) | |
|
||||
**limit** | Option<**i32**> | page size of results | |
|
||||
**pattern** | Option<**String**> | pattern of repositories to search for | |
|
||||
|
||||
### Return type
|
||||
|
||||
**Vec<String>**
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
17
crates/gitea_raw_client/docs/AnnotatedTag.md
Normal file
17
crates/gitea_raw_client/docs/AnnotatedTag.md
Normal file
@ -0,0 +1,17 @@
|
||||
# AnnotatedTag
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**message** | Option<**String**> | | [optional]
|
||||
**object** | Option<[**crate::models::AnnotatedTagObject**](AnnotatedTagObject.md)> | | [optional]
|
||||
**sha** | Option<**String**> | | [optional]
|
||||
**tag** | Option<**String**> | | [optional]
|
||||
**tagger** | Option<[**crate::models::CommitUser**](CommitUser.md)> | | [optional]
|
||||
**url** | Option<**String**> | | [optional]
|
||||
**verification** | Option<[**crate::models::PayloadCommitVerification**](PayloadCommitVerification.md)> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
13
crates/gitea_raw_client/docs/AnnotatedTagObject.md
Normal file
13
crates/gitea_raw_client/docs/AnnotatedTagObject.md
Normal file
@ -0,0 +1,13 @@
|
||||
# AnnotatedTagObject
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**sha** | Option<**String**> | | [optional]
|
||||
**r#type** | Option<**String**> | | [optional]
|
||||
**url** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
12
crates/gitea_raw_client/docs/ApiError.md
Normal file
12
crates/gitea_raw_client/docs/ApiError.md
Normal file
@ -0,0 +1,12 @@
|
||||
# ApiError
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**message** | Option<**String**> | | [optional]
|
||||
**url** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
17
crates/gitea_raw_client/docs/Attachment.md
Normal file
17
crates/gitea_raw_client/docs/Attachment.md
Normal file
@ -0,0 +1,17 @@
|
||||
# Attachment
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**browser_download_url** | Option<**String**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
**download_count** | Option<**i64**> | | [optional]
|
||||
**id** | Option<**i64**> | | [optional]
|
||||
**name** | Option<**String**> | | [optional]
|
||||
**size** | Option<**i64**> | | [optional]
|
||||
**uuid** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
19
crates/gitea_raw_client/docs/Branch.md
Normal file
19
crates/gitea_raw_client/docs/Branch.md
Normal file
@ -0,0 +1,19 @@
|
||||
# Branch
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**commit** | Option<[**crate::models::PayloadCommit**](PayloadCommit.md)> | | [optional]
|
||||
**effective_branch_protection_name** | Option<**String**> | | [optional]
|
||||
**enable_status_check** | Option<**bool**> | | [optional]
|
||||
**name** | Option<**String**> | | [optional]
|
||||
**protected** | Option<**bool**> | | [optional]
|
||||
**required_approvals** | Option<**i64**> | | [optional]
|
||||
**status_check_contexts** | Option<**Vec<String>**> | | [optional]
|
||||
**user_can_merge** | Option<**bool**> | | [optional]
|
||||
**user_can_push** | Option<**bool**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
34
crates/gitea_raw_client/docs/BranchProtection.md
Normal file
34
crates/gitea_raw_client/docs/BranchProtection.md
Normal file
@ -0,0 +1,34 @@
|
||||
# BranchProtection
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**approvals_whitelist_teams** | Option<**Vec<String>**> | | [optional]
|
||||
**approvals_whitelist_username** | Option<**Vec<String>**> | | [optional]
|
||||
**block_on_official_review_requests** | Option<**bool**> | | [optional]
|
||||
**block_on_outdated_branch** | Option<**bool**> | | [optional]
|
||||
**block_on_rejected_reviews** | Option<**bool**> | | [optional]
|
||||
**branch_name** | Option<**String**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
**dismiss_stale_approvals** | Option<**bool**> | | [optional]
|
||||
**enable_approvals_whitelist** | Option<**bool**> | | [optional]
|
||||
**enable_merge_whitelist** | Option<**bool**> | | [optional]
|
||||
**enable_push** | Option<**bool**> | | [optional]
|
||||
**enable_push_whitelist** | Option<**bool**> | | [optional]
|
||||
**enable_status_check** | Option<**bool**> | | [optional]
|
||||
**merge_whitelist_teams** | Option<**Vec<String>**> | | [optional]
|
||||
**merge_whitelist_usernames** | Option<**Vec<String>**> | | [optional]
|
||||
**protected_file_patterns** | Option<**String**> | | [optional]
|
||||
**push_whitelist_deploy_keys** | Option<**bool**> | | [optional]
|
||||
**push_whitelist_teams** | Option<**Vec<String>**> | | [optional]
|
||||
**push_whitelist_usernames** | Option<**Vec<String>**> | | [optional]
|
||||
**require_signed_commits** | Option<**bool**> | | [optional]
|
||||
**required_approvals** | Option<**i64**> | | [optional]
|
||||
**status_check_contexts** | Option<**Vec<String>**> | | [optional]
|
||||
**unprotected_file_patterns** | Option<**String**> | | [optional]
|
||||
**updated_at** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
17
crates/gitea_raw_client/docs/CombinedStatus.md
Normal file
17
crates/gitea_raw_client/docs/CombinedStatus.md
Normal file
@ -0,0 +1,17 @@
|
||||
# CombinedStatus
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**commit_url** | Option<**String**> | | [optional]
|
||||
**repository** | Option<[**crate::models::Repository**](Repository.md)> | | [optional]
|
||||
**sha** | Option<**String**> | | [optional]
|
||||
**state** | Option<**String**> | CommitStatusState holds the state of a CommitStatus It can be \"pending\", \"success\", \"error\", \"failure\", and \"warning\" | [optional]
|
||||
**statuses** | Option<[**Vec<crate::models::CommitStatus>**](CommitStatus.md)> | | [optional]
|
||||
**total_count** | Option<**i64**> | | [optional]
|
||||
**url** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
20
crates/gitea_raw_client/docs/Comment.md
Normal file
20
crates/gitea_raw_client/docs/Comment.md
Normal file
@ -0,0 +1,20 @@
|
||||
# Comment
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**body** | Option<**String**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
**html_url** | Option<**String**> | | [optional]
|
||||
**id** | Option<**i64**> | | [optional]
|
||||
**issue_url** | Option<**String**> | | [optional]
|
||||
**original_author** | Option<**String**> | | [optional]
|
||||
**original_author_id** | Option<**i64**> | | [optional]
|
||||
**pull_request_url** | Option<**String**> | | [optional]
|
||||
**updated_at** | Option<**String**> | | [optional]
|
||||
**user** | Option<[**crate::models::User**](User.md)> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
20
crates/gitea_raw_client/docs/Commit.md
Normal file
20
crates/gitea_raw_client/docs/Commit.md
Normal file
@ -0,0 +1,20 @@
|
||||
# Commit
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**author** | Option<[**crate::models::User**](User.md)> | | [optional]
|
||||
**commit** | Option<[**crate::models::RepoCommit**](RepoCommit.md)> | | [optional]
|
||||
**committer** | Option<[**crate::models::User**](User.md)> | | [optional]
|
||||
**created** | Option<**String**> | | [optional]
|
||||
**files** | Option<[**Vec<crate::models::CommitAffectedFiles>**](CommitAffectedFiles.md)> | | [optional]
|
||||
**html_url** | Option<**String**> | | [optional]
|
||||
**parents** | Option<[**Vec<crate::models::CommitMeta>**](CommitMeta.md)> | | [optional]
|
||||
**sha** | Option<**String**> | | [optional]
|
||||
**stats** | Option<[**crate::models::CommitStats**](CommitStats.md)> | | [optional]
|
||||
**url** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
11
crates/gitea_raw_client/docs/CommitAffectedFiles.md
Normal file
11
crates/gitea_raw_client/docs/CommitAffectedFiles.md
Normal file
@ -0,0 +1,11 @@
|
||||
# CommitAffectedFiles
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**filename** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
12
crates/gitea_raw_client/docs/CommitDateOptions.md
Normal file
12
crates/gitea_raw_client/docs/CommitDateOptions.md
Normal file
@ -0,0 +1,12 @@
|
||||
# CommitDateOptions
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**author** | Option<**String**> | | [optional]
|
||||
**committer** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
13
crates/gitea_raw_client/docs/CommitMeta.md
Normal file
13
crates/gitea_raw_client/docs/CommitMeta.md
Normal file
@ -0,0 +1,13 @@
|
||||
# CommitMeta
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**created** | Option<**String**> | | [optional]
|
||||
**sha** | Option<**String**> | | [optional]
|
||||
**url** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
13
crates/gitea_raw_client/docs/CommitStats.md
Normal file
13
crates/gitea_raw_client/docs/CommitStats.md
Normal file
@ -0,0 +1,13 @@
|
||||
# CommitStats
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**additions** | Option<**i64**> | | [optional]
|
||||
**deletions** | Option<**i64**> | | [optional]
|
||||
**total** | Option<**i64**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
19
crates/gitea_raw_client/docs/CommitStatus.md
Normal file
19
crates/gitea_raw_client/docs/CommitStatus.md
Normal file
@ -0,0 +1,19 @@
|
||||
# CommitStatus
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**context** | Option<**String**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
**creator** | Option<[**crate::models::User**](User.md)> | | [optional]
|
||||
**description** | Option<**String**> | | [optional]
|
||||
**id** | Option<**i64**> | | [optional]
|
||||
**status** | Option<**String**> | CommitStatusState holds the state of a CommitStatus It can be \"pending\", \"success\", \"error\", \"failure\", and \"warning\" | [optional]
|
||||
**target_url** | Option<**String**> | | [optional]
|
||||
**updated_at** | Option<**String**> | | [optional]
|
||||
**url** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
13
crates/gitea_raw_client/docs/CommitUser.md
Normal file
13
crates/gitea_raw_client/docs/CommitUser.md
Normal file
@ -0,0 +1,13 @@
|
||||
# CommitUser
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**date** | Option<**String**> | | [optional]
|
||||
**email** | Option<**String**> | | [optional]
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
24
crates/gitea_raw_client/docs/ContentsResponse.md
Normal file
24
crates/gitea_raw_client/docs/ContentsResponse.md
Normal file
@ -0,0 +1,24 @@
|
||||
# ContentsResponse
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**_links** | Option<[**crate::models::FileLinksResponse**](FileLinksResponse.md)> | | [optional]
|
||||
**content** | Option<**String**> | `content` is populated when `type` is `file`, otherwise null | [optional]
|
||||
**download_url** | Option<**String**> | | [optional]
|
||||
**encoding** | Option<**String**> | `encoding` is populated when `type` is `file`, otherwise null | [optional]
|
||||
**git_url** | Option<**String**> | | [optional]
|
||||
**html_url** | Option<**String**> | | [optional]
|
||||
**name** | Option<**String**> | | [optional]
|
||||
**path** | Option<**String**> | | [optional]
|
||||
**sha** | Option<**String**> | | [optional]
|
||||
**size** | Option<**i64**> | | [optional]
|
||||
**submodule_git_url** | Option<**String**> | `submodule_git_url` is populated when `type` is `submodule`, otherwise null | [optional]
|
||||
**target** | Option<**String**> | `target` is populated when `type` is `symlink`, otherwise null | [optional]
|
||||
**r#type** | Option<**String**> | `type` will be `file`, `dir`, `symlink`, or `submodule` | [optional]
|
||||
**url** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
11
crates/gitea_raw_client/docs/CreateAccessTokenOption.md
Normal file
11
crates/gitea_raw_client/docs/CreateAccessTokenOption.md
Normal file
@ -0,0 +1,11 @@
|
||||
# CreateAccessTokenOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
32
crates/gitea_raw_client/docs/CreateBranchProtectionOption.md
Normal file
32
crates/gitea_raw_client/docs/CreateBranchProtectionOption.md
Normal file
@ -0,0 +1,32 @@
|
||||
# CreateBranchProtectionOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**approvals_whitelist_teams** | Option<**Vec<String>**> | | [optional]
|
||||
**approvals_whitelist_username** | Option<**Vec<String>**> | | [optional]
|
||||
**block_on_official_review_requests** | Option<**bool**> | | [optional]
|
||||
**block_on_outdated_branch** | Option<**bool**> | | [optional]
|
||||
**block_on_rejected_reviews** | Option<**bool**> | | [optional]
|
||||
**branch_name** | Option<**String**> | | [optional]
|
||||
**dismiss_stale_approvals** | Option<**bool**> | | [optional]
|
||||
**enable_approvals_whitelist** | Option<**bool**> | | [optional]
|
||||
**enable_merge_whitelist** | Option<**bool**> | | [optional]
|
||||
**enable_push** | Option<**bool**> | | [optional]
|
||||
**enable_push_whitelist** | Option<**bool**> | | [optional]
|
||||
**enable_status_check** | Option<**bool**> | | [optional]
|
||||
**merge_whitelist_teams** | Option<**Vec<String>**> | | [optional]
|
||||
**merge_whitelist_usernames** | Option<**Vec<String>**> | | [optional]
|
||||
**protected_file_patterns** | Option<**String**> | | [optional]
|
||||
**push_whitelist_deploy_keys** | Option<**bool**> | | [optional]
|
||||
**push_whitelist_teams** | Option<**Vec<String>**> | | [optional]
|
||||
**push_whitelist_usernames** | Option<**Vec<String>**> | | [optional]
|
||||
**require_signed_commits** | Option<**bool**> | | [optional]
|
||||
**required_approvals** | Option<**i64**> | | [optional]
|
||||
**status_check_contexts** | Option<**Vec<String>**> | | [optional]
|
||||
**unprotected_file_patterns** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
12
crates/gitea_raw_client/docs/CreateBranchRepoOption.md
Normal file
12
crates/gitea_raw_client/docs/CreateBranchRepoOption.md
Normal file
@ -0,0 +1,12 @@
|
||||
# CreateBranchRepoOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**new_branch_name** | **String** | Name of the branch to create |
|
||||
**old_branch_name** | Option<**String**> | Name of the old branch to create from | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
11
crates/gitea_raw_client/docs/CreateEmailOption.md
Normal file
11
crates/gitea_raw_client/docs/CreateEmailOption.md
Normal file
@ -0,0 +1,11 @@
|
||||
# CreateEmailOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**emails** | Option<**Vec<String>**> | email addresses to add | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
18
crates/gitea_raw_client/docs/CreateFileOptions.md
Normal file
18
crates/gitea_raw_client/docs/CreateFileOptions.md
Normal file
@ -0,0 +1,18 @@
|
||||
# CreateFileOptions
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**author** | Option<[**crate::models::Identity**](Identity.md)> | | [optional]
|
||||
**branch** | Option<**String**> | branch (optional) to base this file from. if not given, the default branch is used | [optional]
|
||||
**committer** | Option<[**crate::models::Identity**](Identity.md)> | | [optional]
|
||||
**content** | **String** | content must be base64 encoded |
|
||||
**dates** | Option<[**crate::models::CommitDateOptions**](CommitDateOptions.md)> | | [optional]
|
||||
**message** | Option<**String**> | message (optional) for the commit of this file. if not supplied, a default message will be used | [optional]
|
||||
**new_branch** | Option<**String**> | new_branch (optional) will make a new branch from `branch` before creating the file | [optional]
|
||||
**signoff** | Option<**bool**> | Add a Signed-off-by trailer by the committer at the end of the commit log message. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
12
crates/gitea_raw_client/docs/CreateForkOption.md
Normal file
12
crates/gitea_raw_client/docs/CreateForkOption.md
Normal file
@ -0,0 +1,12 @@
|
||||
# CreateForkOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | name of the forked repository | [optional]
|
||||
**organization** | Option<**String**> | organization name, if forking into an organization | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
12
crates/gitea_raw_client/docs/CreateGpgKeyOption.md
Normal file
12
crates/gitea_raw_client/docs/CreateGpgKeyOption.md
Normal file
@ -0,0 +1,12 @@
|
||||
# CreateGpgKeyOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**armored_public_key** | **String** | An armored GPG key to add |
|
||||
**armored_signature** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
15
crates/gitea_raw_client/docs/CreateHookOption.md
Normal file
15
crates/gitea_raw_client/docs/CreateHookOption.md
Normal file
@ -0,0 +1,15 @@
|
||||
# CreateHookOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**active** | Option<**bool**> | | [optional][default to false]
|
||||
**branch_filter** | Option<**String**> | | [optional]
|
||||
**config** | **::std::collections::HashMap<String, String>** | CreateHookOptionConfig has all config options in it required are \"content_type\" and \"url\" Required |
|
||||
**events** | Option<**Vec<String>**> | | [optional]
|
||||
**r#type** | **String** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
11
crates/gitea_raw_client/docs/CreateIssueCommentOption.md
Normal file
11
crates/gitea_raw_client/docs/CreateIssueCommentOption.md
Normal file
@ -0,0 +1,11 @@
|
||||
# CreateIssueCommentOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**body** | **String** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
19
crates/gitea_raw_client/docs/CreateIssueOption.md
Normal file
19
crates/gitea_raw_client/docs/CreateIssueOption.md
Normal file
@ -0,0 +1,19 @@
|
||||
# CreateIssueOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**assignee** | Option<**String**> | deprecated | [optional]
|
||||
**assignees** | Option<**Vec<String>**> | | [optional]
|
||||
**body** | Option<**String**> | | [optional]
|
||||
**closed** | Option<**bool**> | | [optional]
|
||||
**due_date** | Option<**String**> | | [optional]
|
||||
**labels** | Option<**Vec<i64>**> | list of label ids | [optional]
|
||||
**milestone** | Option<**i64**> | milestone id | [optional]
|
||||
**r#ref** | Option<**String**> | | [optional]
|
||||
**title** | **String** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
13
crates/gitea_raw_client/docs/CreateKeyOption.md
Normal file
13
crates/gitea_raw_client/docs/CreateKeyOption.md
Normal file
@ -0,0 +1,13 @@
|
||||
# CreateKeyOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**key** | **String** | An armored SSH key to add |
|
||||
**read_only** | Option<**bool**> | Describe if the key has only read access or read/write | [optional]
|
||||
**title** | **String** | Title of the key to add |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
13
crates/gitea_raw_client/docs/CreateLabelOption.md
Normal file
13
crates/gitea_raw_client/docs/CreateLabelOption.md
Normal file
@ -0,0 +1,13 @@
|
||||
# CreateLabelOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**color** | **String** | |
|
||||
**description** | Option<**String**> | | [optional]
|
||||
**name** | **String** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
14
crates/gitea_raw_client/docs/CreateMilestoneOption.md
Normal file
14
crates/gitea_raw_client/docs/CreateMilestoneOption.md
Normal file
@ -0,0 +1,14 @@
|
||||
# CreateMilestoneOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**description** | Option<**String**> | | [optional]
|
||||
**due_on** | Option<**String**> | | [optional]
|
||||
**state** | Option<**String**> | | [optional]
|
||||
**title** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -0,0 +1,12 @@
|
||||
# CreateOAuth2ApplicationOptions
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
**redirect_uris** | Option<**Vec<String>**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
17
crates/gitea_raw_client/docs/CreateOrgOption.md
Normal file
17
crates/gitea_raw_client/docs/CreateOrgOption.md
Normal file
@ -0,0 +1,17 @@
|
||||
# CreateOrgOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**description** | Option<**String**> | | [optional]
|
||||
**full_name** | Option<**String**> | | [optional]
|
||||
**location** | Option<**String**> | | [optional]
|
||||
**repo_admin_change_team_access** | Option<**bool**> | | [optional]
|
||||
**username** | **String** | |
|
||||
**visibility** | Option<**String**> | possible values are `public` (default), `limited` or `private` | [optional]
|
||||
**website** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
19
crates/gitea_raw_client/docs/CreatePullRequestOption.md
Normal file
19
crates/gitea_raw_client/docs/CreatePullRequestOption.md
Normal file
@ -0,0 +1,19 @@
|
||||
# CreatePullRequestOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**assignee** | Option<**String**> | | [optional]
|
||||
**assignees** | Option<**Vec<String>**> | | [optional]
|
||||
**base** | Option<**String**> | | [optional]
|
||||
**body** | Option<**String**> | | [optional]
|
||||
**due_date** | Option<**String**> | | [optional]
|
||||
**head** | Option<**String**> | | [optional]
|
||||
**labels** | Option<**Vec<i64>**> | | [optional]
|
||||
**milestone** | Option<**i64**> | | [optional]
|
||||
**title** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
14
crates/gitea_raw_client/docs/CreatePullReviewComment.md
Normal file
14
crates/gitea_raw_client/docs/CreatePullReviewComment.md
Normal file
@ -0,0 +1,14 @@
|
||||
# CreatePullReviewComment
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**body** | Option<**String**> | | [optional]
|
||||
**new_position** | Option<**i64**> | if comment to new file line or 0 | [optional]
|
||||
**old_position** | Option<**i64**> | if comment to old file line or 0 | [optional]
|
||||
**path** | Option<**String**> | the tree path | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
14
crates/gitea_raw_client/docs/CreatePullReviewOptions.md
Normal file
14
crates/gitea_raw_client/docs/CreatePullReviewOptions.md
Normal file
@ -0,0 +1,14 @@
|
||||
# CreatePullReviewOptions
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**body** | Option<**String**> | | [optional]
|
||||
**comments** | Option<[**Vec<crate::models::CreatePullReviewComment>**](CreatePullReviewComment.md)> | | [optional]
|
||||
**commit_id** | Option<**String**> | | [optional]
|
||||
**event** | Option<**String**> | ReviewStateType review state type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
16
crates/gitea_raw_client/docs/CreateReleaseOption.md
Normal file
16
crates/gitea_raw_client/docs/CreateReleaseOption.md
Normal file
@ -0,0 +1,16 @@
|
||||
# CreateReleaseOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**body** | Option<**String**> | | [optional]
|
||||
**draft** | Option<**bool**> | | [optional]
|
||||
**name** | Option<**String**> | | [optional]
|
||||
**prerelease** | Option<**bool**> | | [optional]
|
||||
**tag_name** | **String** | |
|
||||
**target_commitish** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
21
crates/gitea_raw_client/docs/CreateRepoOption.md
Normal file
21
crates/gitea_raw_client/docs/CreateRepoOption.md
Normal file
@ -0,0 +1,21 @@
|
||||
# CreateRepoOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**auto_init** | Option<**bool**> | Whether the repository should be auto-initialized? | [optional]
|
||||
**default_branch** | Option<**String**> | DefaultBranch of the repository (used when initializes and in template) | [optional]
|
||||
**description** | Option<**String**> | Description of the repository to create | [optional]
|
||||
**gitignores** | Option<**String**> | Gitignores to use | [optional]
|
||||
**issue_labels** | Option<**String**> | Label-Set to use | [optional]
|
||||
**license** | Option<**String**> | License to use | [optional]
|
||||
**name** | **String** | Name of the repository to create |
|
||||
**private** | Option<**bool**> | Whether the repository is private | [optional]
|
||||
**readme** | Option<**String**> | Readme of the repository to create | [optional]
|
||||
**template** | Option<**bool**> | Whether the repository is template | [optional]
|
||||
**trust_model** | Option<**String**> | TrustModel of the repository | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
14
crates/gitea_raw_client/docs/CreateStatusOption.md
Normal file
14
crates/gitea_raw_client/docs/CreateStatusOption.md
Normal file
@ -0,0 +1,14 @@
|
||||
# CreateStatusOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**context** | Option<**String**> | | [optional]
|
||||
**description** | Option<**String**> | | [optional]
|
||||
**state** | Option<**String**> | CommitStatusState holds the state of a CommitStatus It can be \"pending\", \"success\", \"error\", \"failure\", and \"warning\" | [optional]
|
||||
**target_url** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
13
crates/gitea_raw_client/docs/CreateTagOption.md
Normal file
13
crates/gitea_raw_client/docs/CreateTagOption.md
Normal file
@ -0,0 +1,13 @@
|
||||
# CreateTagOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**message** | Option<**String**> | | [optional]
|
||||
**tag_name** | **String** | |
|
||||
**target** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
17
crates/gitea_raw_client/docs/CreateTeamOption.md
Normal file
17
crates/gitea_raw_client/docs/CreateTeamOption.md
Normal file
@ -0,0 +1,17 @@
|
||||
# CreateTeamOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**can_create_org_repo** | Option<**bool**> | | [optional]
|
||||
**description** | Option<**String**> | | [optional]
|
||||
**includes_all_repositories** | Option<**bool**> | | [optional]
|
||||
**name** | **String** | |
|
||||
**permission** | Option<**String**> | | [optional]
|
||||
**units** | Option<**Vec<String>**> | | [optional]
|
||||
**units_map** | Option<**::std::collections::HashMap<String, String>**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
20
crates/gitea_raw_client/docs/CreateUserOption.md
Normal file
20
crates/gitea_raw_client/docs/CreateUserOption.md
Normal file
@ -0,0 +1,20 @@
|
||||
# CreateUserOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**email** | **String** | |
|
||||
**full_name** | Option<**String**> | | [optional]
|
||||
**login_name** | Option<**String**> | | [optional]
|
||||
**must_change_password** | Option<**bool**> | | [optional]
|
||||
**password** | **String** | |
|
||||
**restricted** | Option<**bool**> | | [optional]
|
||||
**send_notify** | Option<**bool**> | | [optional]
|
||||
**source_id** | Option<**i64**> | | [optional]
|
||||
**username** | **String** | |
|
||||
**visibility** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
13
crates/gitea_raw_client/docs/CreateWikiPageOptions.md
Normal file
13
crates/gitea_raw_client/docs/CreateWikiPageOptions.md
Normal file
@ -0,0 +1,13 @@
|
||||
# CreateWikiPageOptions
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**content_base64** | Option<**String**> | content must be base64 encoded | [optional]
|
||||
**message** | Option<**String**> | optional commit message summarizing the change | [optional]
|
||||
**title** | Option<**String**> | page title. leave empty to keep unchanged | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
15
crates/gitea_raw_client/docs/Cron.md
Normal file
15
crates/gitea_raw_client/docs/Cron.md
Normal file
@ -0,0 +1,15 @@
|
||||
# Cron
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**exec_times** | Option<**i64**> | | [optional]
|
||||
**name** | Option<**String**> | | [optional]
|
||||
**next** | Option<**String**> | | [optional]
|
||||
**prev** | Option<**String**> | | [optional]
|
||||
**schedule** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
11
crates/gitea_raw_client/docs/DeleteEmailOption.md
Normal file
11
crates/gitea_raw_client/docs/DeleteEmailOption.md
Normal file
@ -0,0 +1,11 @@
|
||||
# DeleteEmailOption
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**emails** | Option<**Vec<String>**> | email addresses to delete | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
18
crates/gitea_raw_client/docs/DeleteFileOptions.md
Normal file
18
crates/gitea_raw_client/docs/DeleteFileOptions.md
Normal file
@ -0,0 +1,18 @@
|
||||
# DeleteFileOptions
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**author** | Option<[**crate::models::Identity**](Identity.md)> | | [optional]
|
||||
**branch** | Option<**String**> | branch (optional) to base this file from. if not given, the default branch is used | [optional]
|
||||
**committer** | Option<[**crate::models::Identity**](Identity.md)> | | [optional]
|
||||
**dates** | Option<[**crate::models::CommitDateOptions**](CommitDateOptions.md)> | | [optional]
|
||||
**message** | Option<**String**> | message (optional) for the commit of this file. if not supplied, a default message will be used | [optional]
|
||||
**new_branch** | Option<**String**> | new_branch (optional) will make a new branch from `branch` before creating the file | [optional]
|
||||
**sha** | **String** | sha is the SHA for the file that already exists |
|
||||
**signoff** | Option<**bool**> | Add a Signed-off-by trailer by the committer at the end of the commit log message. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
19
crates/gitea_raw_client/docs/DeployKey.md
Normal file
19
crates/gitea_raw_client/docs/DeployKey.md
Normal file
@ -0,0 +1,19 @@
|
||||
# DeployKey
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
**fingerprint** | Option<**String**> | | [optional]
|
||||
**id** | Option<**i64**> | | [optional]
|
||||
**key** | Option<**String**> | | [optional]
|
||||
**key_id** | Option<**i64**> | | [optional]
|
||||
**read_only** | Option<**bool**> | | [optional]
|
||||
**repository** | Option<[**crate::models::Repository**](Repository.md)> | | [optional]
|
||||
**title** | Option<**String**> | | [optional]
|
||||
**url** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
12
crates/gitea_raw_client/docs/DismissPullReviewOptions.md
Normal file
12
crates/gitea_raw_client/docs/DismissPullReviewOptions.md
Normal file
@ -0,0 +1,12 @@
|
||||
# DismissPullReviewOptions
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**message** | Option<**String**> | | [optional]
|
||||
**priors** | Option<**bool**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user