RaphCodec commented on code in PR #64422:
URL: https://github.com/apache/airflow/pull/64422#discussion_r3696609835
##########
providers/git/src/airflow/providers/git/hooks/git.py:
##########
@@ -127,6 +140,26 @@ def __init__(
AirflowProviderDeprecationWarning,
stacklevel=2,
)
+ if (self.github_app_id is not None and self.github_installation_id is
None) or (
+ self.github_app_id is None and self.github_installation_id is not
None
+ ):
+ raise ValueError(
+ "Both 'github_app_id' and 'github_installation_id' must be
provided to use GitHub App Authentication"
+ )
+ if self.github_app_id is not None and self.github_installation_id is
not None:
Review Comment:
suggestion applied
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]