Skip to content

feat: add glossary consistency checker#61

Open
brandon-fox wants to merge 1 commit intomainfrom
feat/batch4c-glossary
Open

feat: add glossary consistency checker#61
brandon-fox wants to merge 1 commit intomainfrom
feat/batch4c-glossary

Conversation

@brandon-fox
Copy link
Copy Markdown
Member

Glossary Consistency Checker\nValidates terminology in spec/plan/tasks against the project glossary. Posts report on PRs.

…c/plan/tasks match the project glossary.\nPosts report as PR comment and step summary.
@gemini-code-assist
Copy link
Copy Markdown

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@brandon-fox brandon-fox enabled auto-merge March 7, 2026 22:57
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Mar 7, 2026

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name=".github/workflows/glossary-checker.yml">

<violation number="1" location=".github/workflows/glossary-checker.yml:116">
P2: If a PR has over 30 comments, `listComments` won't return all of them, causing the bot to spam duplicate comments on every push. Use `github.paginate` to reliably fetch all comments.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment on lines +116 to +119
const { data: comments } = await github.rest.issues.listComments({
owner: context.repo.owner, repo: context.repo.repo,
issue_number: context.issue.number
});
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot Mar 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: If a PR has over 30 comments, listComments won't return all of them, causing the bot to spam duplicate comments on every push. Use github.paginate to reliably fetch all comments.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/glossary-checker.yml, line 116:

<comment>If a PR has over 30 comments, `listComments` won't return all of them, causing the bot to spam duplicate comments on every push. Use `github.paginate` to reliably fetch all comments.</comment>

<file context>
@@ -0,0 +1,134 @@
+
+            // Post on PR
+            if (context.payload.pull_request) {
+              const { data: comments } = await github.rest.issues.listComments({
+                owner: context.repo.owner, repo: context.repo.repo,
+                issue_number: context.issue.number
</file context>
Suggested change
const { data: comments } = await github.rest.issues.listComments({
owner: context.repo.owner, repo: context.repo.repo,
issue_number: context.issue.number
});
const comments = await github.paginate(github.rest.issues.listComments, {
owner: context.repo.owner, repo: context.repo.repo,
issue_number: context.issue.number
});
Fix with Cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant