Documentation
¶
Index ¶
- type Forge
- func (f *Forge) AddChange(repoName string, ch forge.Change, files ...forge.File) forge.Change
- func (f *Forge) AddComment(repoName string, n int, author, body string) forge.Comment
- func (f *Forge) As(user string) *Identity
- func (f *Forge) AutoMerge(_ context.Context, name string, n int) error
- func (f *Forge) AutoMergeOn(name string, n int) bool
- func (f *Forge) BeforePush(fn func())
- func (f *Forge) Change(repoName string, n int) forge.Change
- func (f *Forge) ChangeByHead(_ context.Context, name, head string) (forge.Change, bool, error)
- func (f *Forge) ChangeFiles(_ context.Context, name string, n int) ([]forge.File, error)
- func (f *Forge) ChangedPaths(_ context.Context, name, base, head string) ([]string, error)
- func (f *Forge) Changes(repoName string) []forge.Change
- func (f *Forge) ChangesForCommit(_ context.Context, name, sha string) ([]forge.Change, error)
- func (f *Forge) Checks(_ context.Context, name, sha string) ([]forge.Check, error)
- func (f *Forge) CloseChange(_ context.Context, name string, n int, deleteBranch bool) error
- func (f *Forge) Comments(_ context.Context, name string, n int) ([]forge.Comment, error)
- func (f *Forge) CommentsOf(repoName string, n int) []forge.Comment
- func (f *Forge) Commit(repoName, branch string, files map[string][]byte) string
- func (f *Forge) CreateComment(_ context.Context, name string, n int, body string) (forge.Comment, error)
- func (f *Forge) CreateDeployment(_ context.Context, name, environment, sha string, payload []byte) (forge.Deployment, error)
- func (f *Forge) CreateTag(_ context.Context, name, tag, sha string) error
- func (f *Forge) DefaultBranch(_ context.Context, name string) (string, error)
- func (f *Forge) Deployed(name, environment string) []forge.Deployment
- func (f *Forge) DeploymentLog(name string, id int64) string
- func (f *Forge) FailNext(method string, err error)
- func (f *Forge) FileAt(_ context.Context, name, path, ref string) ([]byte, error)
- func (f *Forge) GetChange(_ context.Context, name string, n int) (forge.Change, error)
- func (f *Forge) LinkCommit(repoName, sha string, n int)
- func (f *Forge) ListDeployments(_ context.Context, name, environment string) iter.Seq2[forge.Deployment, error]
- func (f *Forge) Merge(name string, n int, by string, at time.Time) string
- func (f *Forge) OpenChanges(_ context.Context, name, headPrefix string) ([]forge.Change, error)
- func (f *Forge) PushChange(_ context.Context, name string, req forge.ChangeRequest) (forge.Change, error)
- func (f *Forge) RepoSettings(_ context.Context, name string) (forge.RepoSettings, error)
- func (f *Forge) ResolveRef(_ context.Context, name, ref string) (string, error)
- func (f *Forge) SetChecks(repoName, sha string, checks ...forge.Check)
- func (f *Forge) SetDeploymentState(_ context.Context, name string, id int64, state forge.DeployState, ...) error
- func (f *Forge) SetSettings(name string, s forge.RepoSettings)
- func (f *Forge) Subtrees(_ context.Context, name, dir, ref string) (map[string]string, error)
- func (f *Forge) Tag(repoName, tag, sha string)
- func (f *Forge) Tags(repoName string) map[string]string
- func (f *Forge) UpdateComment(_ context.Context, name string, id int64, body string) error
- func (f *Forge) Viewer(context.Context) (string, error)
- type Identity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Forge ¶
func (*Forge) AddComment ¶
func (*Forge) BeforePush ¶
func (f *Forge) BeforePush(fn func())
func (*Forge) ChangeByHead ¶
func (*Forge) ChangeFiles ¶
func (*Forge) ChangedPaths ¶
func (*Forge) ChangesForCommit ¶
func (*Forge) CloseChange ¶
func (*Forge) CreateComment ¶
func (*Forge) CreateDeployment ¶
func (*Forge) DefaultBranch ¶
func (*Forge) LinkCommit ¶
func (*Forge) ListDeployments ¶
func (*Forge) OpenChanges ¶
func (*Forge) PushChange ¶
func (*Forge) RepoSettings ¶
func (*Forge) ResolveRef ¶
func (*Forge) SetDeploymentState ¶
func (*Forge) SetSettings ¶
func (f *Forge) SetSettings(name string, s forge.RepoSettings)
func (*Forge) UpdateComment ¶
type Identity ¶
type Identity struct {
*Forge
// contains filtered or unexported fields
}
func (*Identity) CreateComment ¶
func (*Identity) PushChange ¶
Click to show internal directories.
Click to hide internal directories.