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

[WorkflowRun] - Add missing attributes (run_started_at & run_attempt), remove deprecated unicode type #2273

Merged
merged 3 commits into from Oct 29, 2022

Conversation

goliaro
Copy link
Contributor

@goliaro goliaro commented Jul 13, 2022

As per the title, this PR adds the run_started_at and run_attempt attributes to the WorkflowRun class, following the Github API reference page: https://docs.github.com/en/rest/actions/workflow-runs#get-a-workflow-run .

In addition, I removed the unicode type since it is no longer supported by Python3, and has been absorbed into the str type. Using the unicode type in Python3 will cause errors, so I removed all references to this type.

This PR is consolidating the changes from PR #2274 , as recommended by @marcorosa .

@goliaro goliaro force-pushed the add_additional_workflowrun_properties branch from 1f2afe6 to 9e6c39e Compare October 26, 2022 04:40
@goliaro goliaro changed the title [WorkflowRun] - Added run_started_at and run_attempt attributes [WorkflowRun] - Add missing attributes (run_started_at & run_attempt), remove deprecated unicode type Oct 26, 2022
@codecov-commenter
Copy link

codecov-commenter commented Oct 26, 2022

Codecov Report

Base: 98.80% // Head: 98.77% // Decreases project coverage by -0.03% ⚠️

Coverage data is based on head (5bfc9c5) compared to base (0fadd6b).
Patch coverage: 73.33% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2273      +/-   ##
==========================================
- Coverage   98.80%   98.77%   -0.04%     
==========================================
  Files         110      110              
  Lines       11305    11320      +15     
==========================================
+ Hits        11170    11181      +11     
- Misses        135      139       +4     
Impacted Files Coverage Δ
github/WorkflowRun.py 98.00% <73.33%> (-2.00%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@goliaro
Copy link
Contributor Author

goliaro commented Oct 26, 2022

@sfdye @s-t-e-v-e-n-k @marcorosa I can't assign anyone to this PR, but it's ready :) Thanks a lot for reviewing!

@sfdye sfdye force-pushed the add_additional_workflowrun_properties branch from d8ff866 to 5bfc9c5 Compare October 29, 2022 03:00
@sfdye sfdye merged commit 3a6235b into PyGithub:master Oct 29, 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.

None yet

3 participants