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

Refactor and reuse code which adds values from GitHub Project fields #263

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

webbnh
Copy link
Collaborator

@webbnh webbnh commented Dec 9, 2024

This PR is a follow-on to #239 (benefitting from the results of #240 and #247) which (hopefully!) addresses the problem with updating story point and priority values from GitHub Project fields.

This change refactors the code which performs the field value extractions and updates and moves it into a common subroutine so that it can be used by the FedMsg-driven updates as well as the repo-initialization path.

This change also sanitizes the processing of story points to ensure that the values are either an int or None. This allows us to remove the conversion and error handling from the downstream issue code.

While the unit tests for this code pass, it's not really feasible to test it except in production....

FYI: @baijum

@webbnh webbnh requested a review from mattreid December 9, 2024 22:14
@webbnh webbnh force-pushed the update-gh-fields-on-sync branch from c2627b8 to 7d6c176 Compare December 9, 2024 22:49
@webbnh webbnh force-pushed the update-gh-fields-on-sync branch from 7d6c176 to cc46716 Compare December 10, 2024 16:50
@webbnh webbnh enabled auto-merge December 10, 2024 16:54
@webbnh webbnh merged commit 3638e0f into main Dec 10, 2024
6 checks passed
@webbnh webbnh deleted the update-gh-fields-on-sync branch December 10, 2024 17:02
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