Skip to content

Commit

Permalink
feat: Add run_attempt to workflow_runs schema (#283)
Browse files Browse the repository at this point in the history
**Summary**
This pull request adds the `run_attempt` property to the workflow_runs
schema. This will give the ability to filter out
re-runs(`run_attempt>1`) in the workflow runs metrics.

**Changes**
Updated `repository_streams.py` to include `run_attempt` in the schema
definition of the workflow_runs stream.

**Testing**
1. Confirmed that Github REST API endpoint for workflow runs response
returns `run_attempt` field in the response.
2. Tested the changes locally using Meltano to ensure the `run_attempt`
field is correctly included in response and populated in the target.
  • Loading branch information
santhosh-fit authored Aug 2, 2024
1 parent b009443 commit 1543b4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tap_github/repository_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -1975,6 +1975,7 @@ class WorkflowRunsStream(GitHubRestStream):
th.Property("head_branch", th.StringType),
th.Property("head_sha", th.StringType),
th.Property("run_number", th.IntegerType),
th.Property("run_attempt", th.IntegerType),
th.Property("event", th.StringType),
th.Property("status", th.StringType),
th.Property("conclusion", th.StringType),
Expand Down

0 comments on commit 1543b4c

Please sign in to comment.