Skip to content

Announcement detector script - #2441

Open
Su (sushmangupta) wants to merge 1 commit into
mainfrom
adhoc/announce-detector
Open

Announcement detector script#2441
Su (sushmangupta) wants to merge 1 commit into
mainfrom
adhoc/announce-detector

Conversation

@sushmangupta

Copy link
Copy Markdown
Contributor

Summary

Related links

Checklist

  • I reviewed affected links, code samples, and cross-references, including PageRef references where relevant.
  • I added or updated redirects in .gitbook.yaml if pages were moved, renamed, or deleted.
  • I updated .wordlist.txt (and sorted it) if spellcheck flags new legitimate terms.
  • Any required dependent changes in downstream modules have already been merged and published.
  • This pull request is ready for review.

Notes

Copilot AI lite review requested due to automatic review settings August 13, 2026 10:29
@shopware-dev-docs-connector

shopware-dev-docs-connector Bot commented Aug 13, 2026

Copy link
Copy Markdown

Developer Docs healthcheck

Status: Completed with success.
Repository: shopware/docs
Commit: 41950df
Preview: https://developer-documentation-dxticqbcz-shopware-frontends.vercel.app
Workflow run: #4788

@github-actions

Copy link
Copy Markdown
Contributor

📢 Developer Announcement Recommendation

Recommendation: ✅ Recommend Announcement

Detected Signals

  • ✅ New Documentation Page
  • ✅ Migration Guide
  • ✅ Breaking Changes
  • ✅ Deprecation
  • ✅ Extension Point
  • ✅ SDK
  • ✅ Security
  • ✅ Performance

Review this PR and, if appropriate, apply the Announcement label.

Copilot AI 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.

Pull request overview

Adds a GitHub Actions workflow plus a small Node-based analyzer that scans pull request metadata and diffs for “announcement-worthy” signals, then posts (or updates) a recommendation comment on the PR.

Changes:

  • Introduces a new PR-triggered workflow to run an announcement detector script.
  • Adds a ruleset and detection logic to identify documentation/API/security/performance signals.
  • Adds a lightweight GitHub REST client and a reporter to publish/update a PR comment.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
.github/workflows/announcement-detector.yml New workflow to run the detector on PR events and publish a recommendation comment.
.github/scripts/announcement-detector.js Entry point that loads PR + files, runs detection, and publishes the result.
.github/scripts/detector.js Core detection engine that evaluates PR/files against configured rules.
.github/scripts/rules.js Rule definitions (signals) used to decide whether an announcement is recommended.
.github/scripts/reporter.js Builds and creates/updates the PR comment with the recommendation and signals.
.github/scripts/github.js Minimal GitHub API wrapper used to fetch PR data/files and manage PR comments.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
Comment on lines +10 to +13
permissions:
contents: read
pull-requests: write

Comment on lines +14 to +16
jobs:
analyze:
runs-on: ubuntu-latest
Comment thread .github/scripts/github.js
Comment on lines +91 to +97
async function getFiles(number) {

return get(
`${API}/pulls/${number}/files?per_page=100`
);

}
Comment thread .github/scripts/github.js
Comment on lines +99 to +105
async function getComments(number) {

return get(
`${API}/issues/${number}/comments`
);

}
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.

2 participants