We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8236a30 + c5e6671 commit 111f96cCopy full SHA for 111f96c
1 file changed
main.go
@@ -27,7 +27,11 @@ func main() {
27
func run() exitCode {
28
ctx := context.Background()
29
30
- owner, repo, err := repo.ParseRepo(os.Getenv("BUILDKITE_REPO"))
+ repoName, ok := os.LookupEnv("BUILDKITE_PULL_REQUEST_REPO")
31
+ if !ok {
32
+ repoName = os.Getenv("BUILDKITE_REPO")
33
+ }
34
+ owner, repo, err := repo.ParseRepo(repoName)
35
if err != nil {
36
fmt.Fprintf(os.Stderr, "Error parsing repo info: %s\n", err)
37
return exitError
0 commit comments