@sentry/junior-github 0.263.0 → 0.265.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.
@@ -64,6 +64,13 @@
64
64
  "when": 1787598510781,
65
65
  "tag": "0008_native_code_backfill",
66
66
  "breakpoints": true
67
+ },
68
+ {
69
+ "idx": 9,
70
+ "version": "7",
71
+ "when": 1793225353668,
72
+ "tag": "0009_nostalgic_thing",
73
+ "breakpoints": true
67
74
  }
68
75
  ]
69
- }
76
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-github",
3
- "version": "0.263.0",
3
+ "version": "0.265.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -32,7 +32,7 @@
32
32
  "drizzle-orm": "^0.45.2",
33
33
  "marked": "^18.1.2",
34
34
  "zod": "^4.5.4",
35
- "@sentry/junior-plugin-api": "0.263.0"
35
+ "@sentry/junior-plugin-api": "0.265.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@oxlint/plugins": "1.79.0",
@@ -35,7 +35,8 @@ Use `git` and `gh` for repository work.
35
35
  - Push before `github_createPullRequest`. Never ask for a token for bot pushes.
36
36
  - When an error names a tool, use it. Change permissions only when GitHub rejected the request.
37
37
  - Stop for an unclear target, missing access, destructive work, or a GitHub permission failure.
38
- - Unless the user opts out, push completed work and open a PR. Open it ready for review when the work is complete and the checks pass. Open a draft only when work, checks, or decisions remain.
38
+ - Code changes always end in a pushed branch and a PR. Do not ask whether to open one. Skip it only when the user opts out or asks for investigation only.
39
+ - Open the PR ready for review when the work is complete and the checks pass. Open a draft when work, checks, or decisions remain. A scope or follow-up question is not a reason to stop: open the PR, and name the question in the PR body and the report.
39
40
  - Report repo, branch, PR, checks, and skipped checks.
40
41
 
41
42
  Do not install or repair the GitHub plugin from this skill.
@@ -10,7 +10,7 @@ Guide evidence-first GitHub repository work from inspection through a reviewable
10
10
  - Preserve unrelated work; reject destructive Git operations except `--force-with-lease` pushes to branches Junior pushed or the requester named.
11
11
  - Treat shallow clones as inspection checkouts; deepen before history work; never force-push around missing ancestry.
12
12
  - Install dependencies with the lockfile frozen mode before verification when needed.
13
- - Finish completed edits with a pushed PR unless the user opts out; default draft.
13
+ - Finish every code change with a pushed PR, without asking, unless the user opts out or asked for investigation only. Open it ready when work and checks are done; open a draft when work, checks, or decisions remain. An open scope question goes in the PR body, not in a stop.
14
14
  - After each push to a branch with an open PR, check mergeability. Resolve conflicts without asking, by merging the PR base branch (usually the default branch). Never rebase for this. GitHub sends no event for a new conflict, and conflicted PRs get no new checks.
15
15
  - Write conventional PR titles and short plain-English bodies; keep check results out of the PR body.
16
16
  - Report exact validation and permission failures.
@@ -35,7 +35,7 @@ Should not trigger for issue-only ops, non-GitHub ticketing, product telemetry,
35
35
  1. Run the repository skill validator.
36
36
  2. Confirm all referenced files exist.
37
37
  3. Confirm `SKILL.md` stays a router (workflow detail lives in references).
38
- 4. Confirm code-edit completion defaults to a draft PR.
38
+ 4. Confirm code-edit completion always opens a PR, and an open scope question does not stop it.
39
39
 
40
40
  ## Maintenance
41
41
 
@@ -1,20 +0,0 @@
1
- import type { EventInput, EventPublisher, PluginLogger } from "@sentry/junior-plugin-api";
2
- /** The author whose repository role a lookup reads. */
3
- export interface GitHubAuthorRoleTarget {
4
- login: string;
5
- repositoryFullName: string;
6
- }
7
- /**
8
- * Add the author's repository role to events that name a pull request author.
9
- * It loads the role only when a Watch or event automation filters on
10
- * `authorRole`, so other deliveries make no extra GitHub calls. A failed load
11
- * leaves the field out, so filters on it do not match.
12
- */
13
- export declare function withGitHubPullRequestAuthorRole(args: {
14
- body: unknown;
15
- deliveryId: string;
16
- events: EventInput[];
17
- load?(target: GitHubAuthorRoleTarget): Promise<string>;
18
- log?: Pick<PluginLogger, "error">;
19
- neededMatchKeys: EventPublisher["neededMatchKeys"];
20
- }): Promise<EventInput[]>;