@sentry/junior-github 0.41.0 → 0.43.0
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.
package/package.json
CHANGED
package/plugin.yaml
CHANGED
|
@@ -15,16 +15,27 @@ config-keys:
|
|
|
15
15
|
- org
|
|
16
16
|
- repo
|
|
17
17
|
|
|
18
|
+
env-vars:
|
|
19
|
+
GITHUB_APP_BOT_NAME:
|
|
20
|
+
GITHUB_APP_BOT_EMAIL:
|
|
21
|
+
|
|
18
22
|
credentials:
|
|
19
23
|
type: github-app
|
|
20
|
-
|
|
24
|
+
domains:
|
|
21
25
|
- api.github.com
|
|
26
|
+
- github.com
|
|
22
27
|
auth-token-env: GITHUB_TOKEN
|
|
23
28
|
auth-token-placeholder: ghp_host_managed_credential
|
|
24
29
|
app-id-env: GITHUB_APP_ID
|
|
25
30
|
private-key-env: GITHUB_APP_PRIVATE_KEY
|
|
26
31
|
installation-id-env: GITHUB_INSTALLATION_ID
|
|
27
32
|
|
|
33
|
+
command-env:
|
|
34
|
+
GIT_AUTHOR_NAME: ${GITHUB_APP_BOT_NAME}
|
|
35
|
+
GIT_AUTHOR_EMAIL: ${GITHUB_APP_BOT_EMAIL}
|
|
36
|
+
GIT_COMMITTER_NAME: ${GITHUB_APP_BOT_NAME}
|
|
37
|
+
GIT_COMMITTER_EMAIL: ${GITHUB_APP_BOT_EMAIL}
|
|
38
|
+
|
|
28
39
|
target:
|
|
29
40
|
type: repo
|
|
30
41
|
config-key: repo
|
|
@@ -59,6 +59,7 @@ Repository checkout, source-code investigation, and pull request operations via
|
|
|
59
59
|
### Pull request inspection path
|
|
60
60
|
|
|
61
61
|
- Use read-only `gh pr` commands from [references/api-surface.md](references/api-surface.md); skip branch resolution and push logic.
|
|
62
|
+
- When inspecting PR comments or feedback, query both conversation comments (`--json comments`) and review comments (`gh api .../pulls/{number}/comments` and `.../reviews`). Bot review feedback lives in the review comments API, not conversation comments.
|
|
62
63
|
- Return canonical PR URL, PR number when available, target repository, and the fields the user asked to inspect.
|
|
63
64
|
- If the PR cannot be resolved, report the exact not-found or auth failure and stop.
|
|
64
65
|
|
|
@@ -35,6 +35,8 @@ Treat explicit repo flags as command-targeting safety rails, not as a credential
|
|
|
35
35
|
| List pull requests | `gh pr list --repo owner/repo [--state open | closed | merged]` |
|
|
36
36
|
| Diff pull request | `gh pr diff NUMBER --repo owner/repo` |
|
|
37
37
|
| Check pull request status | `gh pr checks NUMBER --repo owner/repo` |
|
|
38
|
+
| View PR review comments | `gh api repos/{owner}/{repo}/pulls/{number}/comments` |
|
|
39
|
+
| View PR reviews | `gh api repos/{owner}/{repo}/pulls/{number}/reviews` |
|
|
38
40
|
| Dispatch workflow | `gh workflow run WORKFLOW -R owner/repo --ref REF [-f key=value ...]` |
|
|
39
41
|
| List workflow runs | `gh run list -R owner/repo --workflow WORKFLOW [--limit N] [--json ...]` |
|
|
40
42
|
| View workflow run | `gh run view RUN_ID -R owner/repo [--json ...] [--log-failed]` |
|