-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dagster-github] add create_ref method on GithubClient (#25061)
## Summary & Motivation Contributes to #24967 ## How I Tested These Changes Tested on my fork with the snippet below: ```python from dagster import Definitions, asset from dagster_github import GithubResource @asset def github_branch(github_resource: GithubResource): client = github_resource.get_client() return client.create_ref("dagster", "marijncv", "refs/heads/master", "refs/heads/test-branch") defs = Definitions( assets=[github_branch], resources={ "github_resource": GithubResource( github_app_id=<your_app_id>, github_app_private_rsa_key=<your_rsa_key>, github_installation_id=<your_installation_id>, ) }, ) ``` & added unit test ## Changelog [dagster-github] Added `create_ref` method on `GithubClient` that enables creating a new branch - [x] `NEW` _(added new feature or capability)_ - [ ] `BUGFIX` _(fixed a bug)_ - [ ] `DOCS` _(added or updated documentation)_
- Loading branch information
Showing
2 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters