Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add columns base_ref and head_ref in table github_pull_request closes #222 #223

Merged
merged 3 commits into from
Dec 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions github/table_github_pull_request.go
Original file line number Diff line number Diff line change
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