Skip to content

fix: PR title missing from crush review context#52

Merged
taoeffect merged 2 commits intomainfrom
devin/1771720695-fix-pr-title-context
Feb 22, 2026
Merged

fix: PR title missing from crush review context#52
taoeffect merged 2 commits intomainfrom
devin/1771720695-fix-pr-title-context

Conversation

@devin-ai-integration
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot commented Feb 22, 2026

Summary

The pr_data.json file is written to the working directory in the Get PR details step, but actions/checkout@v4 wipes the working directory clean before the Generate helpful context step reads from it. The PR body already survived because it was saved to /tmp/pr_body.txt; the title was not given the same treatment, so it silently resolved to an empty string.

Fix: save the title to /tmp/pr_title.txt alongside the body, and read from there after checkout.

Review & Testing Checklist for Human

  • Verify that actions/checkout@v4 does indeed wipe the workspace (it does by default with clean: true) — this confirms the root cause
  • After merging, trigger /crush or /crush_fast on a PR and confirm the <pr_title> block in the Actions log is now populated

Notes


Open with Devin

…ckout

pr_data.json was written to the working directory but actions/checkout@v4
wipes it clean. The PR body survived because it was saved to /tmp/pr_body.txt,
but the title was read directly from the now-deleted pr_data.json.

Fix: save the title to /tmp/pr_title.txt (like the body) and read from there.
Co-Authored-By: unknown <>
@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link
Copy Markdown
Contributor Author

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes missing PR title context in the pull-review-crush GitHub Actions workflow by persisting the title across the actions/checkout@v4 step (which cleans the workspace).

Changes:

  • Save PR title to /tmp/pr_title.txt during the “Get PR details” step.
  • Read the PR title from /tmp/pr_title.txt when generating the helpful context (instead of reading pr_data.json after checkout).

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

Copy link
Copy Markdown
Member

@taoeffect taoeffect left a comment

Choose a reason for hiding this comment

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

LGTM!

@taoeffect taoeffect merged commit f7bed58 into main Feb 22, 2026
4 checks passed
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