airflow.providers.github.hooks.github

This module allows you to connect to GitHub.

Module Contents

Classes

GithubHook

Interact with GitHub.

class airflow.providers.github.hooks.github.GithubHook(github_conn_id=default_conn_name, *args, **kwargs)[source]

Bases: airflow.hooks.base.BaseHook

Interact with GitHub.

Performs a connection to GitHub and retrieves client.

Parameters

github_conn_id (str) – Reference to GitHub connection id.

conn_name_attr = 'github_conn_id'[source]
default_conn_name = 'github_default'[source]
conn_type = 'github'[source]
hook_name = 'GitHub'[source]
get_conn()[source]

Initiate a new GitHub connection with token and hostname (for GitHub Enterprise).

static get_ui_field_behaviour()[source]

Return custom field behaviour.

test_connection()[source]

Test GitHub connection.

Was this entry helpful?