Skip to content

Commit

Permalink
Add run_attempt and previous_attempt_url to `github_actions_repos…
Browse files Browse the repository at this point in the history
…itory_workflow_run` (#463)
  • Loading branch information
tsibley authored Dec 26, 2024
1 parent 4634281 commit 2e32ebc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions github/table_github_actions_repository_workflow_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func tableGitHubActionsRepositoryWorkflowRun() *plugin.Table {
{Name: "jobs_url", Type: proto.ColumnType_STRING, Description: "The address for the workflow job GitHub web page."},
{Name: "logs_url", Type: proto.ColumnType_STRING, Description: "The address for the workflow logs GitHub web page."},
{Name: "rerun_url", Type: proto.ColumnType_STRING, Description: "The address for workflow rerun GitHub web page."},
{Name: "previous_attempt_url", Type: proto.ColumnType_STRING, Description: "The address for the previous attempt GitHub web page."},
{Name: "url", Type: proto.ColumnType_STRING, Description: "The address for the workflow run GitHub web page.", Transform: transform.FromField("URL")},
{Name: "workflow_url", Type: proto.ColumnType_STRING, Description: "The address for workflow GitHub web page."},

Expand All @@ -60,6 +61,7 @@ func tableGitHubActionsRepositoryWorkflowRun() *plugin.Table {
{Name: "head_repository", Type: proto.ColumnType_JSON, Description: "The head repository info for the workflow run."},
{Name: "pull_requests", Type: proto.ColumnType_JSON, Description: "The pull request details for the workflow run."},
{Name: "repository", Type: proto.ColumnType_JSON, Description: "The repository info for the workflow run."},
{Name: "run_attempt", Type: proto.ColumnType_INT, Description: "The attempt number of the workflow run."},
{Name: "run_started_at", Type: proto.ColumnType_TIMESTAMP, Transform: transform.FromField("RunStartedAt").Transform(convertTimestamp), Description: "Time when the workflow run was started."},
{Name: "updated_at", Type: proto.ColumnType_TIMESTAMP, Transform: transform.FromField("UpdatedAt").Transform(convertTimestamp), Description: "Time when the workflow run was updated."},
{Name: "actor", Type: proto.ColumnType_JSON, Description: "The user whom initiated the first instance of this workflow run."},
Expand Down

0 comments on commit 2e32ebc

Please sign in to comment.