mirror of
https://github.com/github/awesome-copilot.git
synced 2026-05-30 10:31:47 +00:00
chore: publish from staged
This commit is contained in:
@@ -11,6 +11,10 @@ export const EXTERNAL_PLUGIN_INTAKE_LABELS = Object.freeze({
|
||||
color: "0E8A16",
|
||||
description: "Submission passed intake validation and is ready for maintainer review",
|
||||
},
|
||||
"requires-submitter-fixes": {
|
||||
color: "D93F0B",
|
||||
description: "Submission has quality-gate findings that submitter must fix before maintainer review",
|
||||
},
|
||||
approved: {
|
||||
color: "1D76DB",
|
||||
description: "Submission was approved by a maintainer",
|
||||
@@ -25,6 +29,7 @@ const EXTERNAL_PLUGIN_INTAKE_SYNC_LABELS = Object.freeze([
|
||||
"external-plugin",
|
||||
"awaiting-review",
|
||||
"ready-for-review",
|
||||
"requires-submitter-fixes",
|
||||
"rejected",
|
||||
]);
|
||||
|
||||
@@ -138,9 +143,14 @@ export async function applyExternalPluginIntakeEvaluation({
|
||||
issueNumber,
|
||||
evaluation,
|
||||
}) {
|
||||
const desiredLabels = evaluation.valid
|
||||
? new Set(["external-plugin", "ready-for-review"])
|
||||
: new Set(["external-plugin", "rejected"]);
|
||||
const state = evaluation.intakeState ?? (evaluation.valid ? "ready-for-review" : "rejected");
|
||||
const desiredLabelsByState = {
|
||||
"ready-for-review": new Set(["external-plugin", "ready-for-review"]),
|
||||
"requires-submitter-fixes": new Set(["external-plugin", "requires-submitter-fixes"]),
|
||||
"awaiting-review": new Set(["external-plugin", "awaiting-review"]),
|
||||
rejected: new Set(["external-plugin", "rejected"]),
|
||||
};
|
||||
const desiredLabels = desiredLabelsByState[state] ?? desiredLabelsByState.rejected;
|
||||
|
||||
await syncExternalPluginIntakeLabels({
|
||||
github,
|
||||
|
||||
Reference in New Issue
Block a user