pateash opened a new pull request #21076:
URL: https://github.com/apache/airflow/pull/21076


   closes: #20300
   
   ---
   ## Description
   
   Adding Github provider based on Python SDK 
https://github.com/PyGithub/PyGithub
   The SDK has many objects which can be viewed at 
https://pygithub.readthedocs.io/en/latest/github_objects.html
   
   Users can create their own custom operators leveraging the **PyGithub** SDK, 
either by leveraging Hook directly or building their operator on GithubOperator 
by providing **method** and **method_args** from PyGithub  
   results can be further processed by implementing **result_processor** 
method, please look into **GithubTagSensor** for reference.
   
   
   ```
   github_operator = GithubOperator(
       task_id='github-test',
       github_method="get_repo",
       github_method_args={'full_name_or_id': 'apache/airflow'},
       result_processor=lambda r: r.full_name,
       dag=self.dag,
   )
   ```
   


-- 
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]


Reply via email to