mirror of
https://github.com/github/spec-kit.git
synced 2026-08-03 06:26:30 +08:00
* Add community bundle submission automation Add the discovery-only community bundle catalog, online and offline catalog loading, and a restricted agentic workflow for validating bundle submissions and opening draft catalog PRs. Assisted-by: GitHub Copilot (model: GPT-5.6 Sol, autonomous) Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: fbe794bc-667a-4c9e-b48b-825067debc6d * Address community bundle review feedback Ensure explicit install-allowed catalogs take precedence over built-in discovery, tighten component installability validation, and use issue-linked community branches. Assisted-by: GitHub Copilot (model: GPT-5.6 Sol, autonomous) Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: fbe794bc-667a-4c9e-b48b-825067debc6d * Address follow-up bundle review feedback Make offline catalog coverage content-agnostic and require autonomous catalog commits to include the assisted-by trailer. Assisted-by: GitHub Copilot (model: GPT-5.6 Sol, autonomous) Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: fbe794bc-667a-4c9e-b48b-825067debc6d * Harden bundle catalog table rendering Require single-line escaped Markdown table values for untrusted submission metadata. The needs-info label used by validation is now present in the repository. Assisted-by: GitHub Copilot (model: GPT-5.6 Sol, autonomous) Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: fbe794bc-667a-4c9e-b48b-825067debc6d * Clear stale bundle validation labels Allow the submission workflow to remove prior outcome labels before applying the current validation state. Assisted-by: GitHub Copilot (model: GPT-5.6 Sol, autonomous) Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: fbe794bc-667a-4c9e-b48b-825067debc6d
62 lines
2.2 KiB
YAML
62 lines
2.2 KiB
YAML
name: "Catalog: Auto-assign submission"
|
|
|
|
on:
|
|
issues:
|
|
types: [opened, labeled]
|
|
|
|
jobs:
|
|
assign:
|
|
if: >
|
|
(github.event.action == 'opened' && (
|
|
contains(github.event.issue.labels.*.name, 'extension-submission') ||
|
|
contains(github.event.issue.labels.*.name, 'preset-submission') ||
|
|
contains(github.event.issue.labels.*.name, 'bundle-submission')
|
|
)) ||
|
|
(github.event.action == 'labeled' && (
|
|
github.event.label.name == 'extension-submission' ||
|
|
github.event.label.name == 'preset-submission' ||
|
|
github.event.label.name == 'bundle-submission'
|
|
))
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
issues: write
|
|
steps:
|
|
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
|
|
with:
|
|
script: |
|
|
const issue = context.payload.issue;
|
|
const assigned = (issue.assignees || []).map(a => a.login);
|
|
const marker = '<!-- catalog-assign-bot -->';
|
|
|
|
// Assign mnriem if not already assigned
|
|
if (!assigned.includes('mnriem')) {
|
|
try {
|
|
await github.rest.issues.addAssignees({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: context.issue.number,
|
|
assignees: ['mnriem'],
|
|
});
|
|
} catch (e) {
|
|
console.log(`Warning: could not assign mnriem: ${e.message}`);
|
|
}
|
|
}
|
|
|
|
// Post team notification if not already posted
|
|
const comments = await github.paginate(
|
|
github.rest.issues.listComments,
|
|
{
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: context.issue.number,
|
|
}
|
|
);
|
|
if (!comments.some(c => c.body && c.body.includes(marker))) {
|
|
await github.rest.issues.createComment({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: context.issue.number,
|
|
body: marker + '\ncc @github/spec-kit-maintainers — new catalog submission for review.',
|
|
});
|
|
}
|