Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Iofel committed Jun 7, 2022
1 parent 3188f97 commit d57eeea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/githubPRStatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func GetGithubPRStatus(ctx context.Context, repoLimiter *time.Ticker, repo Repo,
State string
Contexts struct {
Nodes []struct {
__typename string
Typename string `graphql:"__typename"`
StatusContext struct {
Context string
TargetURL string
Expand Down Expand Up @@ -75,7 +75,7 @@ func GetGithubPRStatus(ctx context.Context, repoLimiter *time.Ticker, repo Repo,
var statuses []GithubStatusContext

for _, status := range lastCommit.Contexts.Nodes {
if status.__typename == "StatusContext" {
if status.Typename == "StatusContext" {
statuses = append(statuses, GithubStatusContext{
Context: status.StatusContext.Context,
TargetURL: &status.StatusContext.TargetURL,
Expand Down

0 comments on commit d57eeea

Please sign in to comment.