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 table github_actions_repository_workflow_run closes #144 #146

Merged
merged 8 commits into from
Feb 8, 2022

Conversation

ParthaI
Copy link
Contributor

@ParthaI ParthaI commented Feb 3, 2022

Example query results

Results
> select
  *
from
  github_action_repository_workflow_run
where
  repository_full_name = 'turbot/steampipe' limit 5;
+----------------------+------------+-------------------+-------------+----------------------+------------+-----------+------------+----------------------------------------------------------------------
| repository_full_name | id         | event             | workflow_id | node_id              | conclusion | status    | run_number | artifacts_url                                                        
+----------------------+------------+-------------------+-------------+----------------------+------------+-----------+------------+----------------------------------------------------------------------
| turbot/steampipe     | 1783579669 | workflow_dispatch | 5127407     | WFR_kwLOE7GVQM5qT0QV | success    | completed | 228        | https://api.github.com/repos/turbot/steampipe/actions/runs/1783579669
|                      |            |                   |             |                      |            |           |            |                                                                      
|                      |            |                   |             |                      |            |           |            |                                                                      
|                      |            |                   |             |                      |            |           |            |                                                                      
|                      |            |                   |             |                      |            |           |            |                                                                      
| turbot/steampipe     | 1783456223 | pull_request      | 5127408     | WFR_kwLOE7GVQM5qTWHf | success    | completed | 2642       | https://api.github.com/repos/turbot/steampipe/actions/runs/1783456223
|                      |            |                   |             |                      |            |           |            |                                                                      
|                      |            |                   |             |                      |            |           |            |                                                                      
|                      |            |                   |             |                      |            |           |            |                                                                      
|                      |            |                   |             |                      |            |           |            |                                                                      
| turbot/steampipe     | 1783340709 | workflow_dispatch | 5127407     | WFR_kwLOE7GVQM5qS56l | success    | completed | 227        | https://api.github.com/repos/turbot/steampipe/actions/runs/1783340709
|                      |            |                   |             |                      |            |           |            |                                                                      
|                      |            |                   |             |                      |            |           |            |                                                                      
|                      |            |                   |             |                      |            |           |            |                                                                      
|                      |            |                   |             |                      |            |           |            |                                                                      
| turbot/steampipe     | 1783340663 | workflow_dispatch | 5127407     | WFR_kwLOE7GVQM5qS553 | cancelled  | completed | 226        | https://api.github.com/repos/turbot/steampipe/actions/runs/1783340663
|                      |            |                   |             |                      |            |           |            |                                                                      
|                      |            |                   |             |                      |            |           |            |                                                                      
|                      |            |                   |             |                      |            |           |            |                                                                      
|                      |            |                   |             |                      |            |           |            |                                                                      
| turbot/steampipe     | 1783551879 | workflow_dispatch | 18827782    | WFR_kwLOE7GVQM5qTteH | success    | completed | 36         | https://api.github.com/repos/turbot/steampipe/actions/runs/1783551879
|                      |            |                   |             |                      |            |           |            |                                                                      
|                      |            |                   |             |                      |            |           |            |                                                                      
|                      |            |                   |             |                      |            |           |            |                                                                      
|                      |            |                   |             |                      |            |           |            |                                                                      
+----------------------+------------+-------------------+-------------+----------------------+------------+-----------+------------+----------------------------------------------------------------------

> select
  id,
  event,
  workflow_id,
  conclusion,
  status,
  run_number,
  workflow_url,
  head_commit,
  head_branch
from
    github_action_repository_workflow_run
where
  repository_full_name = 'ParthaI/turbot-mods' and conclusion = 'failure' limit 2;
+-----------+-------+-------------+------------+-----------+------------+-----------------------------------------------------------------------------+---------------------------------------------------
| id        | event | workflow_id | conclusion | status    | run_number | workflow_url                                                                | head_commit                                       
+-----------+-------+-------------+------------+-----------+------------+-----------------------------------------------------------------------------+---------------------------------------------------
| 921980352 | push  | 10167599    | failure    | completed | 15         | https://api.github.com/repos/ParthaI/turbot-mods/actions/workflows/10167599 | {"author":{"email":"partha@turbot.com","name":"Par
| 921809161 | push  | 10167599    | failure    | completed | 10         | https://api.github.com/repos/ParthaI/turbot-mods/actions/workflows/10167599 | {"author":{"email":"partha@turbot.com","name":"Par
+-----------+-------+-------------+------------+-----------+------------+-----------------------------------------------------------------------------+---------------------------------------------------
> select
  id,
  event,
  workflow_id,
  conclusion,
  status,
  run_number,
  workflow_url,
  head_commit,
  head_branch
from
    github_action_repository_workflow_run
where
  repository_full_name = 'ParthaI/turbot-mods' and event = 'workflow_dispatch' limit 2;
+------------+-------------------+-------------+------------+-----------+------------+-----------------------------------------------------------------------------+--------------------------------------
| id         | event             | workflow_id | conclusion | status    | run_number | workflow_url                                                                | head_commit                          
+------------+-------------------+-------------+------------+-----------+------------+-----------------------------------------------------------------------------+--------------------------------------
| 1782309864 | workflow_dispatch | 3645256     | cancelled  | completed | 117        | https://api.github.com/repos/ParthaI/turbot-mods/actions/workflows/3645256  | {"author":{"email":"47887552+ParthaI@
| 999893199  | workflow_dispatch | 10167599    | success    | completed | 18         | https://api.github.com/repos/ParthaI/turbot-mods/actions/workflows/10167599 | {"author":{"email":"partha@turbot.com
+------------+-------------------+-------------+------------+-----------+------------+-----------------------------------------------------------------------------+--------------------------------------

@ParthaI ParthaI self-assigned this Feb 3, 2022
@ParthaI ParthaI linked an issue Feb 3, 2022 that may be closed by this pull request
@ParthaI ParthaI changed the title Add table github_action_repository_workflow_run closes #144 Add table github_actions_repository_workflow_run closes #144 Feb 4, 2022
@ParthaI ParthaI linked an issue Feb 4, 2022 that may be closed by this pull request
Copy link
Contributor

@bigdatasourav bigdatasourav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bigdatasourav bigdatasourav merged commit 8276302 into main Feb 8, 2022
@bigdatasourav bigdatasourav deleted the issue-144 branch February 8, 2022 07:07
mheiges pushed a commit to mheiges/steampipe-plugin-github that referenced this pull request May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add table github_action_repository_workflow_run Add tables github_action_*
2 participants