Documentation
¶
Overview ¶
Package github wraps the GitHub REST API v3 as a wick connector. One instance = one GitHub account or organisation (token + optional custom base URL for GitHub Enterprise). Operations cover the most common LLM-driven workflows: listing repos/issues/PRs, reading file contents, creating issues, and posting comments.
File layout:
- connector.go — Meta, Configs, Input structs, Operations, thin handlers
- service.go — URL construction, input validation, response shaping
- repo.go — outbound HTTP via http.NewRequestWithContext
Index ¶
- Constants
- func HealthCheck(c *connector.Ctx) ([]connector.OpHealth, error)
- func Meta() connector.Meta
- func Operations() []connector.Category
- type AddAssigneesInput
- type AddCommentInput
- type AddLabelsInput
- type CompareCommitsInput
- type Configs
- type CreateBranchInput
- type CreateForkInput
- type CreateHookInput
- type CreateIssueInput
- type CreateOrUpdateFileInput
- type CreatePRInput
- type CreateReleaseInput
- type CreateRepoInput
- type CreateReviewCommentInput
- type CreateReviewInput
- type DeleteCommentInput
- type DeleteRefInput
- type DeleteReleaseInput
- type DispatchWorkflowInput
- type GetCommitInput
- type GetFileInput
- type GetIssueInput
- type GetLatestReleaseInput
- type GetMeInput
- type GetPRDiffInput
- type GetPRInput
- type GetReleaseInput
- type GetRepoInput
- type ListBranchesInput
- type ListCollaboratorsInput
- type ListCommitsInput
- type ListForksInput
- type ListHooksInput
- type ListIssueCommentsInput
- type ListIssuesInput
- type ListPRFilesInput
- type ListPRsInput
- type ListReleasesInput
- type ListReposInput
- type ListReviewCommentsInput
- type ListReviewsInput
- type ListStargazersInput
- type ListTagsInput
- type ListWorkflowRunsInput
- type ListWorkflowsInput
- type MergePRInput
- type RemoveLabelInput
- type RequestReviewersInput
- type SearchCodeInput
- type SearchIssuesInput
- type SearchReposInput
- type StarRepoInput
- type UnstarRepoInput
- type UpdateCommentInput
- type UpdateIssueInput
- type UpdatePRInput
- type UpdateReleaseInput
- type UpdateRepoInput
Constants ¶
const Key = "github"
Variables ¶
This section is empty.
Functions ¶
func HealthCheck ¶ added in v0.18.1
HealthCheck verifies the configured token by calling GET /user. It reports a single OpHealth entry ("auth"): OK on a 2xx response, or OK=false with GitHub's error message otherwise. Surfaced in the admin UI's "Check Permissions" button when wired into the connector module.
func Operations ¶
Operations returns the LLM-callable actions for this connector, grouped into human-facing categories for the admin UI.
Types ¶
type AddAssigneesInput ¶ added in v0.18.2
type AddAssigneesInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Number int `wick:"required;desc=Issue or PR number."`
Assignees string `wick:"required;desc=Comma-separated GitHub logins to assign."`
}
AddAssigneesInput assigns users to an issue or PR.
type AddCommentInput ¶
type AddCommentInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Number int `wick:"required;desc=Issue or PR number."`
Body string `wick:"textarea;required;desc=Comment body (Markdown supported)."`
}
AddCommentInput posts a comment on an issue or PR.
type AddLabelsInput ¶ added in v0.18.2
type AddLabelsInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Number int `wick:"required;desc=Issue or PR number."`
Labels string `wick:"required;desc=Comma-separated label names to add (additive)."`
}
AddLabelsInput adds labels to an issue or PR.
type CompareCommitsInput ¶ added in v0.18.2
type CompareCommitsInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Base string `wick:"required;desc=Base ref (branch, tag, or SHA)."`
Head string `wick:"required;desc=Head ref (branch, tag, or SHA) to compare against base."`
}
CompareCommitsInput compares two commits/branches.
type Configs ¶
type Configs struct {
BaseURL string `` /* 128-byte string literal not displayed */
Token string `` /* 143-byte string literal not displayed */
}
Configs is the per-instance credential set.
type CreateBranchInput ¶ added in v0.18.2
type CreateBranchInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Branch string `wick:"required;desc=Name of the new branch."`
FromBranch string `wick:"desc=Branch to branch off. Default: the repo's default branch."`
Sha string `wick:"desc=Commit SHA to point the new branch at. Overrides from_branch when set."`
}
CreateBranchInput creates a new branch from another branch or SHA.
type CreateForkInput ¶ added in v0.18.1
type CreateForkInput struct {
Owner string `wick:"required;desc=Repository owner to fork from."`
Repo string `wick:"required;desc=Repository name to fork."`
Organization string `wick:"desc=Org to fork into. Default: the authenticated user's account."`
Name string `wick:"desc=Name for the new fork. Default: same as source repo."`
}
CreateForkInput forks a repository.
type CreateHookInput ¶ added in v0.18.2
type CreateHookInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
URL string `wick:"required;desc=Payload URL the hook POSTs to."`
Events string `wick:"desc=Comma-separated events to subscribe to. Default: push."`
Secret string `wick:"secret;desc=Optional secret used to sign hook payloads."`
ContentType string `wick:"desc=json | form. Default: json."`
}
CreateHookInput creates a repository webhook.
type CreateIssueInput ¶
type CreateIssueInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Title string `wick:"required;desc=Issue title."`
Body string `wick:"textarea;desc=Issue body (Markdown supported)."`
Labels string `wick:"desc=Comma-separated label names. Example: bug,help wanted"`
}
CreateIssueInput creates a new issue.
type CreateOrUpdateFileInput ¶ added in v0.18.1
type CreateOrUpdateFileInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Path string `wick:"required;desc=file path in repo. Example: src/main.go"`
Content string `wick:"textarea;required;desc=new file content, PLAINTEXT — will be base64-encoded."`
Message string `wick:"required;desc=commit message."`
Branch string `wick:"desc=target branch; default repo default."`
Sha string `wick:"desc=blob sha of the file being replaced; required by GitHub when updating an existing file."`
}
CreateOrUpdateFileInput creates or updates a single file via the contents API.
type CreatePRInput ¶ added in v0.18.1
type CreatePRInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Title string `wick:"required;desc=Pull request title."`
Head string `wick:"required;desc=source branch (e.g. feature-x or owner:branch for cross-fork)."`
Base string `wick:"required;desc=target branch e.g. main/master."`
Body string `wick:"textarea;desc=Pull request body (Markdown supported)."`
Draft bool `wick:"desc=Open as a draft PR. Default: false."`
}
CreatePRInput opens a new pull request.
type CreateReleaseInput ¶ added in v0.18.1
type CreateReleaseInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
TagName string `wick:"required;desc=Git tag to create/use for the release. Example: v1.2.0"`
Name string `wick:"desc=Release title. Default: the tag name."`
Body string `wick:"textarea;desc=Release notes (Markdown supported)."`
TargetCommitish string `wick:"desc=Branch or commit the tag is created from. Default: default branch."`
Draft bool `wick:"desc=Create as a draft (unpublished). Default: false."`
Prerelease bool `wick:"desc=Mark as a pre-release. Default: false."`
}
CreateReleaseInput publishes a new release.
type CreateRepoInput ¶ added in v0.18.2
type CreateRepoInput struct {
Name string `wick:"required;desc=Repository name."`
Description string `wick:"desc=Short repo description."`
Private bool `wick:"desc=Create as private. Default: false (public)."`
AutoInit bool `wick:"desc=Initialise with an empty README. Default: false."`
Org string `wick:"desc=Organisation to create the repo under. Default: the authenticated user."`
}
CreateRepoInput creates a repository for the user or an org.
type CreateReviewCommentInput ¶ added in v0.18.2
type CreateReviewCommentInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Number int `wick:"required;desc=PR number."`
Body string `wick:"textarea;required;desc=Comment body (Markdown supported)."`
CommitID string `wick:"required;desc=SHA of the commit to comment on (usually the PR head)."`
Path string `wick:"required;desc=File path the comment applies to."`
Line int `wick:"required;desc=Line number in the file's diff to attach the comment to."`
Side string `wick:"desc=LEFT | RIGHT (which side of the diff). Default RIGHT."`
}
CreateReviewCommentInput posts an inline diff comment on a pull request.
type CreateReviewInput ¶ added in v0.18.2
type CreateReviewInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Number int `wick:"required;desc=PR number."`
Event string `wick:"desc=APPROVE | REQUEST_CHANGES | COMMENT. Default COMMENT."`
Body string `wick:"textarea;desc=Review body (Markdown). Required by GitHub when event is REQUEST_CHANGES or COMMENT."`
CommitID string `wick:"desc=SHA the review applies to. Default: the PR's latest commit."`
}
CreateReviewInput submits a formal review on a pull request.
type DeleteCommentInput ¶ added in v0.18.2
type DeleteCommentInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
CommentID int `wick:"required;desc=Comment ID to delete."`
}
DeleteCommentInput removes an issue/PR comment.
type DeleteRefInput ¶ added in v0.18.2
type DeleteRefInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Branch string `wick:"required;desc=Branch name to delete."`
}
DeleteRefInput deletes a branch ref.
type DeleteReleaseInput ¶ added in v0.18.1
type DeleteReleaseInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
ReleaseID int `wick:"required;desc=Release ID to delete."`
}
DeleteReleaseInput removes a release.
type DispatchWorkflowInput ¶ added in v0.18.2
type DispatchWorkflowInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
WorkflowID string `wick:"required;desc=Numeric workflow ID or filename (e.g. ci.yml)."`
Ref string `wick:"required;desc=Git ref (branch or tag) to run the workflow on."`
Inputs string `wick:"textarea;desc=Optional JSON object of workflow inputs. Example: {\"env\":\"prod\"}"`
}
DispatchWorkflowInput triggers a workflow_dispatch event.
type GetCommitInput ¶ added in v0.18.2
type GetCommitInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Sha string `wick:"required;desc=Commit SHA (or branch/tag name)."`
}
GetCommitInput fetches a single commit.
type GetFileInput ¶
type GetFileInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Path string `wick:"required;desc=File path in repo. Example: README.md or src/main.go"`
Ref string `wick:"desc=Branch, tag, or commit SHA. Default: repo default branch."`
}
GetFileInput reads a file from a repository.
type GetIssueInput ¶ added in v0.18.1
type GetIssueInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Number int `wick:"required;desc=Issue number."`
}
GetIssueInput fetches a single issue.
type GetLatestReleaseInput ¶ added in v0.18.1
type GetLatestReleaseInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
}
GetLatestReleaseInput fetches the latest published release.
type GetMeInput ¶ added in v0.18.1
type GetMeInput struct{}
GetMeInput fetches the authenticated user. Takes no arguments.
type GetPRDiffInput ¶ added in v0.18.1
type GetPRDiffInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Number int `wick:"required;desc=PR number."`
MaxBytes int `wick:"desc=Truncate diff to this many bytes; 0 = no limit."`
}
GetPRDiffInput fetches the unified diff for a pull request.
type GetPRInput ¶ added in v0.18.1
type GetPRInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Number int `wick:"required;desc=PR number."`
}
GetPRInput fetches a single pull request.
type GetReleaseInput ¶ added in v0.18.1
type GetReleaseInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
ReleaseID int `wick:"required;desc=Release ID (numeric, from list_releases)."`
}
GetReleaseInput fetches a single release by ID.
type GetRepoInput ¶ added in v0.18.1
type GetRepoInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
}
GetRepoInput fetches a single repository.
type ListBranchesInput ¶ added in v0.18.1
type ListBranchesInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
PerPage int `wick:"desc=Results per page, max 100. Default: 30."`
}
ListBranchesInput lists branches in a repository.
type ListCollaboratorsInput ¶ added in v0.18.2
type ListCollaboratorsInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
PerPage int `wick:"desc=Results per page, max 100. Default: 30."`
}
ListCollaboratorsInput lists repository collaborators.
type ListCommitsInput ¶ added in v0.18.1
type ListCommitsInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Sha string `wick:"desc=Branch, tag, or commit SHA to start listing from."`
Path string `wick:"desc=Only commits touching this file path."`
Author string `wick:"desc=Filter by commit author (GitHub login or email)."`
PerPage int `wick:"desc=Results per page, max 100. Default: 30."`
}
ListCommitsInput lists commits in a repository.
type ListForksInput ¶ added in v0.18.1
type ListForksInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
PerPage int `wick:"desc=Results per page, max 100. Default: 30."`
}
ListForksInput lists the forks of a repository (who forked it).
type ListHooksInput ¶ added in v0.18.2
type ListHooksInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
PerPage int `wick:"desc=Results per page, max 100. Default: 30."`
}
ListHooksInput lists repository webhooks.
type ListIssueCommentsInput ¶ added in v0.18.1
type ListIssueCommentsInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Number int `wick:"required;desc=Issue or PR number."`
PerPage int `wick:"desc=Results per page, max 100. Default: 30."`
}
ListIssueCommentsInput lists comments on an issue or PR.
type ListIssuesInput ¶
type ListIssuesInput struct {
Owner string `wick:"required;desc=Repository owner (user or org). Example: octocat"`
Repo string `wick:"required;desc=Repository name. Example: hello-world"`
State string `wick:"desc=open | closed | all. Default: open."`
PerPage int `wick:"desc=Results per page, max 100. Default: 30."`
}
ListIssuesInput lists issues in a repository.
type ListPRFilesInput ¶ added in v0.18.1
type ListPRFilesInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Number int `wick:"required;desc=PR number."`
PerPage int `wick:"desc=Results per page, max 100. Default: 30."`
}
ListPRFilesInput lists the files changed in a pull request.
type ListPRsInput ¶
type ListPRsInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
State string `wick:"desc=open | closed | all. Default: open."`
PerPage int `wick:"desc=Results per page, max 100. Default: 30."`
}
ListPRsInput lists pull requests.
type ListReleasesInput ¶ added in v0.18.1
type ListReleasesInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
PerPage int `wick:"desc=Results per page, max 100. Default: 30."`
}
ListReleasesInput lists releases in a repository.
type ListReposInput ¶
type ListReposInput struct {
Affiliation string `wick:"desc=Comma-separated: owner,collaborator,organization_member. Default: owner."`
Visibility string `wick:"desc=all | public | private. Default: all."`
PerPage int `wick:"desc=Results per page, max 100. Default: 30."`
}
ListReposInput lists repositories visible to the token.
type ListReviewCommentsInput ¶ added in v0.18.2
type ListReviewCommentsInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Number int `wick:"required;desc=PR number."`
PerPage int `wick:"desc=Results per page, max 100. Default: 30."`
}
ListReviewCommentsInput lists inline review comments on a pull request.
type ListReviewsInput ¶ added in v0.18.2
type ListReviewsInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Number int `wick:"required;desc=PR number."`
PerPage int `wick:"desc=Results per page, max 100. Default: 30."`
}
ListReviewsInput lists the reviews on a pull request.
type ListStargazersInput ¶ added in v0.18.1
type ListStargazersInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
PerPage int `wick:"desc=Results per page, max 100. Default: 30."`
}
ListStargazersInput lists the users who starred a repository.
type ListTagsInput ¶ added in v0.18.1
type ListTagsInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
PerPage int `wick:"desc=Results per page, max 100. Default: 30."`
}
ListTagsInput lists tags in a repository.
type ListWorkflowRunsInput ¶ added in v0.18.2
type ListWorkflowRunsInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
PerPage int `wick:"desc=Results per page, max 100. Default: 30."`
}
ListWorkflowRunsInput lists GitHub Actions workflow runs.
type ListWorkflowsInput ¶ added in v0.18.2
type ListWorkflowsInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
PerPage int `wick:"desc=Results per page, max 100. Default: 30."`
}
ListWorkflowsInput lists GitHub Actions workflows.
type MergePRInput ¶ added in v0.18.1
type MergePRInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Number int `wick:"required;desc=PR number."`
MergeMethod string `wick:"desc=merge | squash | rebase. Default merge."`
CommitTitle string `wick:"desc=Title for the merge commit. Default: GitHub's auto-generated title."`
CommitMessage string `wick:"textarea;desc=Extra detail appended to the merge commit message."`
}
MergePRInput merges a pull request.
type RemoveLabelInput ¶ added in v0.18.2
type RemoveLabelInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Number int `wick:"required;desc=Issue or PR number."`
Name string `wick:"required;desc=Label name to remove."`
}
RemoveLabelInput removes a single label from an issue or PR.
type RequestReviewersInput ¶ added in v0.18.2
type RequestReviewersInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Number int `wick:"required;desc=PR number."`
Reviewers string `wick:"desc=Comma-separated GitHub logins to request review from."`
TeamReviewers string `wick:"desc=Comma-separated team slugs to request review from."`
}
RequestReviewersInput requests reviewers on a pull request.
type SearchCodeInput ¶ added in v0.18.2
type SearchCodeInput struct {
Q string `wick:"required;desc=GitHub code search query. Example: addClass in:file language:js repo:abc/web"`
PerPage int `wick:"desc=Results per page, max 100. Default: 30."`
}
SearchCodeInput searches code.
type SearchIssuesInput ¶ added in v0.18.2
type SearchIssuesInput struct {
Q string `wick:"required;desc=GitHub search query. Example: repo:abc/web is:open is:issue label:bug"`
PerPage int `wick:"desc=Results per page, max 100. Default: 30."`
}
SearchIssuesInput searches issues and pull requests.
type SearchReposInput ¶ added in v0.18.2
type SearchReposInput struct {
Q string `wick:"required;desc=GitHub search query. Example: language:go stars:>100"`
PerPage int `wick:"desc=Results per page, max 100. Default: 30."`
}
SearchReposInput searches repositories.
type StarRepoInput ¶ added in v0.18.1
type StarRepoInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
}
StarRepoInput stars a repository for the authenticated user.
type UnstarRepoInput ¶ added in v0.18.1
type UnstarRepoInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
}
UnstarRepoInput removes a star from a repository.
type UpdateCommentInput ¶ added in v0.18.2
type UpdateCommentInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
CommentID int `wick:"required;desc=Comment ID (numeric, from list_issue_comments)."`
Body string `wick:"textarea;required;desc=New comment body (Markdown supported)."`
}
UpdateCommentInput edits an existing issue/PR comment.
type UpdateIssueInput ¶ added in v0.18.1
type UpdateIssueInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Number int `wick:"required;desc=Issue number."`
Title string `wick:"desc=New issue title. Omit to leave unchanged."`
Body string `wick:"textarea;desc=New issue body (Markdown). Omit to leave unchanged."`
State string `wick:"desc=open | closed. Omit to leave unchanged."`
Labels string `wick:"desc=Comma-separated label names; replaces the existing set. Omit to leave unchanged."`
}
UpdateIssueInput edits an existing issue.
type UpdatePRInput ¶ added in v0.18.1
type UpdatePRInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Number int `wick:"required;desc=PR number."`
Title string `wick:"desc=New PR title. Omit to leave unchanged."`
Body string `wick:"textarea;desc=New PR body (Markdown). Omit to leave unchanged."`
State string `wick:"desc=open | closed. Omit to leave unchanged."`
Base string `wick:"desc=New base branch. Omit to leave unchanged."`
}
UpdatePRInput edits an existing pull request.
type UpdateReleaseInput ¶ added in v0.18.1
type UpdateReleaseInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
ReleaseID int `wick:"required;desc=Release ID to update."`
TagName string `wick:"desc=New git tag. Omit to leave unchanged."`
Name string `wick:"desc=New release title. Omit to leave unchanged."`
Body string `wick:"textarea;desc=New release notes (Markdown). Omit to leave unchanged."`
Draft bool `wick:"desc=Set draft state. Sent only when true."`
Prerelease bool `wick:"desc=Set pre-release state. Sent only when true."`
}
UpdateReleaseInput edits an existing release.
type UpdateRepoInput ¶ added in v0.18.2
type UpdateRepoInput struct {
Owner string `wick:"required;desc=Repository owner."`
Repo string `wick:"required;desc=Repository name."`
Name string `wick:"desc=New repo name. Omit to leave unchanged."`
Description string `wick:"desc=New description. Omit to leave unchanged."`
Private bool `wick:"desc=Set visibility private/public. Sent only when the input is present."`
DefaultBranch string `wick:"desc=New default branch. Omit to leave unchanged."`
Archived bool `wick:"desc=Archive/unarchive. Sent only when the input is present."`
}
UpdateRepoInput edits repository settings.