Skip to content

Add workflow report retrieval to API client#29

Merged
berggren merged 3 commits intomainfrom
get-workflow-template
Oct 15, 2025
Merged

Add workflow report retrieval to API client#29
berggren merged 3 commits intomainfrom
get-workflow-template

Conversation

@berggren
Copy link
Copy Markdown
Contributor

Summary

Adds a method to the API client to retrieve workflow reports.

Technical Details:

  • Copyright Update: The copyright year has been updated to include 2025 in openrelik_api_client/workflows.py.
  • get_workflow_report Method: A new get_workflow_report method was added to the WorkflowsAPI class in openrelik_api_client/workflows.py. This method retrieves a workflow report from the API given a workflow ID.
    • If the request is successful (status code 200), it parses the JSON response and returns the workflow report data. Otherwise, returns None.

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
openrelik_api_client/workflows.py 33.89% <100.00%> (+33.89%) ⬆️
tests/workflows_api_test.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@berggren berggren marked this pull request as ready for review October 15, 2025 10:10
@berggren berggren requested a review from hacktobeer October 15, 2025 10:10
@berggren berggren merged commit d08a3c6 into main Oct 15, 2025
4 checks passed
@berggren berggren deleted the get-workflow-template branch October 15, 2025 13:17
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.

2 participants