Skip to content

[Soul Ring Share Proof] langchain v0.2.0 release proof #2

[Soul Ring Share Proof] langchain v0.2.0 release proof

[Soul Ring Share Proof] langchain v0.2.0 release proof #2

name: Soul Ring Bounty Board IssueOps
"on":
issues:
types:
- opened
permissions:
issues: write
contents: read
jobs:
soul-ring-bounty-board-comment:
if: >-
github.event.issue.pull_request == null &&
(
contains(github.event.issue.labels.*.name, 'soul-ring-bounty') ||
startsWith(github.event.issue.title, '[Soul Ring Bounty]')
)
runs-on: ubuntu-latest
steps:
- name: Comment with soul ring bounty board commands
uses: actions/github-script@v8
with:
script: |
const issue = context.payload.issue;
const issueUrl = issue.html_url;
const username = issue.user.login;
const issueBody = issue.body || "";
function fieldValue(label, fallback) {
const pattern = new RegExp(`### ${label}\\s*\\n\\s*([^\\n]+)`, "i");
const match = issueBody.match(pattern);
return (match && match[1] ? match[1].trim() : fallback);
}
const parsedTopN = Number.parseInt(fieldValue("Top N", "8"), 10);
const topN = Number.isFinite(parsedTopN) && parsedTopN > 0
? Math.max(1, Math.min(parsedTopN, 50))
: 8;
const parsedTarget = Number.parseInt(fieldValue("Target contributors", "3"), 10);
const target = Number.isFinite(parsedTarget) && parsedTarget > 0
? Math.max(1, Math.min(parsedTarget, 100))
: 3;
const allowedFrameworks = new Set([
"auto",
"autogen",
"dspy",
"openai-agents",
"mcp",
"langchain",
"llamaindex",
"crewai",
"pydantic-ai",
"semantic-kernel",
]);
const rawFramework = fieldValue("Framework or tool", "auto")
.toLowerCase()
.replace(/\s+/g, "-");
const framework = allowedFrameworks.has(rawFramework) ? rawFramework : "auto";
const rawRelease = fieldValue("Release tag", "v0.2.0");
const releaseTag = /^v?[0-9][0-9A-Za-z._-]*$/.test(rawRelease)
? rawRelease
: "v0.2.0";
const claimFramework = framework === "auto" ? "<first-framework-from-bounty-board>" : framework;
const prescriptionUrl =
`https://github.com/${context.repo.owner}/${context.repo.repo}/issues/new?template=soul-ring-prescription.yml&framework=${encodeURIComponent(claimFramework)}`;
const body = [
"## Soul Ring Bounty Board",
"",
`@${username}, this issue can become a public CyberHuaTuo bounty-board route for real framework coverage gaps.`,
"",
"The bounty board reads real local case files and supported framework definitions. It ranks coverage gap targets and routes contributors into reviewable First Soul Ring Prescription Issue submissions.",
"",
"Launch Closure Checklist before treating this bounty request as a live PyPI / Claude / Codex market route:",
"```bash",
`cyberhuatuo proof-pack --username ${username} --framework ${framework} --release-tag ${releaseTag} --target-contributors ${target}`,
`cyberhuatuo market-copy --username ${username} --framework ${framework} --release-tag ${releaseTag} --target-contributors ${target}`,
`cyberhuatuo market-ready --remote --strict-remote --username ${username} --framework ${framework} --release-tag ${releaseTag} --target-contributors ${target}`,
"```",
"",
"Record this created public Issue before running contribution commands:",
"```bash",
`cyberhuatuo record-return --username ${username} --framework ${framework} --surface "Bounty Board Issue" --source-url ${issueUrl}`,
`cyberhuatuo activation --username ${username} --framework ${framework} --sect CyberHuaTuo-Sect --members ${username} --top-n ${topN}`,
`cyberhuatuo flywheel --username ${username} --framework ${framework} --sect CyberHuaTuo-Sect --members ${username} --top-n ${topN}`,
"```",
"",
"```bash",
`cyberhuatuo bounty --username ${username} --framework ${framework} --top-n ${topN} --release-tag ${releaseTag} --target-contributors ${target}`,
`cyberhuatuo challenge --username ${username} --framework ${claimFramework}`,
`cyberhuatuo first-invite --username ${username} --invitee <external-contributor-github-username> --framework ${claimFramework} --release-tag ${releaseTag} --target-contributors ${target} --source-url ${issueUrl}`,
`cyberhuatuo proof-pack --username ${username} --framework ${claimFramework} --release-tag ${releaseTag} --target-contributors ${target}`,
`cyberhuatuo market-copy --username ${username} --framework ${claimFramework} --release-tag ${releaseTag} --target-contributors ${target}`,
`cyberhuatuo traction-proof --username ${username} --framework ${claimFramework} --release-tag ${releaseTag} --target-contributors ${target}`,
"```",
"",
`First Soul Ring Prescription Issue: ${prescriptionUrl}`,
"",
"Created-Issue proof rule: form URLs are entrypoints, not proof URLs. Record only the created public Issue, Pull Request, Discussion, release, or social URL after submission.",
"",
"No downloads, retention, repost counts, referrals, rewards, reviews, or fake contributors are invented.",
"",
"Repo: https://github.com/JinNing6/CyberHuaTuo-Plugin",
].join("\n");
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue.number,
body,
});