Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.99 KB

GitHub_Peform_basic_actions.md

File metadata and controls

51 lines (35 loc) · 1.99 KB



Template request | Bug report | Generate Data Product

Tags: #github #productivity #code #operations #snippet

Author: Jeremy Ravenel

Description: This notebook provides instructions on how to use GitHub to perform basic tasks.

Input

Import library

from git_lib import Git

Model

Configuration attribute description

  • username : Git username
  • password : Git password
  • github_url : Git url to clone
  • branch : Branch name on which perform action
  • target_folder : Folder name of which clone,commit,push,pull,checkout has to be performed
  • action : Action you wish to perform (clone,commit,push,pull,checkout)
  • commit_message : Any message you wish to pass while commit

Git configuration

config = {
    "username": "< Your github username >",
    "password": "< Your github password >",
    "github_url": "< Github url >",
    "branch": "< Github branch name >",
    "target_folder": "< Folder name >",
    "action": "< Github action >",
    "commit_message": "< Your message for commit >",
}

Output

Execute Github connector

git_instance = Git(config)