Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What was missed
Issue #78 specified the exact interface signatures and
PullRequestfields to deliver. Three omissions were made:1.
vcs.PRReadermissing two methods:GetFileContentAtRef(ctx context.Context, owner, repo, path, ref string) (string, error)— needed to fetch file content at a specific commit ref (distinct fromvcs.FileReader.GetFileContentwhich uses the default branch)GetCommitStatuses(ctx context.Context, owner, repo, sha string) ([]CommitStatus, error)— needed by downstream issues (#80, #82) to check CI status before posting reviews2.
vcs.Reviewermissing one method:DismissReview(ctx context.Context, owner, repo string, number int, reviewID int64, message string) error— required to dismiss stale reviews when HEAD moves3.
vcs.PullRequestmissing two fields:Number int— issue #78 notes this is absent fromgitea.PullRequestand was explicitly added to the vcs type so downstream code doesn't thread the CLI flag through every helperBase struct { Ref string }— needed for branch-targeting logic in the GitHub client (#80)Source
vcs/interfaces.go,vcs/types.goWhat needs to happen
GetFileContentAtRefandGetCommitStatusestovcs.PRReaderDismissReviewtovcs.ReviewerNumber intandBase struct { Ref string }fields tovcs.PullRequestCommitStatustype is already defined invcs/types.go— no new type neededvcs/check_test.gocompile-time check gaps documentation if the gitea.Client gaps changego build ./...andgo test ./...passReferences
rodin referenced this issue2026-05-12 19:39:02 +00:00