Skip to content

Conversation

@9aoy
Copy link
Contributor

@9aoy 9aoy commented Oct 27, 2025

Summary

fix name conflicts when the project is a special configuration.
img_v3_02rf_b40311ea-06eb-46d0-93aa-d88651a5caag

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings October 27, 2025 11:22
@netlify
Copy link

netlify bot commented Oct 27, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit dc19b44
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/68ff55e6be3ead0008dbaf8c
😎 Deploy Preview https://deploy-preview-651--rstest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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 fixes a naming conflict issue that occurs when a project uses a specific configuration file path instead of a directory path. The fix ensures that the project name is derived from the directory containing the config file rather than the config file path itself.

Key Changes:

  • Updated logic to correctly determine project names when config file paths are used
  • Improved documentation clarity for the projects configuration option

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/core/src/cli/init.ts Fixed project name resolution to use the directory path instead of config file path
website/docs/en/config/test/projects.mdx Clarified comment about projects configuration
website/docs/zh/config/test/projects.mdx Clarified comment about projects configuration (Chinese version)

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

@9aoy 9aoy merged commit 1fd33d0 into main Oct 27, 2025
17 checks passed
@9aoy 9aoy deleted the project-name branch October 27, 2025 11:57
@9aoy 9aoy mentioned this pull request Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants