Skip to content

Trigger docs-draft-writer pipeline on merge to main#3760

Merged
DrJosh9000 merged 2 commits intomainfrom
owen/trigger-docs-draft
Mar 18, 2026
Merged

Trigger docs-draft-writer pipeline on merge to main#3760
DrJosh9000 merged 2 commits intomainfrom
owen/trigger-docs-draft

Conversation

@omehegan
Copy link
Contributor

@omehegan omehegan commented Mar 16, 2026

When a PR merges to main, extract the PR number from the commit message and trigger the docs-draft-writer pipeline. The downstream pipeline checks for 'needs-docs' and 'needs-changelog' labels and exits early if neither is present.

The trigger is async and soft_fail, so it never blocks or fails the main build.

Description
This is an addition to the agent build pipeline. On merges to main, it triggers the downstream docs-draft-writer pipeline, which will check to see if the merged PR needs docs (based on the presence of a needs-docs label on the PR), and if so, will attempt to write them. The trigger step will soft-fail so as to avoid blocking the main pipeline in any way.

Context
https://linear.app/buildkite/issue/SUP-6223/test-and-iterate-on-real-prs

Verification
We should see the docs-draft-writer pipeline being triggered with the correct input params (repo and PR ID) on each merge to main.

Deployment
Nothing to deploy, just a pipeline change.

Rollback
If it causes any issues with the pipeline, simply revert the change.

Extracts the PR number from the merge commit message and triggers
the docs-draft-writer pipeline with the repo and PR number. The
downstream pipeline checks for needs-docs/needs-changelog labels
and generates documentation or changelog drafts as needed.

The step is async and soft_fail so it never blocks or fails builds.
@omehegan omehegan requested review from a team as code owners March 16, 2026 01:42
@omehegan omehegan requested a review from DrJosh9000 March 18, 2026 00:20
Copy link
Contributor

@DrJosh9000 DrJosh9000 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@DrJosh9000 DrJosh9000 merged commit 45aec24 into main Mar 18, 2026
2 checks passed
@DrJosh9000 DrJosh9000 deleted the owen/trigger-docs-draft branch March 18, 2026 01:27
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