Skip to content

ci: use DOCS_AGENT_GRAFANA_TOKEN for on-call reviewer assignment#205

Merged
dannyneira merged 3 commits into
mainfrom
danny/release-docs-oncall-schedule-id
Jun 11, 2026
Merged

ci: use DOCS_AGENT_GRAFANA_TOKEN for on-call reviewer assignment#205
dannyneira merged 3 commits into
mainfrom
danny/release-docs-oncall-schedule-id

Conversation

@dannyneira

@dannyneira dannyneira commented Jun 11, 2026

Copy link
Copy Markdown
Member

Summary

Updates the release docs workflow and scripts to use DOCS_AGENT_GRAFANA_TOKEN (configured on the Docs Agent in prod Oz) instead of GRAFANA_API_KEY for resolving on-call reviewers. Also fixes the --pr-auto-merge / --pr-draft mutual exclusion bug on manual dispatch, updates the environment report key name for accurate release debugging, and removes stale GRAFANA_API_KEY references from all operational guidance.

Changes

  • release-docs-update.yml: rule 7 now references DOCS_AGENT_GRAFANA_TOKEN; --pr-auto-merge is only included when create_draft_pr is false (fixes incompatibility with --pr-draft on manual dispatch); agent profile comment updated
  • resolve_oncall_reviewers.py: reads DOCS_AGENT_GRAFANA_TOKEN instead of GRAFANA_API_KEY
  • setup_environment.py: checks DOCS_AGENT_GRAFANA_TOKEN; renames check key from grafana_api_key_presentdocs_agent_grafana_token_present so environment reports are accurate during debugging
  • SKILL.md: requirements and notes updated to reference DOCS_AGENT_GRAFANA_TOKEN

Setup already completed ✅

  • Grafana service account: with IRM: Schedules Reader role. Token attached to Docs Agent on prod Oz as DOCS_AGENT_GRAFANA_TOKEN.
  • WARP_AGENT_PROFILE: set to as a GitHub Actions repository variable in warpdotdev/docs
  • DOCS_REPOSITORY_DISPATCH_TOKEN: added to warpdotdev/channel-versions secrets (unblocks channel-versions PR #971)
  • WARP_API_KEY: already present in warpdotdev/docs secrets

Remaining to merge

  1. This PR (ci: use DOCS_AGENT_GRAFANA_TOKEN for on-call reviewer assignment #205)
  2. channel-versions PR: warpdotdev/channel-versions#971

Once both are merged, the next Thursday stable release will automatically trigger a changelog PR with client on-call reviewers assigned and squash auto-merge enabled.

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

@cla-bot cla-bot Bot added the cla-signed label Jun 11, 2026
@vercel

vercel Bot commented Jun 11, 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 Jun 11, 2026 7:15pm

Request Review

@dannyneira dannyneira requested a review from rachaelrenk June 11, 2026 18:56
@dannyneira dannyneira enabled auto-merge (squash) June 11, 2026 18:57
oz-for-oss[bot]

This comment was marked as outdated.

Hardcode the client on-call Grafana schedule ID (S1BRQ4BYUP5WN)
in the oz agent prompt so reviewer assignment works without any
additional variables. Uses --oncall-max-reviewers 2 to resolve
both primary and secondary from the same schedule.

Co-Authored-By: Oz <oz-agent@warp.dev>
@dannyneira dannyneira force-pushed the danny/release-docs-oncall-schedule-id branch from 2f4f73d to f18c411 Compare June 11, 2026 19:01
@warpdotdev warpdotdev deleted a comment from oz-for-oss Bot Jun 11, 2026
oz-for-oss[bot]

This comment was marked as outdated.

Co-authored-by: oz-for-oss[bot] <277970191+oz-for-oss[bot]@users.noreply.github.com>

@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 docs automation to use DOCS_AGENT_GRAFANA_TOKEN instead of GRAFANA_API_KEY for Grafana on-call reviewer resolution, including the resolver script, environment preflight report key, skill guidance, and workflow prompt guidance.

Concerns

  • No blocking correctness, security, or spec-drift concerns were found in the attached 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

@warpdotdev warpdotdev deleted a comment from oz-for-oss Bot Jun 11, 2026
@dannyneira dannyneira requested a review from hongyi-chen June 11, 2026 19:52
@dannyneira dannyneira enabled auto-merge (squash) June 11, 2026 19:53
@dannyneira dannyneira merged commit 3505f3d into main Jun 11, 2026
8 checks passed
@dannyneira dannyneira deleted the danny/release-docs-oncall-schedule-id branch June 11, 2026 19:54
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.

2 participants