Skip to content

Attach the Vercel build log and PR link to every Vercel Slack post - #2089

Merged
marcleblanc2 merged 5 commits into
mainfrom
marc/vercel-slack-pr-link
Oct 16, 2026
Merged

marcleblanc2 merged 5 commits into
mainfrom
marc/vercel-slack-pr-link

Conversation

@marcleblanc2

@marcleblanc2 marcleblanc2 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor
  • Vercel's Slack app's deployment posts hide the PR behind a Vercel login, requiring too many steps to get from Slack to PR

  • The Vercel build log workflow had replied to Vercel's Slack app's posts with a link to the PR, and the build log, for only failed builds

  • This PR changes the Vercel build log workflow to reply to Vercel's Slack app's posts with the same link to the PR, and the build log, for all PR builds, success or failure

  • This PR also renames files to align with the Slack bot's name

The Vercel Slack app's deployment posts only link to Vercel, where the
PR is behind a Vercel login. The workflow already attached the build log
to the "failed to deploy" post with a link to the PR; now it does the
same for successful builds, and for production deployments, linking the
merged PR that introduced the commit. The PR link rides on the file
upload's comment, so the bot needs no new scope.

The script is now one run instead of three commands handing each other
state through GITHUB_OUTPUT and a log file: PR lookup, Vercel, Slack,
PR comment, in order. A Slack error is a warning annotation, so the PR
still hears about a failed build, as continue-on-error did before.

Amp-Thread-ID: https://ampcode.com/threads/T-01a130c9-ad60-74db-aa70-8ebc50f43069
Co-authored-by: Amp <amp@ampcode.com>
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

@marcleblanc2
marcleblanc2 marked this pull request as ready for review October 12, 2026 16:58
@marcleblanc2
marcleblanc2 enabled auto-merge (squash) October 12, 2026 16:58
@vercel

vercel Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
sourcegraph-docs Ready Ready Preview Oct 16, 2026 11:01pm UTC

Request Review

@marcleblanc2
marcleblanc2 merged commit dffcf8b into main Oct 16, 2026
7 checks passed
@marcleblanc2
marcleblanc2 deleted the marc/vercel-slack-pr-link branch October 16, 2026 23:01

This branch was successfully deployed

1 active deployment
Preview — 87e8133f Deployed Oct 16, 2026 by vercel[bot]
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