Skip to content

Comments

chore(docs): fix Netlify ignore condition to detect docs changes across all PR commits#7637

Merged
graphite-app[bot] merged 1 commit intomainfrom
copilot/update-docs-build-conditions
Dec 23, 2025
Merged

chore(docs): fix Netlify ignore condition to detect docs changes across all PR commits#7637
graphite-app[bot] merged 1 commit intomainfrom
copilot/update-docs-build-conditions

Conversation

Copy link
Contributor

Copilot AI commented Dec 23, 2025

The Netlify build ignore condition used HEAD^ which only compares against the immediate parent commit. This fails to trigger docs builds when earlier commits in a PR touch the docs folder but the latest commit doesn't.

Change:

  • Replace HEAD^ with $CACHED_COMMIT_REF to compare against the last deployed commit
# Before
ignore = "git diff --quiet 'HEAD^' HEAD ./docs ./packages/rolldown"

# After  
ignore = "git diff --quiet $CACHED_COMMIT_REF HEAD ./docs ./packages/rolldown"

CACHED_COMMIT_REF is a Netlify environment variable containing the SHA of the last successful deployment, ensuring all commits in a PR are considered.

Original prompt

Could you fix https://github.com/rolldown/rolldown/blob/main/docs/netlify.toml#L3?

The condition is too limited. We want to trigger docs build as long the PR contains any commit that touches docs folder


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@netlify
Copy link

netlify bot commented Dec 23, 2025

Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit beeb5ec
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/694aaad9ee52370008dd1014

Copilot AI changed the title [WIP] Update Netlify build conditions for docs folder Fix Netlify ignore condition to detect docs changes across all PR commits Dec 23, 2025
Copilot AI requested a review from hyf0 December 23, 2025 13:17
@hyf0 hyf0 changed the title Fix Netlify ignore condition to detect docs changes across all PR commits chore(docs): fix Netlify ignore condition to detect docs changes across all PR commits Dec 23, 2025
@hyf0 hyf0 marked this pull request as ready for review December 23, 2025 14:16
Copilot AI review requested due to automatic review settings December 23, 2025 14:16
Copy link
Member

hyf0 commented Dec 23, 2025

Merge activity

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the Netlify build ignore condition to properly detect documentation changes across all commits in a pull request. The previous implementation using HEAD^ only compared against the immediate parent commit, which could miss docs changes from earlier commits in a PR.

Key Changes:

  • Updated git diff comparison to use $CACHED_COMMIT_REF instead of HEAD^ to compare against the last deployed commit

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…ss all PR commits (#7637)

The Netlify build ignore condition used `HEAD^` which only compares against the immediate parent commit. This fails to trigger docs builds when earlier commits in a PR touch the docs folder but the latest commit doesn't.

**Change:**
- Replace `HEAD^` with `$CACHED_COMMIT_REF` to compare against the last deployed commit

```toml
# Before
ignore = "git diff --quiet 'HEAD^' HEAD ./docs ./packages/rolldown"

# After
ignore = "git diff --quiet $CACHED_COMMIT_REF HEAD ./docs ./packages/rolldown"
```

`CACHED_COMMIT_REF` is a Netlify environment variable containing the SHA of the last successful deployment, ensuring all commits in a PR are considered.

<!-- START COPILOT CODING AGENT SUFFIX -->

<!-- START COPILOT ORIGINAL PROMPT -->

<details>

<summary>Original prompt</summary>

> Could you fix https://github.com/rolldown/rolldown/blob/main/docs/netlify.toml#L3?
>
> The condition is too limited. We want to trigger docs build as long the PR contains any commit that touches docs folder

</details>

<!-- START COPILOT CODING AGENT TIPS -->
---

💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey).
@graphite-app graphite-app bot force-pushed the copilot/update-docs-build-conditions branch from 56421ee to beeb5ec Compare December 23, 2025 14:44
@graphite-app graphite-app bot merged commit beeb5ec into main Dec 23, 2025
31 checks passed
@graphite-app graphite-app bot deleted the copilot/update-docs-build-conditions branch December 23, 2025 14:46
This was referenced Dec 24, 2025
shulaoda added a commit that referenced this pull request Dec 24, 2025
## [1.0.0-beta.57] - 2025-12-24

✨ TypeScript Project References Support
- Rolldown now supports TypeScript project references when manually specifying a `tsconfig`
- See more details: https://rolldown.rs/options/tsconfig

💥 Rename `__export` to `__exportAll`
- Update `rolldown-plugin-dts` to the latest version for compatibility

### 💥 BREAKING CHANGES

- tsconfig: enable project references support in manual mode (#7545) by @shulaoda

### 🚀 Features

- add `CANNOT_CALL_NAMESPACE` warning (#7636) by @sapphi-red
- add import path for unresolved import diagnostics (#7625) by @sapphi-red
- optimize dynamic entry facade chunks by merging with common chunks when they are captured by common chunks (#7486) by @IWANABETHATGUY

### 🐛 Bug Fixes

- rename `__export` to `__exportAll` to be compatible with `cjs-module-lexer` (#7640) by @IWANABETHATGUY
- strip UTF-8 BOM when using text loader (#7635) by @sapphi-red
- rolldown_plugin_replace: avoid crashing with invalid delimiters (#7621) by @sapphi-red

### 🚜 Refactor

- export all filter functions (#7622) by @sxzz
- allow multiple help messages in diagnostics (#7624) by @sapphi-red

### 📚 Documentation

- add README.md to packages/rolldown (#7556) by @Copilot

### ⚡ Performance

- use fsevents on macOS for file watching (#7596) by @sapphi-red

### 🧪 Testing

- handle re-exports of external modules in CJS format (#7641) by @IWANABETHATGUY
- update integration to use vite's rolldown-canary branch (#7633) by @shulaoda

### ⚙️ Miscellaneous Tasks

- docs: fix Netlify ignore condition to detect docs changes across all PR commits (#7637) by @Copilot
- deps: update rollup submodule for tests to v4.54.0 (#7630) by @sapphi-red
- skip benchmarks for PRs with 'graphite: merge-when-ready' label (#7631) by @Boshen
- deps: update esbuild for tests to 0.27.2 (#7629) by @sapphi-red
- fix "update-test-dependencies" workflow (#7628) by @sapphi-red
- deps: update test262 submodule for tests (#7626) by @sapphi-red
- deps: update dependency oxlint to v1.35.0 (#7623) by @renovate[bot]

Co-authored-by: shulaoda <[email protected]>
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.

3 participants