Skip to content

feat: add gitattributes for metadata files and update scaffold.json references.#4

Merged
terabytesoftw merged 3 commits into
mainfrom
feature_3
May 5, 2026
Merged

feat: add gitattributes for metadata files and update scaffold.json references.#4
terabytesoftw merged 3 commits into
mainfrom
feature_3

Conversation

@terabytesoftw
Copy link
Copy Markdown
Contributor

Pull Request

  • Breaking change (fix or feature that would cause existing functionality to change)
  • Bugfix (non-breaking change that fixes an issue)
  • CI/build configuration
  • Documentation update
  • New feature (non-breaking change that adds functionality)
  • Refactoring (no functional changes)

@terabytesoftw terabytesoftw added the enhancement New feature or request label May 5, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 5, 2026

Warning

Rate limit exceeded

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

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ 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: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 745b29c3-1954-4b9e-9d8f-efea8da971a4

📥 Commits

Reviewing files that changed from the base of the PR and between 1c2dd7d and 005d477.

📒 Files selected for processing (4)
  • .gitattributes
  • CHANGELOG.md
  • metadata/gitattributes
  • scaffold.json
📝 Walkthrough

Walkthrough

Configuration-only changes to .gitattributes that refine export-ignore patterns for metadata files, replacing a broad negation with explicit per-path entries to work around gitattributes pattern resolution behavior. CHANGELOG updated to document the enhancement.

Changes

Metadata Export-Ignore Rules

Layer / File(s) Summary
Export-Ignore Configuration
.gitattributes
Replaced single metadata/** negation with explicit per-path negations for metadata/.editorconfig, metadata/.gitattributes, metadata/.github/**, metadata/.gitignore, metadata/.styleci.yml, and metadata/composer-require-checker.json to work around gitattributes pattern resolution behavior with leading-slash/dotfile basenames.
Documentation
CHANGELOG.md
Added changelog entry documenting the enhancement to export-ignore rules for metadata files in the dist archive.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

🐰 With whiskers twitching, rules refined,
Metadata files, no more confined,
Export archive, clean and bright,
Gitattributes dancing left and right!
📦✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The PR title mentions 'gitattributes' and 'scaffold.json references' but the actual changes only address .gitattributes export-ignore rules for metadata files; no scaffold.json changes are present in the changeset. Update the title to accurately reflect the actual changes: 'feat: enhance export-ignore rules for metadata files in dist archive' (as stated in PR objectives), removing the misleading reference to scaffold.json updates.
✅ Passed checks (4 passed)
Check name Status Explanation
Description check ✅ Passed The pull request description relates to the changeset as it marks the change as a new feature, which aligns with the enhancement of export-ignore rules; however, it lacks detailed explanation of what was changed and why.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature_3

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.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.gitattributes:
- Around line 42-43: Update the explanatory comment that currently says
"basename matches through leading-slash patterns for dotfiles, so `metadata/**`
alone does not override them" to remove the inaccurate "dotfiles" qualifier and
instead say something like "basename matches through leading-slash patterns for
files (including dotfiles), so `metadata/**` alone does not override them" so
the note accurately covers non-dotfile entries like
`composer-require-checker.json`; edit the comment text near the existing lines
mentioning basename/leading-slash patterns to this clearer phrasing.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: e8c59c06-4e26-4ea7-8564-7fa91fc94732

📥 Commits

Reviewing files that changed from the base of the PR and between 6937d84 and 1c2dd7d.

📒 Files selected for processing (2)
  • .gitattributes
  • CHANGELOG.md
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: linter / Super Linter
  • GitHub Check: Analyze (actions)
  • GitHub Check: linter / Super Linter
🔇 Additional comments (2)
CHANGELOG.md (1)

12-12: LGTM! Changelog entry is accurate and well-formatted.

The entry correctly documents the enhancement to export-ignore rules and follows the established conventional commits format.

.gitattributes (1)

42-43: ⚡ Quick win

Verify the technical claim about gitattributes pattern resolution.

The comment states that git's pattern resolution "leaks basename matches through leading-slash patterns for dotfiles." According to git's gitattributes documentation, a leading slash anchors patterns to the directory containing the .gitattributes file, so /.editorconfig should only match the root .editorconfig, not metadata/.editorconfig.

Please verify whether these explicit negations are actually necessary or if there's a specific edge case in git's behavior that requires this workaround.

Do gitattributes patterns with leading slash like /.editorconfig match files in subdirectories?
#!/bin/bash
# Description: Check which files actually exist under metadata/ to verify completeness of negations
# Expected: Find all files under metadata/ and compare with negation list

echo "=== Files under metadata/ directory ==="
fd . metadata/ --type f --hidden --no-ignore

echo -e "\n=== Checking for potential missing negations ==="
echo "Files explicitly negated:"
echo "  - .editorconfig"
echo "  - .gitattributes"  
echo "  - .github/**"
echo "  - .gitignore"
echo "  - .styleci.yml"
echo "  - composer-require-checker.json"

echo -e "\nRoot-level export-ignore patterns that might need negation:"
rg -n "^/[^/].*export-ignore" .gitattributes | grep -v "metadata"

Comment thread .gitattributes Outdated
@terabytesoftw terabytesoftw changed the title feat: enhance export-ignore rules for metadata files in dist archive. feat: add gitattributes for metadata files and update scaffold.json references. May 5, 2026
@terabytesoftw
Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@terabytesoftw terabytesoftw merged commit d63ed17 into main May 5, 2026
17 checks passed
@terabytesoftw terabytesoftw deleted the feature_3 branch May 5, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant