Skip to content

feat(gocd): add read-only pipeline and stage tools - #1570

Merged
dcramer merged 4 commits into
mainfrom
feat/gocd-api-access
Aug 29, 2026
Merged

feat(gocd): add read-only pipeline and stage tools#1570
dcramer merged 4 commits into
mainfrom
feat/gocd-api-access

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Adds @sentry/junior-gocd with read-only tools for pipeline history and stage results.

The app supplies one HTTPS GoCD base URL and either a read-only API token or credential hooks. The package has no settings for a specific GoCD deployment.

The tools use the GoCD 25.2.0 API:

  • pipeline history: GET /go/api/pipelines/:name/history
  • stage run: GET /go/api/stages/:pipeline_name/:stage_name/instance/:pipeline_counter/:stage_counter
  • pipeline history limits page_size to 10 through 100

Sentry-specific Google IAP setup remains in junior-prod #317.

Requested by David Cramer.

--

View Junior Session [Sentry]

@vercel

vercel Bot commented Aug 14, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Aug 29, 2026 12:18am

Request Review

@github-actions

github-actions Bot commented Aug 14, 2026

Copy link
Copy Markdown

Dashboard visual evidence

No matching dashboard scenarios for this diff.

Add @sentry/junior-gocd as a host-agnostic read-only GoCD package.
Tools call through ctx.egress.fetch. Hosts supply base URL and either
static bearer apiHeaders or grantForEgress/issueCredential hooks.
Keep Sentry deploy topology and IAP defaults out of the OSS package.

Co-Authored-By: Joshua Li <joshua.li@sentry.io>
@sentry-junior
sentry-junior Bot force-pushed the feat/gocd-api-access branch from 9e14cdf to c8b9f07 Compare August 14, 2026 19:40
@sentry-junior sentry-junior Bot changed the title feat(gocd): Add read-only API access scaffolding feat(gocd): Add generic GoCD plugin with host egress auth Aug 14, 2026
@joshuarli
joshuarli requested a review from dcramer August 14, 2026 19:46
@joshuarli
joshuarli marked this pull request as ready for review August 14, 2026 19:46
@github-actions github-actions Bot added the risk: high PR risk score: high label Aug 14, 2026
Comment thread packages/junior-gocd/src/config.ts
Comment thread packages/junior-gocd/src/config.ts Outdated
Comment thread packages/junior-gocd/src/tools/stage.ts Outdated
Comment thread packages/junior-gocd/src/tools/stage.ts

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit c8b9f07. Configure here.

Comment thread packages/junior-gocd/src/tools/pipeline-history.ts
Co-Authored-By: David Cramer <david@sentry.io>
Co-Authored-By: David Cramer <david@sentry.io>
Co-Authored-By: David Cramer <david@sentry.io>
@sentry-junior sentry-junior Bot changed the title feat(gocd): Add generic GoCD plugin with host egress auth feat(gocd): add read-only pipeline and stage tools Aug 29, 2026
@dcramer
dcramer merged commit 35af549 into main Aug 29, 2026
44 checks passed
@dcramer
dcramer deleted the feat/gocd-api-access branch August 29, 2026 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant