Skip to content

Commit

Permalink
Fixed get call issue in issue and pull_request table (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdatasourav authored Oct 27, 2023
1 parent 7bfba81 commit 9d5c507
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions github/table_github_issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package github
import (
"context"
"fmt"
"time"

"github.com/shurcooL/githubv4"
"github.com/turbot/steampipe-plugin-github/github/models"
"time"

"github.com/turbot/steampipe-plugin-sdk/v5/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v5/plugin"
Expand Down Expand Up @@ -204,7 +205,7 @@ func tableGitHubRepositoryIssueGet(ctx context.Context, d *plugin.QueryData, h *
RateLimit models.RateLimit
Repository struct {
Issue models.Issue `graphql:"issue(number: $issueNumber)"`
} `graphql:"repository(owner: $owner, name: $name)"`
} `graphql:"repository(owner: $owner, name: $repo)"`
}

variables := map[string]interface{}{
Expand Down
3 changes: 2 additions & 1 deletion github/table_github_pull_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package github
import (
"context"
"fmt"

"github.com/shurcooL/githubv4"
"github.com/turbot/steampipe-plugin-github/github/models"
"github.com/turbot/steampipe-plugin-sdk/v5/grpc/proto"
Expand Down Expand Up @@ -194,7 +195,7 @@ func tableGitHubPullRequestGet(ctx context.Context, d *plugin.QueryData, h *plug
RateLimit models.RateLimit
Repository struct {
PullRequest models.PullRequest `graphql:"pullRequest(number: $number)"`
} `graphql:"repository(owner: $owner, name: $name)"`
} `graphql:"repository(owner: $owner, name: $repo)"`
}

variables := map[string]interface{}{
Expand Down

0 comments on commit 9d5c507

Please sign in to comment.