@oss-autopilot/core - v3.7.0
    Preparing search index...

    Function runComplianceScore

    Score a PR against opensource.guide best practices via the typed core function (#1245).

    • Run the compliance evaluation against a PR URL.

      Parameters

      • options: { prUrl: string }

      Returns Promise<
          {
              checks: {
                  branch: {
                      detail: string;
                      status: "fail"
                      | "pass"
                      | "warn";
                      weight: number;
                  };
                  description: {
                      detail: string;
                      status: "fail"
                      | "pass"
                      | "warn";
                      weight: number;
                  };
                  focusedChanges: {
                      detail: string;
                      status: "fail"
                      | "pass"
                      | "warn";
                      weight: number;
                  };
                  issueReference: {
                      detail: string;
                      status: "fail"
                      | "pass"
                      | "warn";
                      weight: number;
                  };
                  tests: {
                      detail: string;
                      status: "fail"
                      | "pass"
                      | "warn";
                      weight: number;
                  };
                  title: {
                      detail: string;
                      status: "fail"
                      | "pass"
                      | "warn";
                      weight: number;
                  };
              };
              emoji: "🌟"
              | "✅"
              | "⚠️"
              | "❌";
              pr: { number: number; repo: string; title: string; url: string };
              rating: "ready" | "minor" | "fix_first" | "significant_work";
              score: number;
          },
      >

      If the URL is not a valid GitHub PR URL.