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 get and list workflow runs from GitHub actions API #204

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

mitulamin
Copy link
Contributor

Add get and list workflow runs from github actions API

The WorkflowRunsClient provides the following:

  • listAllWorkflowRuns - get All workflows for the repo
  • listWorkflowRuns - get workflow runs for a given workflow
  • getWorkflowRun - get a workflow run by ID

All calls support filtering via query parameters.

Tests included.

Added the classes that will hold the responses from the actions.workflowruns api's Get and List calls.
The WorkflowRunsClient provides the following:
* listAllWorkflowRuns - get All workflows for the repo
* listWorkflowRuns - get workflow runs for a given workflow
* getWorkflowRun - get a workflow run by ID

All calls support filtering via query parameters.

Tests included.
@mitulamin
Copy link
Contributor Author

I will be adding another PR with the Workflow Jobs from GitHub Actions API

@mitulamin
Copy link
Contributor Author

Found a bug caused by a typo as a snapshot of this PR was being used and hence the PR was changed to a draft. This has been fixed and the functionality tested by an external app and therefore I am opening the PR up for review.

@mitulamin mitulamin marked this pull request as ready for review January 22, 2025 13:35
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.

1 participant