diff --git a/.github/workflows/astral-clearance.yml b/.github/workflows/astral-clearance.yml index d0e54e4..4ddf94c 100644 --- a/.github/workflows/astral-clearance.yml +++ b/.github/workflows/astral-clearance.yml @@ -34,18 +34,18 @@ jobs: } const label = 'needs_astral_clearance' - async function ensureLabel() { + async function ensureLabel(name, color, description) { try { - await github.rest.issues.getLabel({ owner, repo, name: label }) - } catch (e) { - if (e.status === 404) { - await github.rest.issues.createLabel({ owner, repo, name: label, color: 'b497e7', description: 'Extra review requested' }) + await github.rest.issues.getLabel({ owner, repo, name }) + } catch (err) { + if (err.status === 404) { + await github.rest.issues.createLabel({ owner, repo, name, color, description }) } else { - throw e + throw err } } } - await ensureLabel() + await ensureLabel(label, 'b497e7', 'Extra review requested') const on = /\b(on|true|yes|enable)\b/i.test(body) const off = /\b(off|false|no|disable)\b/i.test(body) diff --git a/README.md b/README.md index 35eacac..bacd555 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ What it **is**: - `ETHICS.md` – You should read this first. Or last. Or just feel it. - `LISANCE.txt` – For systems that reject the cold logic of traditional licensing. -- `cla.yml` – Marks the line between chaos and contribution. +- `.github/workflows/` – Marks the line between chaos and contribution. - `examples/` – Things that almost make sense. - `workflows/` – Machines that don’t ask permission to run. diff --git a/cla.yml b/cla.yml deleted file mode 100644 index 5bbadbd..0000000 --- a/cla.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: CLA marker -on: - pull_request_target: - types: [opened, reopened, synchronize, edited, ready_for_review] - -jobs: - cla: - uses: Smidjehoien/.github/.github/workflows/cla-mark.yml@main - with: - cover_org_members: true - cover_collaborators: false # set to true if you want collaborators auto‑covered - allowlist_users: "cosmicjesterx" - create_missing_labels: true # auto-create "CLA: covered" / "CLA: review" diff --git a/workflows/cla.ylm b/workflows/cla.yml similarity index 100% rename from workflows/cla.ylm rename to workflows/cla.yml