Skip to content

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

Open
marcleblanc2 wants to merge 4 commits into
mainfrom
marc/vercel-slack-pr-link
Open

marcleblanc2 wants to merge 4 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

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.

1 Skipped Deployment
Project Deployment Actions Updated
sourcegraph-docs Ignored Ignored Preview Oct 12, 2026 5:31pm UTC

Request Review

This branch has not been deployed

No deployments
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.

1 participant