cmd
Functions for creating state file for existing PR´s.
create_state(repo_list, state_name, target_branch_name)
Creates a State object from a list of GitHub PR urls.
Source code in dapla_team_cli/pr/add/cmd.py
67 68 69 70 71 72 73 74 75 76 77 78 |
|
extract_repo_name(pr_url)
Extracts the repo name from a GitHub PR url.
Source code in dapla_team_cli/pr/add/cmd.py
50 51 52 53 54 55 56 57 58 |
|
get_pr_metadata(pr_url, target_branch_name)
Creates a PrMetadata object from a GitHub PR url.
Source code in dapla_team_cli/pr/add/cmd.py
61 62 63 64 |
|
is_valid_github_pr_url(url)
Validates that a string is a valid GitHub PR url.
Source code in dapla_team_cli/pr/add/cmd.py
43 44 45 46 47 |
|
urls(target_branch_name=typer.Option('update/template', '--target-branch-name', '-tbn', help='Branch name used in PR´s'), pr_urls=typer.Argument(None, help='List of PR urls to create state file for.'))
Creates a state for a list of existing PR´s.
Source code in dapla_team_cli/pr/add/cmd.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|