@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.
@@ -95,11 +95,11 @@ function gitHubDeploymentSourceSubscribable(input) {
95
95
  ...gitHubDeploymentSourceResource(input),
96
96
  match: {
97
97
  repo: gitHubRepoDataSchema.parse(input.repo),
98
- commitSha: gitHubCommitShaDataSchema.parse(input.commitSha),
98
+ commit_sha: gitHubCommitShaDataSchema.parse(input.commitSha),
99
99
  ...environment ? { environment } : void 0
100
100
  },
101
- suggestedEvents: GITHUB_DEPLOYMENT_SUGGESTED_EVENTS,
102
- supportedEvents: [...GITHUB_DEPLOYMENT_EVENTS],
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
- suggestedEvents: GITHUB_ISSUE_SUGGESTED_EVENTS,
177
- supportedEvents: GITHUB_ISSUE_EVENTS,
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, commentId, and commentKind 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, commentId, and commentKind 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 baseBranch 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.`
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
- pullRequest: input.number
332
+ pull_request: input.number
333
333
  },
334
- ...suggestedEvents.length > 0 ? { suggestedEvents: [...suggestedEvents] } : void 0,
335
- supportedEvents: [...GITHUB_PULL_REQUEST_EVENTS],
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
- suggestedEvents: GITHUB_RELEASE_SUGGESTED_EVENTS,
381
- supportedEvents: [...GITHUB_RELEASE_EVENTS],
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
- suggestedEvents: [...GITHUB_REPOSITORY_SUGGESTED_EVENTS],
415
- supportedEvents: [...GITHUB_REPOSITORY_EVENTS],
414
+ suggested_events: [...GITHUB_REPOSITORY_SUGGESTED_EVENTS],
415
+ supported_events: [...GITHUB_REPOSITORY_EVENTS],
416
416
  type: "repository"
417
417
  };
418
418
  }
@@ -0,0 +1,5 @@
1
+ /** Name the github.com page of one watched resource, when it has one. */
2
+ export declare function gitHubResourceUrl(input: {
3
+ identifier: string;
4
+ resourceType: string;
5
+ }): string | undefined;