Title: Skip CI/RTD builds when changes are irrelevant to each pipeline by kyleconroy · Pull Request #4381 · sqlc-dev/sqlc · GitHub
Open Graph Title: Skip CI/RTD builds when changes are irrelevant to each pipeline by kyleconroy · Pull Request #4381 · sqlc-dev/sqlc
X Title: Skip CI/RTD builds when changes are irrelevant to each pipeline by kyleconroy · Pull Request #4381 · sqlc-dev/sqlc
Description: Summary Add paths-ignore: ['docs/**', '.readthedocs.yaml'] to the go, buf, kotlin, python, and typescript workflows — doc-only PRs no longer spin up the Go test matrix. Add a Read the Docs post_checkout job that exits 183 (RTD's documented "cancel build successfully" code) when a PR build doesn't touch docs/ or .readthedocs.yaml. Mirrors the GitHub-side filter so Go-only PRs don't burn an RTD build. How the RTD gate works RTD doesn't expose path filters in config, but their build system honors exit code 183 from any jobs.* hook as "cancel this build, mark it successful." The post_checkout step diffs HEAD against origin/main for docs/ + .readthedocs.yaml; if nothing changed there on a PR build (READTHEDOCS_VERSION_TYPE=external), the build exits early. Caveat — required status checks If any of the go / test, buf / build, etc. checks are configured as required in branch protection, a doc-only PR will block waiting for them to report. Two follow-up options: Make those checks non-required, or Add a companion workflow with the same job name that runs under the inverse paths: filter and no-ops, so the check always reports. Test plan Open a doc-only PR; confirm Go/buf/language workflows are skipped and RTD still builds Open a Go-only PR; confirm RTD build is cancelled with exit 183 and Go workflows run normally Mixed PR (touches both) runs everything 🤖 Generated with Claude Code
Open Graph Description: Summary Add paths-ignore: ['docs/**', '.readthedocs.yaml'] to the go, buf, kotlin, python, and typescript workflows — doc-only PRs no longer spin up the Go test matrix. Add a Read ...
X Description: Summary Add paths-ignore: ['docs/**', '.readthedocs.yaml'] to the go, buf, kotlin, python, and typescript workflows — doc-only PRs no longer spin up the Go test mat...
Opengraph URL: https://github.com/sqlc-dev/sqlc/pull/4381
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c11e10c0-a02e-3282-988d-188b756b4bcd |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AD8E:2371E7:313AA7E:43FB111:6A50814A |
| html-safe-nonce | c38aa0cdc94b3b5d2fa3576fab6b022b64553196425634420643b0778f801404 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDhFOjIzNzFFNzozMTNBQTdFOjQzRkIxMTE6NkE1MDgxNEEiLCJ2aXNpdG9yX2lkIjoiMzI3MDI2MTA2Mzg2MjQ4NTMyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8836925ffc76baf61418e809c536c738fa08c0e579f4c7099c2e795cf659c7b7 |
| hovercard-subject-tag | pull_request:3543203191 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/sqlc-dev/sqlc/pull/4381/files |
| twitter:image | https://avatars.githubusercontent.com/u/34893?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/34893?s=400&v=4 |
| og:image:alt | Summary Add paths-ignore: ['docs/**', '.readthedocs.yaml'] to the go, buf, kotlin, python, and typescript workflows — doc-only PRs no longer spin up the Go test matrix. Add a Read ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/sqlc-dev/sqlc git https://github.com/sqlc-dev/sqlc.git |
| octolytics-dimension-user_id | 136738596 |
| octolytics-dimension-user_login | sqlc-dev |
| octolytics-dimension-repository_id | 193160679 |
| octolytics-dimension-repository_nwo | sqlc-dev/sqlc |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 193160679 |
| octolytics-dimension-repository_network_root_nwo | sqlc-dev/sqlc |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width