Skip to main content
All posts
Developers2 min read

How to Open Build Logs From a Ping

Add an Open build log button to a private Room’s webhook Ping and check that a teammate can reach the exact run.

One PingRoom avatar holds a phone beside another at a laptop while Pingo stands next to a stack of zines.

Add an open_url button under data.actions in your existing PingRoom webhook payload. Point it at the exact GitHub Actions run. On an iPhone with PingRoom 1.6.2, a teammate can open the Ping and tap Open build log, then choose a job on GitHub to see its logs.

Start with a run your teammate can open

Use a private group Room with an incoming webhook and a Room owner on PingRoom Pro. Choose a regular Custom message webhook that sends without asking for confirmation. Use the GitHub Actions notification recipe if you still need to send the result.

In the example, a small zine team has just built its website preview. Copy the HTTPS address from the Actions run page. Ask the person who will test the button to check the same link while signed in to GitHub. GitHub applies its own access rules to workflow run logs.

Add the button to one test Ping

The example uses curl and jq. Set PINGROOM_WEBHOOK_URL from your protected secret store and BUILD_RUN_URL to the run-page address. The full PingRoom webhook URL is a credential. Keep it out of source control and command traces.

(
  set -eu
  : "${PINGROOM_WEBHOOK_URL:?Set the private Room webhook URL}"
  : "${BUILD_RUN_URL:?Set the GitHub Actions run URL}"

  payload=$(jq -n --arg run "$BUILD_RUN_URL" '{
    title: "Preview build ready",
    message: "Zine site preview finished. Open the run for its jobs.",
    data: {
      actions: [{
        id: "build-log",
        label: "Open build log",
        type: "open_url",
        url: $run
      }]
    }
  }')

  curl --silent --show-error --fail-with-body --max-time 10 \
    --header 'Content-Type: application/json' \
    --header 'Idempotency-Key: zine-preview-button-test-01' \
    --data-binary "$payload" \
    "$PINGROOM_WEBHOOK_URL"
)

A successful response has success: true, a notification_id, and an actions entry with the expected label and URL. Reuse the key for an identical retry. For a new test or a different payload, use a fresh key.

Check the handoff on the receiving phone

  1. Open the test Ping in PingRoom and tap Open build log under its card.
  2. Check that GitHub opens the expected repository and run. Sign in if asked, then expand the job whose output you want.
  3. Once that works, add the same data.actions array to the payload your workflow already sends. Use the run URL your workflow computes each time. Keep its existing result text, run identifiers and retry key.

Two PingRoom avatars inspect a paper proof and a phone at a worktable while Pingo watches.

In these AI-generated editorial illustrations, Pingo the Pigeon, PingRoom’s fictional Chief Marketing Officer, watches two teammates compare a zine proof with the preview on a phone. One run link gives them a shared place to look.

Choose a button label that describes where it goes. Open build log leads to a run someone can inspect. For a link that leads to the preview itself, label it Open preview. Check the PingRoom webhook reference for the current button limits and response fields.

PingRoom

Short-form communication.

View all posts