Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

function to create a new branch on origin #51

Open
russlooker opened this issue Feb 23, 2021 · 0 comments
Open

function to create a new branch on origin #51

russlooker opened this issue Feb 23, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@russlooker
Copy link
Contributor

proj = lookml.Project(
        repo=GIT_REPO,
        access_token=GIT_ACCESS_TOKEN,
        looker_host='https://example.looker.com/',
        looker_project_name = LOOKER_PROJECT,
        branch = GIT_BRANCH
      )
sb = proj._git_connection.get_branch('master')
proj._git_connection.create_git_ref(ref='refs/heads/' + GIT_BRANCH, sha=sb.commit.sha)

wrap those last two lines in a project method

@russlooker russlooker self-assigned this Feb 23, 2021
@russlooker russlooker added the enhancement New feature or request label Feb 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant