Skip to content

Add shared Graft wrapper and daily repository intelligence workflow - #48881

Merged
pelikhan merged 2 commits into
mainfrom
copilot/wrap-graft-in-shared-workflow
Jul 29, 2026
Merged

Add shared Graft wrapper and daily repository intelligence workflow#48881
pelikhan merged 2 commits into
mainfrom
copilot/wrap-graft-in-shared-workflow

Conversation

Copilot AI commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Adds a reusable Graft integration for agentic workflows and a scheduled intelligence report built on top of it. The new workflow turns the last 24 hours of repository activity into codebase-aware findings instead of raw change logs.

  • Shared Graft component

    • Adds .github/workflows/shared/mcp/graft.md
    • Builds a fresh local Graft graph in /tmp/gh-aw/graft
    • Exposes only the read-only Graft MCP tools: graft_ask, graft_skeleton, graft_callers, graft_grep, graft_map, graft_check
    • Keeps the repository checkout untouched and scopes network access to the minimal npm/default paths needed for npx
  • Daily intelligence workflow

    • Adds .github/workflows/daily-graft-intelligence.md
    • Runs on a daily schedule and via workflow_dispatch
    • Collects the last 24 hours of changed files and commit metadata
    • Uses Graft as the primary analysis surface to identify changed subsystems, likely blast radius, and hotspot context
    • Publishes a recurring issue only when there is meaningful signal; otherwise emits noop
  • Workflow behavior

    • Uses Copilot SDK inference via permissions.copilot-requests: write
    • Routes write operations through safe outputs only
    • Applies mention/reference suppression so the recurring report stays non-noisy

Example usage in a workflow:

imports:
  - shared/mcp/graft.md

steps:
  - name: Collect recent repository activity
    run: |
      git log --since="24 hours ago" --name-only --pretty=format: \
        | sed '/^$/d' | sort -u > /tmp/gh-aw/agent/graft-changed-files.txt

Copilot AI and others added 2 commits July 29, 2026 12:53
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Add shared Graft workflow and daily intelligence report Add shared Graft wrapper and daily repository intelligence workflow Jul 29, 2026
Copilot AI requested a review from pelikhan July 29, 2026 13:07
@pelikhan
pelikhan marked this pull request as ready for review July 29, 2026 13:08
Copilot AI review requested due to automatic review settings July 29, 2026 13:08
@pelikhan
pelikhan merged commit a5a84b6 into main Jul 29, 2026
@pelikhan
pelikhan deleted the copilot/wrap-graft-in-shared-workflow branch July 29, 2026 13:09

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 reusable Graft code intelligence and a daily workflow that reports repository changes and blast radius.

Changes:

  • Adds a read-only Graft MCP wrapper.
  • Adds scheduled repository intelligence reporting.
  • Adds the compiled GitHub Actions workflow.
Show a summary per file
File Description
.github/workflows/shared/mcp/graft.md Configures Graft graph generation and MCP tools.
.github/workflows/daily-graft-intelligence.md Defines collection, analysis, and reporting behavior.
.github/workflows/daily-graft-intelligence.lock.yml Compiled executable workflow.

Review details

Tip

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

  • Files reviewed: 2/3 changed files
  • Comments generated: 5
  • Review effort level: Medium

Comment on lines +18 to +20
- "${GITHUB_WORKSPACE}"
env:
GRAFT_DIR: "/tmp/gh-aw/graft"
Comment on lines +40 to +45
steps:
- name: Collect recent repository activity
run: |
set -euo pipefail
mkdir -p /tmp/gh-aw/agent
git log --since="24 hours ago" --date=iso-strict \
Comment on lines +33 to +35
safe-outputs:
mentions: false
allowed-github-references: []
--name-status > /tmp/gh-aw/agent/graft-recent-activity.txt || true
git log --since="24 hours ago" --name-only --pretty=format: \
| sed '/^$/d' \
| sort -u > /tmp/gh-aw/agent/graft-changed-files.txt || true
mkdir -p /tmp/gh-aw/agent
git log --since="24 hours ago" --date=iso-strict \
--format='commit %H%nAuthor: %an <%ae>%nDate: %ad%nSubject: %s%n' \
--name-status > /tmp/gh-aw/agent/graft-recent-activity.txt || true
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.84.0

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.

3 participants