mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-04 23:56:30 +00:00
Merge branch 'origin/main' into 'next-release/main'
This commit is contained in:
commit
f9d49251e3
2 changed files with 27 additions and 22 deletions
|
@ -80,7 +80,7 @@ func deploy(ctx context.Context, c *cli.Command) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
branch = repo.DefaultBranch
|
branch = repo.Branch
|
||||||
}
|
}
|
||||||
|
|
||||||
pipelineArg := c.Args().Get(1)
|
pipelineArg := c.Args().Get(1)
|
||||||
|
|
|
@ -46,29 +46,34 @@ type (
|
||||||
Admin bool `json:"admin"`
|
Admin bool `json:"admin"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TrustedConfiguration struct {
|
||||||
|
Network bool `json:"network"`
|
||||||
|
Volumes bool `json:"volumes"`
|
||||||
|
Security bool `json:"security"`
|
||||||
|
}
|
||||||
|
|
||||||
// Repo represents a repository.
|
// Repo represents a repository.
|
||||||
Repo struct {
|
Repo struct {
|
||||||
ID int64 `json:"id,omitempty"`
|
ID int64 `json:"id,omitempty"`
|
||||||
ForgeRemoteID string `json:"forge_remote_id"`
|
ForgeRemoteID string `json:"forge_remote_id"`
|
||||||
Owner string `json:"owner"`
|
Owner string `json:"owner"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
FullName string `json:"full_name"`
|
FullName string `json:"full_name"`
|
||||||
Avatar string `json:"avatar_url,omitempty"`
|
Avatar string `json:"avatar_url,omitempty"`
|
||||||
ForgeURL string `json:"forge_url,omitempty"`
|
ForgeURL string `json:"forge_url,omitempty"`
|
||||||
Clone string `json:"clone_url,omitempty"`
|
Clone string `json:"clone_url,omitempty"`
|
||||||
DefaultBranch string `json:"default_branch,omitempty"`
|
Branch string `json:"default_branch,omitempty"`
|
||||||
SCMKind string `json:"scm,omitempty"`
|
SCMKind string `json:"scm,omitempty"`
|
||||||
Timeout int64 `json:"timeout,omitempty"`
|
Timeout int64 `json:"timeout,omitempty"`
|
||||||
Visibility string `json:"visibility"`
|
Visibility string `json:"visibility"`
|
||||||
IsSCMPrivate bool `json:"private"`
|
IsSCMPrivate bool `json:"private"`
|
||||||
IsTrusted bool `json:"trusted"`
|
Trusted TrustedConfiguration `json:"trusted"`
|
||||||
IsGated bool `json:"gated,omitempty"` // TODO: remove in next major release
|
RequireApproval ApprovalMode `json:"require_approval"`
|
||||||
RequireApproval ApprovalMode `json:"require_approval"`
|
IsActive bool `json:"active"`
|
||||||
IsActive bool `json:"active"`
|
AllowPull bool `json:"allow_pr"`
|
||||||
AllowPullRequests bool `json:"allow_pr"`
|
Config string `json:"config_file"`
|
||||||
Config string `json:"config_file"`
|
CancelPreviousPipelineEvents []string `json:"cancel_previous_pipeline_events"`
|
||||||
CancelPreviousPipelineEvents []string `json:"cancel_previous_pipeline_events"`
|
NetrcTrustedPlugins []string `json:"netrc_trusted"`
|
||||||
NetrcOnlyTrusted bool `json:"netrc_only_trusted"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// RepoPatch defines a repository patch request.
|
// RepoPatch defines a repository patch request.
|
||||||
|
|
Loading…
Reference in a new issue