@sentry/junior-github 0.274.0 → 0.276.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/dist/{chunk-EALXNZGU.js → chunk-PCWKGWHE.js} +15 -15
- package/dist/events/resource-url.d.ts +5 -0
- package/dist/index.js +586 -437
- package/dist/testing.js +1 -1
- package/dist/tools/clone-repository.d.ts +1 -1
- package/dist/tools/create-issue.d.ts +4 -4
- package/dist/tools/create-pull-request.d.ts +12 -4
- package/dist/tools/get-deployment.d.ts +19 -19
- package/dist/tools/get-pull-request.d.ts +6 -6
- package/dist/tools/get-release.d.ts +14 -14
- package/dist/tools/get-repository.d.ts +8 -8
- package/dist/tools/resolve-pull-request-review-thread.d.ts +3 -3
- package/dist/tools/stack-pull-request.d.ts +42 -0
- package/dist/tools/submit-pull-request-review.d.ts +4 -4
- package/dist/tools/update-issue.d.ts +4 -4
- package/dist/tools/update-pull-request-feedback.d.ts +6 -6
- package/dist/tools/update-pull-request.d.ts +4 -4
- package/package.json +2 -2
- package/skills/github-code/references/api-surface.md +1 -1
- package/skills/github-code/references/workflow.md +5 -3
|
@@ -95,11 +95,11 @@ function gitHubDeploymentSourceSubscribable(input) {
|
|
|
95
95
|
...gitHubDeploymentSourceResource(input),
|
|
96
96
|
match: {
|
|
97
97
|
repo: gitHubRepoDataSchema.parse(input.repo),
|
|
98
|
-
|
|
98
|
+
commit_sha: gitHubCommitShaDataSchema.parse(input.commitSha),
|
|
99
99
|
...environment ? { environment } : void 0
|
|
100
100
|
},
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
suggested_events: GITHUB_DEPLOYMENT_SUGGESTED_EVENTS,
|
|
102
|
+
supported_events: [...GITHUB_DEPLOYMENT_EVENTS],
|
|
103
103
|
type: "deployment_source"
|
|
104
104
|
};
|
|
105
105
|
}
|
|
@@ -173,8 +173,8 @@ function gitHubIssueSubscribable(input) {
|
|
|
173
173
|
repo: gitHubRepoDataSchema.parse(input.repo),
|
|
174
174
|
issue: input.number
|
|
175
175
|
},
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
suggested_events: GITHUB_ISSUE_SUGGESTED_EVENTS,
|
|
177
|
+
supported_events: GITHUB_ISSUE_EVENTS,
|
|
178
178
|
type: "issue"
|
|
179
179
|
};
|
|
180
180
|
}
|
|
@@ -204,9 +204,9 @@ var GITHUB_PULL_REQUEST_EVENT_GUIDANCE = {
|
|
|
204
204
|
// An approval with a body also arrives as review.commented in the same
|
|
205
205
|
// Turn, so this guidance must not tell the agent to hold off on that body.
|
|
206
206
|
"pull_request.review.approved": "When the approval includes actionable feedback, address it like any other review feedback.",
|
|
207
|
-
"pull_request.comment.created": 'After acting on actionable feedback, call github_updatePullRequestFeedback with the exact repo,
|
|
208
|
-
"pull_request.review_comment.created": 'After acting on actionable feedback, call github_updatePullRequestFeedback with the exact repo,
|
|
209
|
-
"pull_request.merge_conflict": `${STACK_CHECK} If it is, run \`gh stack checkout NUMBER\`, then ${STACK_CONFLICT_STEPS} If it is not, fetch
|
|
207
|
+
"pull_request.comment.created": 'After acting on actionable feedback, call github_updatePullRequestFeedback with the exact repo, comment_id, and comment_kind from Verified details, and status "addressed" or "declined".',
|
|
208
|
+
"pull_request.review_comment.created": 'After acting on actionable feedback, call github_updatePullRequestFeedback with the exact repo, comment_id, and comment_kind from Verified details, and status "addressed" or "declined". Then resolve the thread with github_resolvePullRequestReviewThread.',
|
|
209
|
+
"pull_request.merge_conflict": `${STACK_CHECK} If it is, run \`gh stack checkout NUMBER\`, then ${STACK_CONFLICT_STEPS} If it is not, fetch base_branch from Verified details and merge it into the pull request branch. Do not rebase. Resolve each conflict so that both the pull request change and the base branch change stay intact. Run the checks again, push, and confirm that the pull request can merge. Report the files that had conflicts.`
|
|
210
210
|
};
|
|
211
211
|
function gitHubPullRequestEventGuidance(guidance) {
|
|
212
212
|
const merged = { ...GITHUB_PULL_REQUEST_EVENT_GUIDANCE };
|
|
@@ -329,10 +329,10 @@ function gitHubPullRequestSubscribable(input) {
|
|
|
329
329
|
...gitHubPullRequestResource(input),
|
|
330
330
|
match: {
|
|
331
331
|
repo: gitHubRepoDataSchema.parse(input.repo),
|
|
332
|
-
|
|
332
|
+
pull_request: input.number
|
|
333
333
|
},
|
|
334
|
-
...suggestedEvents.length > 0 ? {
|
|
335
|
-
|
|
334
|
+
...suggestedEvents.length > 0 ? { suggested_events: [...suggestedEvents] } : void 0,
|
|
335
|
+
supported_events: [...GITHUB_PULL_REQUEST_EVENTS],
|
|
336
336
|
type: "pull_request"
|
|
337
337
|
};
|
|
338
338
|
}
|
|
@@ -377,8 +377,8 @@ function gitHubReleaseSourceSubscribable(input) {
|
|
|
377
377
|
repo: gitHubRepoDataSchema.parse(input.repo),
|
|
378
378
|
...tag ? { tag: gitHubReleaseTagDataSchema.parse(tag) } : void 0
|
|
379
379
|
},
|
|
380
|
-
|
|
381
|
-
|
|
380
|
+
suggested_events: GITHUB_RELEASE_SUGGESTED_EVENTS,
|
|
381
|
+
supported_events: [...GITHUB_RELEASE_EVENTS],
|
|
382
382
|
type: "release_source"
|
|
383
383
|
};
|
|
384
384
|
}
|
|
@@ -411,8 +411,8 @@ function gitHubRepositorySubscribable(input) {
|
|
|
411
411
|
return {
|
|
412
412
|
...gitHubRepositoryResource(input),
|
|
413
413
|
match: { repo: gitHubRepoDataSchema.parse(input.repo) },
|
|
414
|
-
|
|
415
|
-
|
|
414
|
+
suggested_events: [...GITHUB_REPOSITORY_SUGGESTED_EVENTS],
|
|
415
|
+
supported_events: [...GITHUB_REPOSITORY_EVENTS],
|
|
416
416
|
type: "repository"
|
|
417
417
|
};
|
|
418
418
|
}
|