Skip to content

Added .gitattributes for lean distribution archives.#326

Merged
AlexSkrypnyk merged 1 commit intomasterfrom
feature/gitattributes
Apr 16, 2026
Merged

Added .gitattributes for lean distribution archives.#326
AlexSkrypnyk merged 1 commit intomasterfrom
feature/gitattributes

Conversation

@AlexSkrypnyk
Copy link
Copy Markdown
Collaborator

Summary

Added a project-specific .gitattributes with export-ignore rules so that distribution archives only contain source code, composer.json, LICENSE, README.md, and CHANGELOG.md. Suppressed Drupal's scaffold from overwriting .gitattributes and removed the file from .gitignore since it is now a tracked project file.

Changes

.gitattributes - New file with export-ignore rules excluding CI config, tests, docs tooling, Docker, specs, and dev-only files from distribution archives.

composer.json - Added file-mapping to drupal-scaffold config to prevent Drupal from overwriting .gitattributes with its own line-ending rules.

.gitignore - Removed /.gitattributes entry since the file is now tracked.

Verified

Tested with git archive - distribution contains only:

  • composer.json
  • CHANGELOG.md
  • LICENSE
  • README.md
  • src/ (all source files)

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 16, 2026

Warning

Rate limit exceeded

@AlexSkrypnyk has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 39 minutes and 8 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 39 minutes and 8 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 5d29a949-e027-4a11-a737-4f45f9f4eda6

📥 Commits

Reviewing files that changed from the base of the PR and between 3407a68 and ff24a95.

📒 Files selected for processing (3)
  • .gitattributes
  • .gitignore
  • composer.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/gitattributes

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@AlexSkrypnyk AlexSkrypnyk merged commit f3cdf51 into master Apr 16, 2026
6 checks passed
@AlexSkrypnyk AlexSkrypnyk deleted the feature/gitattributes branch April 17, 2026 01:23
@AlexSkrypnyk AlexSkrypnyk added this to the 2.5 milestone Apr 17, 2026
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.

1 participant