Skip to content

fix: capture PR URL before composing Slack notification message#318

Open
dannyneira wants to merge 1 commit into
mainfrom
fix/slack-pr-url-capture
Open

fix: capture PR URL before composing Slack notification message#318
dannyneira wants to merge 1 commit into
mainfrom
fix/slack-pr-url-capture

Conversation

@dannyneira

Copy link
Copy Markdown
Member

Summary

The Slack notification snippet in SKILL.md had the pr_url capture line commented out, so when the Oz agent ran the code, pr_url was undefined — causing the Slack message to be sent without the PR link (or failing with a NameError).

Changes

  • .agents/skills/release_updates/SKILL.md: Uncomment and activate the subprocess call to gh pr view --json url --jq .url so pr_url is always populated before the Slack message is composed. Added subprocess to imports.
  • .github/workflows/release-docs-update.yml: Remove stale comment referencing DOCS_AGENT_GRAFANA_TOKEN (removed in fix: replace on-call reviewer assignment with Slack notification + last-reviewer #307); replace with accurate note about DOCS_SLACK_BOT_TOKEN.

Testing

Triggered by the previous failed run where the Slack message posted without a PR URL. This fix ensures the Slack message always includes the PR link.

Co-Authored-By: Oz oz-agent@warp.dev

The previous SKILL.md snippet had the pr_url capture line commented out,
so the agent would hit a NameError when composing the Slack message body.

- Uncomment and activate the subprocess call to gh pr view --json url
- Add subprocess to imports
- Remove stale Grafana token reference from workflow comment

Co-Authored-By: Oz <oz-agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label Jul 10, 2026
@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Jul 10, 2026 12:30am

Request Review

@oz-for-oss

oz-for-oss Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

@dannyneira

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss oz-for-oss 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.

Overview

This PR updates the release_updates skill Slack notification snippet to capture the just-created PR URL before composing the Slack message, and refreshes the release docs workflow comment to reference the Slack bot token requirement.

Concerns

  • No blocking correctness, security, or spec-alignment concerns found in the annotated diff.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant