Philipp
scheduled this pull request to auto merge when all checks succeed 2026-01-03 21:56:38 +01:00
AutoReview
changed title from chore: enforce linux line endings to Enforce LF line endings with editorconfig and gitattributes2026-01-03 21:56:43 +01:00
The git hooks path is hardcoded to /workspaces/screeps-deploy-action/.git/hooks, which may break if the workspace folder name or mount point changes. Consider using a dynamic path (e.g., $(pwd)/.git/hooks or an environment variable) to improve portability.
## PR Reviewer Guide 🔍
Here are some key observations to aid the review process:
<table>
<tr><td>⏱️ <strong>Estimated effort to review</strong>: 2 🔵🔵⚪⚪⚪</td></tr>
<tr><td>🧪 <strong>No relevant tests</strong></td></tr>
<tr><td>🔒 <strong>No security concerns identified</strong></td></tr>
<tr><td>⚡ <strong>Recommended focus areas for review</strong><br><br>
<details><summary><a href='https://git.horstenkamp.eu/Screeps/screeps-deploy-action/src/branch/chore/enforce-linux-line-endings/.devcontainer/setup.sh#L8-L8'><strong>Hardcoded path</strong></a>
The git hooks path is hardcoded to `/workspaces/screeps-deploy-action/.git/hooks`, which may break if the workspace folder name or mount point changes. Consider using a dynamic path (e.g., `$(pwd)/.git/hooks` or an environment variable) to improve portability.
</summary>
```shell
sudo chown -R node:node /workspaces/screeps-deploy-action/.git/hooks
```
</details>
</td></tr>
</table>
Philipp
scheduled this pull request to auto merge when all checks succeed 2026-01-03 21:57:05 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
User description
Add .gitattributes and .editorconfig to enforce LF line endings. Update devcontainer settings.
PR Type
Enhancement
Description
Add .gitattributes to enforce LF line endings
Introduce .editorconfig with LF and formatting rules
Update devcontainer.json to set files.eol to "\n"
Fix git hooks path in .devcontainer/setup.sh
File Walkthrough
setup.sh
Update git hooks chown path.devcontainer/setup.sh
devcontainer.json
Enforce LF in devcontainer settings.devcontainer/devcontainer.json
.editorconfig
Add .editorconfig for LF endings.editorconfig
.gitattributes
Add .gitattributes for LF enforcement.gitattributes
9ae6ada818to4316906497chore: enforce linux line endingsto Enforce LF line endings with editorconfig and gitattributesPR Reviewer Guide 🔍
Here are some key observations to aid the review process:
Hardcoded path
The git hooks path is hardcoded to
/workspaces/screeps-deploy-action/.git/hooks, which may break if the workspace folder name or mount point changes. Consider using a dynamic path (e.g.,$(pwd)/.git/hooksor an environment variable) to improve portability.PR Code Suggestions ✨