@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.
@@ -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. It does not mean that none are required. Otherwise stay silent.";
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;
@@ -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;