Update check-glama.yml

This commit is contained in:
Frank Fiegel
2026-03-12 03:53:42 -06:00
committed by GitHub
parent b584286415
commit 29eb3683d9

View File

@@ -237,6 +237,23 @@ jobs:
if (!hasGlama) { if (!hasGlama) {
const marker = '<!-- glama-check -->'; const marker = '<!-- glama-check -->';
if (!comments.some(c => c.body.includes(marker))) { if (!comments.some(c => c.body.includes(marker))) {
let glamaServerPath = '';
for (const line of addedLines) {
const ghMatch = line.match(/\]\(https:\/\/github\.com\/([^/]+)\/([^/)]+)\)/);
if (ghMatch) {
glamaServerPath = `${ghMatch[1]}/${ghMatch[2]}`;
break;
}
}
const badgeSection = glamaServerPath
? `The server's badge needs to show [A A A score](https://glama.ai/mcp/servers/${glamaServerPath}/score):
<a href="https://glama.ai/mcp/servers/${glamaServerPath}">
<img width="380" height="200" src="https://glama.ai/mcp/servers/${glamaServerPath}/badge" />
</a>`
: `The server's badge needs to show an A A A score.`;
await github.rest.issues.createComment({ await github.rest.issues.createComment({
owner, owner,
repo, repo,
@@ -251,6 +268,8 @@ jobs:
2. **Update your PR** by adding a \`[glama](https://glama.ai/mcp/servers/...)\` link immediately after the GitHub repository link, pointing to your server's Glama listing page. 2. **Update your PR** by adding a \`[glama](https://glama.ai/mcp/servers/...)\` link immediately after the GitHub repository link, pointing to your server's Glama listing page.
${badgeSection}
If you need any assistance, feel free to ask questions here or on [Discord](https://glama.ai/discord). If you need any assistance, feel free to ask questions here or on [Discord](https://glama.ai/discord).
P.S. If your server already has a hosted endpoint, you can also list it under https://glama.ai/mcp/connectors.` P.S. If your server already has a hosted endpoint, you can also list it under https://glama.ai/mcp/connectors.`