Skip to content

test: Add workflow runs/usage/jobs mock test#14641

Merged
kodiakhq[bot] merged 2 commits intocloudquery:mainfrom
erezrokah:test/github_workflows
Oct 18, 2023
Merged

test: Add workflow runs/usage/jobs mock test#14641
kodiakhq[bot] merged 2 commits intocloudquery:mainfrom
erezrokah:test/github_workflows

Conversation

@erezrokah
Copy link
Copy Markdown
Member

Summary

Follow up to #14529 that adds a mock test

@erezrokah erezrokah requested review from a team and candiduslynx and removed request for a team October 18, 2023 06:55
listWorkflowJobOptions := &github.ListWorkflowJobsOptions{Filter: "all", ListOptions: *listOpts}
for {
workflowJobs, resp, err := c.Github.Actions.ListWorkflowJobs(ctx, c.Org, *repo.Name, *run.ID, listWorkflowJobOptions)
workflowJobs, resp, err := c.Github.Actions.ListWorkflowJobs(ctx, *repo.Owner.Login, *repo.Name, *run.ID, listWorkflowJobOptions)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is how we do it in most places (access the owner via the repo). It should be the same as accessing the org directly

@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Oct 18, 2023
@kodiakhq kodiakhq bot merged commit 6971075 into cloudquery:main Oct 18, 2023
hydratim pushed a commit to hydratim/cloudquery that referenced this pull request Oct 20, 2023

#### Summary

Follow up to cloudquery#14529 that adds a mock test

<!--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/plugin/source/github automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants