Skip to content

Service: kwargs only when sending build statuses #12007

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

Merged
merged 3 commits into from
Feb 19, 2025

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Feb 19, 2025

A small refactor extracted from #11942

@stsewd stsewd requested a review from a team as a code owner February 19, 2025 01:01
@stsewd stsewd requested a review from humitos February 19, 2025 01:01
Copy link
Member

@humitos humitos left a comment

Choose a reason for hiding this comment

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

Looks good with a question. Tests are failing, tho.

@@ -86,7 +86,7 @@ def update_webhook(self, project, integration):
"""
raise NotImplementedError

def send_build_status(self, build, commit, status):
def send_build_status(self, *, build, commit, status):
Copy link
Member

Choose a reason for hiding this comment

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

What was the meaning of this *, here? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

It forces the function to always be called with kwargs after the *

@stsewd stsewd merged commit b333b97 into main Feb 19, 2025
8 checks passed
@stsewd stsewd deleted the small-refactor-services-x2 branch February 19, 2025 16:36
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