Skip to content

Commit 0e9def0

Browse files
committed
fix(governctl): Add unknown commits as exception
Because of how governctl structures temp repos it makes it impossible for checkpatch to look behind and check if a commit in a body is referenced correctly. This is fine. It can be checked by hand with the script and can also be observed in GitHub if the sha mentioned is invalid. Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
1 parent 7dbeca9 commit 0e9def0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/governctl/pr/check/patch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func NewPatch() *cobra.Command {
6666
}
6767

6868
func (opts *Patch) Run(ctx context.Context, args []string) error {
69-
var extraIgnores []string
69+
var extraIgnores = []string{"UNKNOWN_COMMIT_ID"}
7070

7171
ghOrg, ghRepo, ghPrId, err := cmdutils.ParseOrgRepoAndPullRequestArgs(args)
7272
if err != nil {

0 commit comments

Comments
 (0)