@sentry/junior-github 0.263.0 → 0.264.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.
@@ -35,7 +35,7 @@ var GITHUB_DEPLOYMENT_MATCH_FIELDS = eventMatchFieldsSchema.parse({
35
35
  });
36
36
  var GITHUB_DEPLOYMENT_SOURCE_IDENTIFIER = {
37
37
  format: "deployment-source:owner/repo[:environment]:<full-commit-sha>",
38
- pattern: /^deployment-source:[^\s/:#]+\/[^\s/:#]+(?::[^\s:]+)?:[0-9a-f]+$/
38
+ pattern: String.raw`^deployment-source:[^\s/:#]+\/[^\s/:#]+(?::[^\s:]+)?:[0-9a-f]+$`
39
39
  };
40
40
  function gitHubDeploymentSourceResource(input) {
41
41
  const commitSha = input.commitSha.toLowerCase();
@@ -88,7 +88,7 @@ var GITHUB_ISSUE_COMMENT_MATCH_FIELDS = eventMatchFieldsSchema2.parse({
88
88
  });
89
89
  var GITHUB_ISSUE_IDENTIFIER = {
90
90
  format: "owner/repo#number",
91
- pattern: /^[^\s/:#]+\/[^\s/:#]+#\d+$/
91
+ pattern: String.raw`^[^\s/:#]+\/[^\s/:#]+#\d+$`
92
92
  };
93
93
  function gitHubIssueResource(input) {
94
94
  return {
@@ -186,7 +186,7 @@ var GITHUB_PULL_REQUEST_MATCH_FIELDS = eventMatchFieldsSchema3.parse({
186
186
  });
187
187
  var GITHUB_PULL_REQUEST_IDENTIFIER = {
188
188
  format: "owner/repo#number",
189
- pattern: /^[^\s/:#]+\/[^\s/:#]+#\d+$/
189
+ pattern: String.raw`^[^\s/:#]+\/[^\s/:#]+#\d+$`
190
190
  };
191
191
  function gitHubPullRequestResource(input) {
192
192
  return {
@@ -214,7 +214,7 @@ var GITHUB_RELEASE_EVENTS = ["release.published"];
214
214
  var GITHUB_RELEASE_SUGGESTED_EVENTS = ["release.published"];
215
215
  var GITHUB_RELEASE_SOURCE_IDENTIFIER = {
216
216
  format: "release-source:owner/repo[:tag]",
217
- pattern: /^release-source:[^\s/:#]+\/[^\s/:#]+(?::[^\s:]+)?$/
217
+ pattern: String.raw`^release-source:[^\s/:#]+\/[^\s/:#]+(?::[^\s:]+)?$`
218
218
  };
219
219
  function gitHubReleaseSourceResource(input) {
220
220
  const repo = input.repo.toLowerCase();
@@ -238,7 +238,7 @@ function gitHubReleaseSourceSubscribable(input) {
238
238
  // src/events/repository.ts
239
239
  var GITHUB_REPOSITORY_IDENTIFIER = {
240
240
  format: "owner/repo",
241
- pattern: /^[^\s/:#]+\/[^\s/:#]+$/
241
+ pattern: String.raw`^[^\s/:#]+\/[^\s/:#]+$`
242
242
  };
243
243
  function gitHubRepositoryResource(input) {
244
244
  return {
@@ -10,7 +10,7 @@ export declare const GITHUB_DEPLOYMENT_MATCH_FIELDS: Record<string, {
10
10
  /** The identifier shape that `gitHubDeploymentSourceResource` builds. */
11
11
  export declare const GITHUB_DEPLOYMENT_SOURCE_IDENTIFIER: {
12
12
  format: string;
13
- pattern: RegExp;
13
+ pattern: string;
14
14
  };
15
15
  /** Build the stable deployment-source identity shared by tools and webhooks. */
16
16
  export declare function gitHubDeploymentSourceResource(input: {
@@ -13,7 +13,7 @@ export declare const GITHUB_ISSUE_COMMENT_MATCH_FIELDS: Record<string, {
13
13
  /** The identifier shape that `gitHubIssueResource` builds. */
14
14
  export declare const GITHUB_ISSUE_IDENTIFIER: {
15
15
  format: string;
16
- pattern: RegExp;
16
+ pattern: string;
17
17
  };
18
18
  /** Build the stable issue identity shared by tools and webhooks. */
19
19
  export declare function gitHubIssueResource(input: {
@@ -31,7 +31,7 @@ export declare const GITHUB_PULL_REQUEST_MATCH_FIELDS: Record<string, {
31
31
  /** The identifier shape that `gitHubPullRequestResource` builds. */
32
32
  export declare const GITHUB_PULL_REQUEST_IDENTIFIER: {
33
33
  format: string;
34
- pattern: RegExp;
34
+ pattern: string;
35
35
  };
36
36
  /** Build the stable pull request identity shared by tools and webhooks. */
37
37
  export declare function gitHubPullRequestResource(input: {
@@ -4,7 +4,7 @@ export declare const GITHUB_RELEASE_SUGGESTED_EVENTS: string[];
4
4
  /** The identifier shape that `gitHubReleaseSourceResource` builds. */
5
5
  export declare const GITHUB_RELEASE_SOURCE_IDENTIFIER: {
6
6
  format: string;
7
- pattern: RegExp;
7
+ pattern: string;
8
8
  };
9
9
  /** Build the stable release-source identity shared by tools and webhooks. */
10
10
  export declare function gitHubReleaseSourceResource(input: {
@@ -2,7 +2,7 @@ import type { SubscribableResource } from "@sentry/junior-plugin-api";
2
2
  /** The identifier shape that `gitHubRepositoryResource` builds. */
3
3
  export declare const GITHUB_REPOSITORY_IDENTIFIER: {
4
4
  format: string;
5
- pattern: RegExp;
5
+ pattern: string;
6
6
  };
7
7
  /** Build the stable repository identity shared by tools and webhooks. */
8
8
  export declare function gitHubRepositoryResource(input: {
package/dist/index.js CHANGED
@@ -51,7 +51,7 @@ import {
51
51
  readGrantPermissions,
52
52
  requireEnv,
53
53
  resolveUserAccount
54
- } from "./chunk-VEN7LFRI.js";
54
+ } from "./chunk-KWVC6CU5.js";
55
55
 
56
56
  // src/plugin.ts
57
57
  import {
package/dist/testing.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeGitHubEvents
3
- } from "./chunk-VEN7LFRI.js";
3
+ } from "./chunk-KWVC6CU5.js";
4
4
  export {
5
5
  normalizeGitHubEvents
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-github",
3
- "version": "0.263.0",
3
+ "version": "0.264.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.264.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