Send the CI run URL and actor with each upload #2

Merged
Gilles merged 3 commits from feat/run-metadata into master 2026-10-25 21:58:16 +00:00
Owner

Refs argus/backend#10

Each upload now also sends:

  • run_url: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_NUMBER, the same URL shape Forgejo uses for a run's page;
  • actor: GITHUB_ACTOR.

Argus shows both in its event messages (email, Mattermost, desktop, PR comment). The fields are optional on the Argus side (argus/backend#12), so this is safe to release before or after that PR.

Tests

New checks in tests/run.sh. The fake server now logs the value of each plain field.

  • run_url and actor are sent with the expected values.
  • No run_url field without a run number.
  • No actor field without GITHUB_ACTOR.
  • A trailing / on GITHUB_SERVER_URL is trimmed.
  • When GITHUB_SERVER_URL is unset, the URL falls back to https://git.stationmyr.net.

CI is green.

🤖 Generated with Claude Code

https://claude.ai/code/session_014BSmBtGWeFBD9z4mYm9SjA

Refs argus/backend#10 Each upload now also sends: - `run_url`: `$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_NUMBER`, the same URL shape Forgejo uses for a run's page; - `actor`: `GITHUB_ACTOR`. Argus shows both in its event messages (email, Mattermost, desktop, PR comment). The fields are optional on the Argus side (argus/backend#12), so this is safe to release before or after that PR. ## Tests New checks in `tests/run.sh`. The fake server now logs the value of each plain field. - `run_url` and `actor` are sent with the expected values. - No `run_url` field without a run number. - No `actor` field without `GITHUB_ACTOR`. - A trailing `/` on `GITHUB_SERVER_URL` is trimmed. - When `GITHUB_SERVER_URL` is unset, the URL falls back to `https://git.stationmyr.net`. CI is green. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014BSmBtGWeFBD9z4mYm9SjA
Send the CI run URL and actor with each upload
Some checks failed
ci / test (pull_request) Failing after 11s
ci / release (pull_request) Has been skipped
8f77e8f09b
Argus's event notifications (argus/backend#10) link the run that
produced a report and say who triggered it. Both fields are optional on
the Argus side, so older instances simply ignore them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014BSmBtGWeFBD9z4mYm9SjA
tests: quote the empty GITHUB_RUN_NUMBER (shellcheck SC1007)
All checks were successful
ci / test (pull_request) Successful in 13s
ci / release (pull_request) Has been skipped
c7f551b371
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014BSmBtGWeFBD9z4mYm9SjA
tests: cover run_url/actor edge cases
All checks were successful
ci / test (pull_request) Successful in 12s
ci / release (pull_request) Has been skipped
95b7d3e32a
No actor field without GITHUB_ACTOR, trailing slash on
GITHUB_SERVER_URL, fallback when GITHUB_SERVER_URL is unset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014BSmBtGWeFBD9z4mYm9SjA
Gilles merged commit 1e5a21beff into master 2026-10-25 21:58:16 +00:00
Gilles deleted branch feat/run-metadata 2026-10-25 21:58:16 +00:00
Sign in to join this conversation.
No description provided.