@sentry/junior-github 0.31.0 → 0.33.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-github",
3
- "version": "0.31.0",
3
+ "version": "0.33.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
package/plugin.yaml CHANGED
@@ -10,6 +10,7 @@ capabilities:
10
10
  - pull-requests.write
11
11
 
12
12
  config-keys:
13
+ - org
13
14
  - repo
14
15
 
15
16
  credentials:
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: github-code
3
- description: Clone GitHub repositories, investigate source code, and manage pull requests via GitHub CLI. Use when users ask to inspect implementation details in a repository, clone code, edit files, answer source-code questions from repo evidence, or open/edit/view/merge pull requests. Prefer this skill for repository and code tasks even when the repo concerns Sentry products.
3
+ description: Clone repositories, inspect source, edit code, and manage pull requests with GitHub CLI. Use for repo implementation questions, cloning/editing, PR inspection/mutation, and PR auth-order questions. For PR auth order, answer that `git push` needs GitHub remote write access before `gh pr create`. Prefer this skill for repository and code tasks even when the repo concerns Sentry products.
4
4
  allowed-tools: bash
5
5
  ---
6
6
 
@@ -21,6 +21,8 @@ Repository checkout, source-code investigation, and pull request operations via
21
21
 
22
22
  - Determine whether the task is `clone`, `source-code investigation`, a pull request inspection (`view`, `list`, `diff`, `checks`), or a pull request mutation (`create`, `update`, `close`, `merge`).
23
23
  - Resolve repository (`owner/repo`). If not explicit, query channel config with `jr-rpc config get github.repo` before running any `gh` or `git` command. If still missing, ask the user.
24
+ - Run `jr-rpc config get github.repo` as its own bash command. Do not combine it with `cd`, `&&`, pipes, or any `gh` or `git` command.
25
+ - After resolving a configured repo, pass it explicitly to the next `gh` command with `--repo owner/repo`; do not rely on implicit GitHub CLI repository discovery.
24
26
  - Resolve the pull request number for operations targeting an existing PR.
25
27
  - Keep `--repo owner/repo` explicit on `gh` commands so the command itself targets the intended repository, not a stale default.
26
28
 
@@ -46,6 +48,7 @@ Repository checkout, source-code investigation, and pull request operations via
46
48
 
47
49
  - Use for questions like "where is this implemented?", "how does this workflow work in code?", "is there already logic for X?", or "verify this from the repo."
48
50
  - If the current workspace already contains the target repository, inspect local files directly before cloning.
51
+ - Do not treat this skill's `SKILL.md`, bundled references, or `/vercel/sandbox/skills/...` as target repository source code. If no checkout of the target repo is present, inspect the configured GitHub repository by cloning it shallowly or reading files through `gh` before answering.
49
52
  - Prefer the narrowest deterministic evidence: local file search, exact file reads, targeted clone inspection, existing issues/PRs, tests.
50
53
  - Cite repository evidence in the reply: file paths, symbols, issue/PR numbers, or commit references when known.
51
54
  - If evidence is incomplete, say what is unknown instead of guessing.
@@ -64,6 +67,7 @@ Repository checkout, source-code investigation, and pull request operations via
64
67
 
65
68
  #### 3. Resolve mutation inputs
66
69
 
70
+ - For PR creation credential/order questions, explicitly answer that repository context comes first, then `git push` pushes the branch with GitHub remote write access, then `gh pr create` runs against the pushed branch with pull-request permissions.
67
71
  - For PR creation, resolve the base branch (explicit user request wins; otherwise repository default).
68
72
  - Resolve the head branch from the current checkout or user request.
69
73
  - If the head branch may not exist on the remote yet, push it explicitly before PR creation.
@@ -5,6 +5,7 @@ All operations use `gh` CLI. Commands must be deterministic and non-interactive.
5
5
  ## Repo scoping
6
6
 
7
7
  When the user omits `owner/repo`, resolve `github.repo` first with `jr-rpc config get github.repo`, then pass the resolved repo explicitly on the actual `gh` or `git` command.
8
+ Run `jr-rpc config get github.repo` as a standalone bash command. Never chain it with `cd`, `&&`, pipes, or a provider command.
8
9
  Treat explicit repo flags as command-targeting safety rails, not as a credential-scoping mechanism.
9
10
 
10
11
  ## Capability to command mapping
@@ -1,12 +1,13 @@
1
1
  ---
