Commit 8229b76d3f6 for woocommerce
commit 8229b76d3f6892643cb64cf255f4d2b08f309e03
Author: Darren Ethier <darren@roughsmootheng.in>
Date: Fri Nov 20 19:46:58 2026 +0100
Remove failing Linear issue creation from docs check (#71278)
Remove the failing Linear issue step from the docs check workflow
The 'Create Linear Issue' step fails with 'Could not find referenced Team'
and swallows the error, so the job stays green while no issue is filed.
Drop it and its 'Setup Linear' install step. The Claude check and the
'needs: documentation' label are unchanged.
diff --git a/.github/workflows/docs-needed-detection.yml b/.github/workflows/docs-needed-detection.yml
index d5843d47608..150c23326e1 100644
--- a/.github/workflows/docs-needed-detection.yml
+++ b/.github/workflows/docs-needed-detection.yml
@@ -166,57 +166,3 @@ jobs:
labels: [ 'needs: documentation' ],
} );
}
-
- - name: 'Setup Linear'
- if: ${{ steps.analyze.outputs.structured_output && fromJSON(steps.analyze.outputs.structured_output).needs_docs }}
- # Install outside the workspace: the checkout put the monorepo root package.json there,
- # whose workspace:* deps make a bare `npm install` abort (npm has no workspace: support).
- run: npm install --prefix "${{ runner.temp }}/linear" @linear/sdk@71.0.0
-
- - name: 'Create Linear Issue'
- if: ${{ steps.analyze.outputs.structured_output && fromJSON(steps.analyze.outputs.structured_output).needs_docs }}
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
- env:
- # Resolve @linear/sdk from the isolated dir it was installed into in 'Setup Linear'.
- NODE_PATH: ${{ runner.temp }}/linear/node_modules
- STRUCTURED_OUTPUT: ${{ steps.analyze.outputs.structured_output }}
- LINEAR_API_KEY: ${{ secrets.LINEAR_OAUTH_TOKEN }}
- LINEAR_TEAM_ID: ${{ secrets.LINEAR_DOCS_TEAM_ID }}
- LINEAR_LABEL_ID: ${{ secrets.LINEAR_DOCS_AUTO_LABEL }}
- with:
- script: |
- const verdict = JSON.parse( process.env.STRUCTURED_OUTPUT );
- const prTitle = context.payload.pull_request.title;
- const prUrl = context.payload.pull_request.html_url;
- const repoFullName = context.payload.repository.full_name;
-
- const { LinearClient } = require( '@linear/sdk' );
- const linearClient = new LinearClient( {
- apiKey: process.env.LINEAR_API_KEY,
- } );
-
- const title = `Docs update needed: ${ prTitle }`;
- const description = [
- 'A pull request was flagged as containing user-facing changes that may require documentation updates.',
- '',
- `**Pull request:** ${ prUrl }`,
- `**Repository:** ${ repoFullName }`,
- `**Confidence:** ${ verdict.confidence }`,
- `**AI reasoning:** ${ verdict.reason }`,
- ].join( '\n' );
-
- try {
- const result = await linearClient.createIssue( {
- teamId: process.env.LINEAR_TEAM_ID,
- title,
- description,
- labelIds: [ process.env.LINEAR_LABEL_ID ],
- } );
-
- const issue = await result.issue;
- if ( issue ) {
- console.log( `Created Linear issue: ${ issue.identifier } (${ issue.url })` );
- }
- } catch ( error ) {
- console.error( `Failed to create Linear issue: ${ error.message }` );
- }