bmsdna-devtools 0.2.2__tar.gz → 0.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/PKG-INFO +3 -3
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/README.md +1 -1
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/bmsdna/devtools/cli.py +1 -1
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/pyproject.toml +1 -1
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/skills/bmsdna-devtools/SKILL.md +1 -1
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/uv.lock +1 -1
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/.github/workflows/python-publish.yml +0 -0
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/.github/workflows/python-test.yml +0 -0
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/.gitignore +0 -0
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/.python-version +0 -0
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/bmsdna/devtools/__init__.py +0 -0
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/bmsdna/devtools/ado_auth.py +0 -0
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/bmsdna/devtools/app_service_logs.py +0 -0
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/bmsdna/devtools/cli_tools.py +0 -0
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/bmsdna/devtools/commit.py +0 -0
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/bmsdna/devtools/env_config.py +0 -0
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/bmsdna/devtools/gh_pr.py +0 -0
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/bmsdna/devtools/gitrepo.py +0 -0
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/bmsdna/devtools/logs.py +0 -0
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/bmsdna/devtools/pr_build.py +0 -0
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/bmsdna/devtools/worktree.py +0 -0
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/justfile +0 -0
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/tests/test_app_service_logs.py +0 -0
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/tests/test_commit.py +0 -0
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/tests/test_env_config.py +0 -0
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/tests/test_gh_pr.py +0 -0
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/tests/test_gitrepo.py +0 -0
- {bmsdna_devtools-0.2.2 → bmsdna_devtools-0.2.3}/tests/test_pr_build.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: bmsdna-devtools
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: Shared Azure DevOps / GitHub / git / Azure Monitor developer tooling for BMS projects
|
|
5
5
|
Requires-Python: >=3.11
|
|
6
6
|
Requires-Dist: requests>=2.32.0
|
|
@@ -53,7 +53,7 @@ Exit code 1 either way.
|
|
|
53
53
|
**Azure DevOps**: org/project/repo are auto-detected from
|
|
54
54
|
`git remote get-url origin` (handles SSH, `dev.azure.com` HTTPS, and
|
|
55
55
|
`*.visualstudio.com` HTTPS forms). Auth is an explicit PAT (`--pat` or
|
|
56
|
-
`AZURE_DEVOPS_PAT` env var), falling back to a short-lived token from the
|
|
56
|
+
`AZURE_DEVOPS_EXT_PAT`/`AZURE_DEVOPS_PAT` env var), falling back to a short-lived token from the
|
|
57
57
|
caller's own `az login` — never embed a PAT literal in a script or CI file.
|
|
58
58
|
`--target-branch` selects which PR to look at (ADO's search API needs one).
|
|
59
59
|
|
|
@@ -43,7 +43,7 @@ Exit code 1 either way.
|
|
|
43
43
|
**Azure DevOps**: org/project/repo are auto-detected from
|
|
44
44
|
`git remote get-url origin` (handles SSH, `dev.azure.com` HTTPS, and
|
|
45
45
|
`*.visualstudio.com` HTTPS forms). Auth is an explicit PAT (`--pat` or
|
|
46
|
-
`AZURE_DEVOPS_PAT` env var), falling back to a short-lived token from the
|
|
46
|
+
`AZURE_DEVOPS_EXT_PAT`/`AZURE_DEVOPS_PAT` env var), falling back to a short-lived token from the
|
|
47
47
|
caller's own `az login` — never embed a PAT literal in a script or CI file.
|
|
48
48
|
`--target-branch` selects which PR to look at (ADO's search API needs one).
|
|
49
49
|
|
|
@@ -63,7 +63,7 @@ def pr_create(
|
|
|
63
63
|
def pr_status(
|
|
64
64
|
target_branch: str = typer.Option("main", "--target-branch", help="Target branch of the PR (Azure DevOps only — gh has no equivalent filter, it always resolves the PR for the current branch)"),
|
|
65
65
|
wait: bool = typer.Option(False, "--wait", help="Poll until all pipelines/checks are completed"),
|
|
66
|
-
pat: str | None = typer.Option(None, "--pat", envvar="AZURE_DEVOPS_PAT", help="Azure DevOps PAT (else falls back to `az` login)"),
|
|
66
|
+
pat: str | None = typer.Option(None, "--pat", envvar=["AZURE_DEVOPS_EXT_PAT", "AZURE_DEVOPS_PAT"], help="Azure DevOps PAT (else falls back to `az` login)"),
|
|
67
67
|
) -> None:
|
|
68
68
|
"""Show build/check status for the PR opened from the current branch (Azure DevOps or GitHub, auto-detected)."""
|
|
69
69
|
remote = current_remote()
|
|
@@ -10,7 +10,7 @@ packages = ["bmsdna"]
|
|
|
10
10
|
|
|
11
11
|
[project]
|
|
12
12
|
name = "bmsdna-devtools"
|
|
13
|
-
version = "0.2.
|
|
13
|
+
version = "0.2.3"
|
|
14
14
|
description = "Shared Azure DevOps / GitHub / git / Azure Monitor developer tooling for BMS projects"
|
|
15
15
|
readme = "README.md"
|
|
16
16
|
requires-python = ">=3.11"
|
|
@@ -51,7 +51,7 @@ current branch regardless, so the flag is ignored there — the PR's actual
|
|
|
51
51
|
base branch is shown in the output instead.
|
|
52
52
|
|
|
53
53
|
Auth: Azure DevOps works with no setup if the caller is already `az
|
|
54
|
-
login`'d (only pass `--pat`/`AZURE_DEVOPS_PAT` if there's no `az` session
|
|
54
|
+
login`'d (only pass `--pat`/`AZURE_DEVOPS_EXT_PAT`/`AZURE_DEVOPS_PAT` if there's no `az` session
|
|
55
55
|
available); GitHub uses whatever `gh auth login` session is active.
|
|
56
56
|
|
|
57
57
|
## Creating a PR
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|