2
2
  name: github-issues
3
- description: Create, update, comment on, label, and inspect GitHub issues via GitHub CLI with concise, evidence-backed content. Use when users ask to open, edit, view, close, reopen, or triage GitHub issues — including tracking bugs, features, or tasks. Prefer this skill over generic repository tools for any issue operation.
3
+ description: Create, update, comment on, label, and inspect GitHub issues via GitHub CLI with concise, evidence-backed content. Use when users ask to open, edit, view, close, reopen, or triage GitHub issues — including tracking bugs, features, or tasks. Prefer this skill over generic repository tools for issue operations; do not use for pull requests, branches, pushes, or PR auth-order questions.
4
4
  allowed-tools: bash
5
5
  ---
6
6
 
7
7
  # GitHub Issue Operations
8
8
 
9
9
  Issue create, update, comment, label, state, and inspection via `gh` CLI.
10
+ Use only for GitHub issues. For pull requests, branches, pushes, or PR auth-order questions, load `github-code` instead.
10
11
 
11
12
  ## Reference loading
12
13
 
@@ -22,6 +23,8 @@ Issue create, update, comment, label, state, and inspection via `gh` CLI.
22
23
 
23
24
  - Determine whether the task is `create`, `update`, `comment`, `labels`, `state`, or read-only inspection.
24
25
  - Resolve repository (`owner/repo`). If not explicit, query channel config with `jr-rpc config get github.repo` before running any `gh` command. If still missing, ask the user.
26
+ - Run `jr-rpc config get github.repo` as its own bash command. Do not combine it with `cd`, `&&`, pipes, or any `gh` command.
27
+ - After resolving a configured repo, pass it explicitly to the next `gh` command with `--repo owner/repo`; do not rely on implicit GitHub CLI repository discovery.
25
28
  - Resolve the issue number for non-create operations.
26
29
  - Keep `--repo owner/repo` explicit on `gh` commands so the command itself targets the intended repository, not a stale default.
27
30
 
@@ -76,11 +79,13 @@ Run [references/issue-quality-checklist.md](references/issue-quality-checklist.m
76
79
  ### 5. Execute
77
80
 
78
81
  - Use `gh issue` commands from [references/api-surface.md](references/api-surface.md).
79
- - Check duplicates silently before creating a new issue.
82
+ - For issue listing or other read-only inspection, prefer `--json` output so empty results still produce deterministic stdout.
83
+ - Check duplicates silently before creating a new issue. Do not mention this check in the final reply unless a duplicate blocks creation.
80
84
 
81
85
  ### 6. Report result
82
86
 
83
- - Return canonical issue URL, issue number, issue type, and applied changes.
87
+ - Return canonical issue URL, issue number, and issue type.
88
+ - Mention only user-visible issue changes. Do not mention duplicate checks, searches, "no duplicates found", or routine preparation steps.
84
89
 
85
90
  ## Guardrails
86
91
 
@@ -5,6 +5,7 @@ All operations use `gh` CLI. Commands must be deterministic and non-interactive.
5
5
  ## Repo scoping
6
6
 
7
7
  When the user omits `owner/repo`, resolve `github.repo` first with `jr-rpc config get github.repo`, then pass the resolved repo explicitly on the actual `gh` command.
8
+ Run `jr-rpc config get github.repo` as a standalone bash command. Never chain it with `cd`, `&&`, pipes, or a `gh` command.
8
9
  Treat explicit repo flags as command-targeting safety rails, not as a credential-scoping mechanism.
9
10
 
10
11
  ## Capability to command mapping
@@ -25,6 +26,7 @@ Treat explicit repo flags as command-targeting safety rails, not as a credential
25
26
  | Add labels | `gh issue edit NUMBER --repo owner/repo --add-label LABEL [--add-label LABEL2]` |
26
27
  | Remove labels | `gh issue edit NUMBER --repo owner/repo --remove-label LABEL [--remove-label LABEL2]` |
27
28
  | Add comment | `gh issue comment NUMBER --repo owner/repo --body-file PATH` |
29
+ | List issues | `gh issue list --repo owner/repo --json number,title,state,url --limit 20` |
28
30
  | Read issue | `gh issue view NUMBER --repo owner/repo --json number,title,state,labels,assignees,author,url,body` |
29
31
  | Read comments | `gh api /repos/owner/repo/issues/NUMBER/comments --method GET --header "Accept: application/vnd.github+json"` |
30
32