This repository has been archived by the owner on Nov 22, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci/status): list of external jobs and fix when no jobs are found…
… for the pipeline
- Loading branch information
1 parent
178fdb0
commit 2f49658
Showing
4 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ _test | |
|
||
# VsCode | ||
.vscode/ | ||
.devcontainer | ||
|
||
# Dist binaries created at build with make rt | ||
/dist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package api | ||
|
||
import "github.com/xanzy/go-gitlab" | ||
|
||
var GetCommitStatuses = func(client *gitlab.Client, pid interface{}, sha string) ([]*gitlab.CommitStatus, error) { | ||
if client == nil { | ||
client = apiClient.Lab() | ||
} | ||
|
||
opt := &gitlab.GetCommitStatusesOptions{ | ||
All: gitlab.Bool(true), | ||
} | ||
|
||
statuses, _, err := client.Commits.GetCommitStatuses(pid, sha, opt, nil) | ||
if err != nil { | ||
return nil, err | ||
} | ||
return statuses, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters