File: open-prs-digest.yml
Runs the /open-prs --slack skill every weekday via claude-code-action and posts the prioritized PR review queue to Slack.
The workflow authenticates to Vertex AI using a service account key. You need:
- A GCP project with Vertex AI enabled (the team uses
itpc-gcp-hcm-pe-eng-claude) - A service account with
roles/aiplatform.userpermission - A JSON key for the service account
Create the key and store its contents as the GCP_SA_KEY secret:
gcloud iam service-accounts keys create key.json \
--iam-account=openshift-ci-github-action@itpc-gcp-hcm-pe-eng-claude.iam.gserviceaccount.com
# Copy the JSON contents into the GCP_SA_KEY secret, then delete the file
rm key.jsonThe /open-prs skill queries PRs across all repos in openshift-hyperfleet. The default GITHUB_TOKEN is scoped to this repo only, so a fine-grained PAT with org-wide read access is required.
- Go to GitHub → New fine-grained token
- Token name:
hyperfleet-open-prs-digest - Resource owner: select
openshift-hyperfleet - Repository access: All repositories
- Permissions → Repository permissions:
- Contents: Read-only
- Pull requests: Read-only
- Metadata: Read-only (selected automatically)
- Click Generate token → copy the token
- Save it as the
GH_TOKEN_ORG_READsecret in the repo
Create two webhooks:
- Team channel — for the daily digest
- Personal/ops channel — for error notifications
Create webhooks in the HyperFleet Slack App.
Configure these in the repo's Settings → Secrets and variables → Actions:
| Secret | Description | Example |
|---|---|---|
GCP_SA_KEY |
GCP service account key JSON | (see GCP Service Account section above) |
ANTHROPIC_VERTEX_PROJECT_ID |
GCP project with Vertex AI | itpc-gcp-hcm-pe-eng-claude |
GH_TOKEN_ORG_READ |
GitHub PAT with repo read access across openshift-hyperfleet |
(generate fine-grained token — owner: openshift-hyperfleet, permissions: Contents + Pull requests + Metadata read-only) |
JIRA_API_TOKEN |
JIRA Personal Access Token | (generate at Atlassian API tokens) |
JIRA_AUTH_LOGIN |
JIRA account email | user@redhat.com |
SLACK_WEBHOOK_URL |
Webhook for the team channel | https://hooks.slack.com/services/T.../B.../... |
SLACK_WEBHOOK_URL_ERRORS |
Webhook for error notifications | https://hooks.slack.com/services/T.../B.../... |
Go to Actions → Open PRs Digest → Run workflow, or:
gh workflow run open-prs-digest.yml