Skip to content

Commit

Permalink
Add columns base_ref and head_ref in table github_pull_request closes #…
Browse files Browse the repository at this point in the history
…222 (#223)

Co-authored-by: Ved misra <47312748+misraved@users.noreply.github.com>
  • Loading branch information
ParthaI and misraved committed Dec 22, 2022
1 parent 2152b44 commit 9800709
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions github/table_github_pull_request.go
Expand Up @@ -32,6 +32,8 @@ func gitHubPullRequestColumns() []*plugin.Column {
{Name: "deletions", Type: proto.ColumnType_INT, Hydrate: tableGitHubPullRequestGet, Description: "The number of deletions in this PR."},
{Name: "diff_url", Type: proto.ColumnType_STRING, Description: "The URL of the Diff page in GitHub."},
{Name: "draft", Type: proto.ColumnType_BOOL, Description: "If true, the PR is in draft."},
{Name: "base_ref", Type: proto.ColumnType_STRING, Description: "The base branch of the PR in GitHub.", Transform: transform.FromField("Base.Ref")},
{Name: "head_ref", Type: proto.ColumnType_STRING, Description: "The head branch of the PR in GitHub.", Transform: transform.FromField("Head.Ref")},
{Name: "html_url", Type: proto.ColumnType_STRING, Description: "The URL of the PR page in GitHub."},
{Name: "id", Type: proto.ColumnType_INT, Description: "The unique ID number of the PR issue."},
{Name: "issue_url", Type: proto.ColumnType_STRING, Description: "The URL of the Issue page in GitHub."},
Expand Down

0 comments on commit 9800709

Please sign in to comment.