Skip to content

Add PR analyzer#2376

Open
Su (sushmangupta) wants to merge 2 commits into
mainfrom
add/script-meaningful-pr
Open

Add PR analyzer#2376
Su (sushmangupta) wants to merge 2 commits into
mainfrom
add/script-meaningful-pr

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 review requested due to automatic review settings July 10, 2026 12:35
@shopware-dev-docs-connector

shopware-dev-docs-connector Bot commented Jul 10, 2026

Copy link
Copy Markdown

Developer Docs healthcheck

Status: Completed with success.
Repository: shopware/docs
Commit: 4fd40c4
Preview: https://developer-documentation-9iir7lcwc-shopware-frontends.vercel.app
Workflow run: #4452

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 Node-based script intended to analyze documentation-related PR impact and post an automated summary comment back to the pull request.

Changes:

  • Introduces a new workflow (Documentation Impact Analyzer) that runs on PR open/sync/reopen.
  • Adds a PR impact analyzer script that scores changes based on title keywords and file/patch heuristics.
  • Posts a formatted “Documentation Impact Analyzer” comment to the PR with score, recommendation, categories, and reasons.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 7 comments.

File Description
.github/workflows/pr-impact.yml Adds the PR-triggered GitHub Actions workflow to run the analyzer and (attempt to) comment on the PR.
.github/scripts/pr-impact.js Implements the scoring heuristics and PR-comment creation via Octokit.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/pr-impact.yml Outdated

- name: Install dependencies
run: |
npm install @actions/core @actions/github
Comment on lines +3 to +12
on:
pull_request:
types:
- opened
- synchronize
- reopened

permissions:
contents: read
pull-requests: write
Comment on lines +1 to +12
const github = require("@actions/github");

const token = process.env.GITHUB_TOKEN;

const octokit = github.getOctokit(token);

const context = github.context;

const owner = context.repo.owner;
const repo = context.repo.repo;
const pull_number = context.payload.pull_request.number;

Comment on lines +226 to +231
await octokit.rest.issues.createComment({
owner,
repo,
issue_number: pull_number,
body: comment
});

// ---------- DEPRECATION ----------

if (/deprecated/i.test(patch)) {

// ---------- BREAKING ----------

if (/breaking/i.test(patch)) {
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