Skip to content

ci: post sticky comment on invalid PR title - #292

Merged
kodiakhq[bot] merged 1 commit into
mainfrom
ci/sticky-pr-title-comment
Nov 16, 2026
Merged

kodiakhq[bot] merged 1 commit into
mainfrom
ci/sticky-pr-title-comment

Conversation

@RedStar071

@RedStar071 RedStar071 commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

🔗 Linked issue

None.

🧭 Context

A failed title check only shows a red status. Contributors do not see the reason unless they open the run. The same sticky comment already works in redstar071.dev.

📚 Description

Adds two marocchino/sticky-pull-request-comment steps. One posts the title error as a sticky comment. The other deletes it once the title is valid. The job now has pull-requests: write.

Key changes

  • .github/workflows/semantic-pull-requests.yml

Type of Change

  • Workflow / CI change

🤖 AI disclosure: Wolfstar Agent Kit modified this description. AI open source policy.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Reviews (1) · Last reviewed commit: "ci: post sticky comment on invalid PR ti..." · Reviewed by Greptile

Explain a failed title check in the pull request, like redstar071.dev. The comment goes away once the title is valid.
@coldtea-pr-lens

Copy link
Copy Markdown

Note

The title starts with ci:, so PR Lens left this pull request undrawn. Comment @pr-lens draw to draw it

github.comment.notice: false in .github/pr-lens.yml turns this note off

@pkg-pr-new

pkg-pr-new Bot commented Nov 16, 2026

Copy link
Copy Markdown

Open in StackBlitz

@wolfstar/plugin-api

pnpm add https://pkg.pr.new/@wolfstar/plugin-api@292

@wolfstar/plugin-broker

pnpm add https://pkg.pr.new/@wolfstar/plugin-broker@292

@wolfstar/plugin-cache

pnpm add https://pkg.pr.new/@wolfstar/plugin-cache@292

@wolfstar/plugin-gateway

pnpm add https://pkg.pr.new/@wolfstar/plugin-gateway@292

@wolfstar/plugin-i18next

pnpm add https://pkg.pr.new/@wolfstar/plugin-i18next@292

@wolfstar/plugin-logger

pnpm add https://pkg.pr.new/@wolfstar/plugin-logger@292

@wolfstar/plugin-opentelemetry

pnpm add https://pkg.pr.new/@wolfstar/plugin-opentelemetry@292

@wolfstar/plugin-scheduled-tasks

pnpm add https://pkg.pr.new/@wolfstar/plugin-scheduled-tasks@292

@wolfstar/plugin-sharder

pnpm add https://pkg.pr.new/@wolfstar/plugin-sharder@292

@wolfstar/plugin-subcommands-advanced

pnpm add https://pkg.pr.new/@wolfstar/plugin-subcommands-advanced@292

commit: 63fad9f

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ℹ️ No critical issues — one small PR body nit.

Reviewed changes

Reviewed the single commit touching .github/workflows/semantic-pull-requests.yml.

  • pull-requests: write — the job permission is raised from read so the comment steps can post and delete. It is scoped to this job only, under the workflow's top-level permissions: {}.
  • Sticky error comment — a marocchino/sticky-pull-request-comment step runs with if: always() && error_message != null and posts the lint error under the pr-title-lint-error header. The SHA 773744901bac… matches the v2.9.4 tag.
  • Sticky comment cleanup — a second step with delete: true removes the comment once error_message is empty. It is skipped when the lint step itself fails, which is the correct behaviour.

I checked three things. '' == null is true in Actions expressions, so the delete condition works. pull_request_target gives fork PRs a write token, so the comment works for them. error_message is passed through with:, not a run: script, so there is no script injection.

ℹ️ PR body disclosure line doesn't follow AI_POLICY.md

The body's disclosure line ("Wolfstar Agent Kit modified this description…") doesn't use the format in AI_POLICY.md#disclosure. That format needs the tool name, the exact model ids for the code and for the description, and the AI policy link. It also should be the last line of the body.

Technical details
# PR body disclosure format

## Affected sites
- PR #292 description — the disclosure line has no model ids and links to an external policy.

## Required outcome
- End the body with exactly one line: `> 🤖 AI disclosure: <tool> was used on this PR. Code written with <model id>; PR description written with <model id>. [AI policy](https://github.com/wolfstar-project/plugins/blob/main/AI_POLICY.md).`

Pullfrog  | Fix it ➔ | View workflow run | Using claude-sonnet-5-5 | 𝕏

@kodiakhq
kodiakhq Bot merged commit 775d46b into main Nov 16, 2026
18 of 20 checks passed
@kodiakhq
kodiakhq Bot deleted the ci/sticky-pr-title-comment branch November 16, 2026 19:15
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