Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

fix: resolve ValueError in repo_checks label application #62

Conversation

kdmccormick
Copy link
Collaborator

Fixes #60

I had tested the --dry-run but not the --no-dry-run code path.

Just needed to update the arguments to the create_issue API call.

For good measure, I also update both create_ and update_ API calls to use only kwargs.

Fixes openedx-unsupported#60

I had tested the --dry-run but not the --no-dry-run code path.

Just needed to update the arguments to the create_issue API call.

For good measure, I also update both create_ and update_ API calls
to use only kwargs.
@kdmccormick kdmccormick requested a review from feanil May 19, 2023 18:51
@kdmccormick kdmccormick changed the title fix: resolve ValueError in label application fix: resolve ValueError in repo_checks label application May 19, 2023
self.org_name,
self.repo_name,
label,
self.labels[label],
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual bug:

Before, label was just a dict name, and self.labels was a dict mapping name -> color.

After #60 , label is a dict, but I didn't update this API call to account for that.

@kdmccormick kdmccormick merged commit fff5d34 into openedx-unsupported:main May 23, 2023
2 checks passed
@kdmccormick kdmccormick deleted the kdmccormick/fix-repo-checks-labelling branch May 23, 2023 13:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants