@sentry/junior-github 0.299.0 → 0.301.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/account-links.d.ts +8 -0
- package/dist/{chunk-O74CQGTZ.js → chunk-YUF5P5I7.js} +1 -1
- package/dist/configured-repository.d.ts +10 -0
- package/dist/images.d.ts +8 -0
- package/dist/index.js +384 -183
- package/dist/object-facts.d.ts +14 -3
- package/dist/reply-markdown.d.ts +18 -2
- package/dist/testing.js +1 -1
- package/dist/tool-support/github-api.d.ts +7 -0
- package/dist/tool-support/github-text.d.ts +8 -0
- package/dist/tools/clone-repository.d.ts +38 -2
- package/dist/tools/comment-on-issue.d.ts +38 -2
- package/dist/tools/comment-on-pull-request.d.ts +38 -2
- package/dist/tools/create-issue.d.ts +38 -2
- package/dist/tools/create-pull-request.d.ts +38 -2
- package/dist/tools/get-deployment.d.ts +38 -2
- package/dist/tools/get-issue.d.ts +38 -2
- package/dist/tools/get-pull-request.d.ts +38 -2
- package/dist/tools/get-release.d.ts +38 -2
- package/dist/tools/get-repository.d.ts +38 -2
- package/dist/tools/get-status.d.ts +38 -2
- package/dist/tools/react-to-issue.d.ts +38 -2
- package/dist/tools/resolve-pull-request-review-thread.d.ts +38 -2
- package/dist/tools/submit-pull-request-review.d.ts +38 -2
- package/dist/tools/update-issue-comment.d.ts +38 -2
- package/dist/tools/update-issue.d.ts +38 -2
- package/dist/tools/update-pull-request-feedback.d.ts +38 -2
- package/dist/tools/update-pull-request.d.ts +38 -2
- package/package.json +8 -4
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PluginObjectLinkDefinition } from "@sentry/junior-plugin-api";
|
|
2
|
+
/**
|
|
3
|
+
* GitHub profile links, such as `https://github.com/octocat`. A login that
|
|
4
|
+
* links to a known person shows their Junior person card. Any other login
|
|
5
|
+
* shows a GitHub account card. Both come from the link alone, so the card
|
|
6
|
+
* needs no GitHub request.
|
|
7
|
+
*/
|
|
8
|
+
export declare const githubAccountLinks: PluginObjectLinkDefinition;
|
|
@@ -273,7 +273,7 @@ var GITHUB_PULL_REQUEST_OUTCOME_GUIDANCE = {
|
|
|
273
273
|
"pull_request.review.approved": `Mention each person in People involved, or the person who asked for the pull request if that line is missing. Say who approved it and link it. Do not merge it unless asked. ${MERGE_STATE_CHECK}`,
|
|
274
274
|
"pull_request.merged": "Mention each person in People involved, or the person who asked for the pull request if that line is missing. Say that it merged and link it."
|
|
275
275
|
};
|
|
276
|
-
var DRAFT_CHECKS_RECOVERED_GUIDANCE = "If the pull request is still a draft, call github_getPullRequest and read its `checks`. When `checks.required` is `passing` and no decision is open, in the pull request body or in an open review item that waits on the person who asked for it, mark it ready with github_updatePullRequest and draft false, and report that in the originating thread. When it is `failing`, fix the failing checks like a failed check. When it is `not_reported`, the required checks may not have started on the latest commit yet
|
|
276
|
+
var DRAFT_CHECKS_RECOVERED_GUIDANCE = "If the pull request is still a draft, call github_getPullRequest and read its `checks`. When `checks.required` is `passing` and no decision is open, in the pull request body or in an open review item that waits on the person who asked for it, mark it ready with github_updatePullRequest and draft false, and report that in the originating thread. When it is `failing`, fix the failing checks like a failed check. When it is `pending` or `not_reported`, stay silent: a later passing suite wakes you again. `not_reported` means the required checks may not have started on the latest commit yet, not that none are required.";
|
|
277
277
|
function gitHubPullRequestCreateWatch(config, pullRequest) {
|
|
278
278
|
const outcomeEvents = Object.keys(
|
|
279
279
|
GITHUB_PULL_REQUEST_OUTCOME_GUIDANCE
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** A GitHub repository, by owner and name. */
|
|
2
|
+
export interface Repository {
|
|
3
|
+
name: string;
|
|
4
|
+
owner: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Read the `repo` config value as `owner/name`, or as `name` with the `org`
|
|
8
|
+
* config value. Return undefined when neither form is complete.
|
|
9
|
+
*/
|
|
10
|
+
export declare function configuredRepository(config: Record<string, string>): Repository | undefined;
|
package/dist/images.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Description images of GitHub objects, served through the Junior image
|
|
3
|
+
* route. Each read checks that the viewer's linked GitHub account can see
|
|
4
|
+
* the repository. Only then does Junior fetch the image with the App.
|
|
5
|
+
*/
|
|
6
|
+
import { type PluginImageSource } from "@sentry/junior-plugin-api";
|
|
7
|
+
/** Serve the description images of GitHub objects to viewers who can see the repository. */
|
|
8
|
+
export declare const githubImageSource: PluginImageSource;
|