-
Notifications
You must be signed in to change notification settings - Fork 48
Add Dependabot config #241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Summary by CodeRabbit
WalkthroughA newline character at the end of the Changes
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this 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
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
.github/dependabot.yml
(1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.github/dependabot.yml
[error] 12-12: no new line character at the end of file
(new-line-at-end-of-file)
allow: | ||
# Starting slow by only checking our own packages for updates. | ||
- dependency-name: '@metaplex-foundation/*' | ||
- dependency-name: '@metaplex-foundation/*' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Re-add the trailing newline for lint & POSIX compliance
YAMLlint is erroring (new-line-at-end-of-file
). A final newline is also a longstanding POSIX convention that a lot of tooling assumes.
- dependency-name: '@metaplex-foundation/*'
+
Verify CI passes after restoring the newline.
🏁 Script executed:
#!/bin/bash
# Check if .github/dependabot.yml ends with a trailing newline
set -e
file_path=".github/dependabot.yml"
# Exit if file not found
if [ ! -f "$file_path" ]; then
echo "ERROR: $file_path not found"
exit 1
fi
# Get the last byte of the file in hex
last_byte=$(tail -c1 "$file_path" | od -An -t x1 | tr -d ' [:space:]')
echo "Last byte (hex): $last_byte"
if [ "$last_byte" = "0a" ]; then
echo "Result: file ends with a newline"
else
echo "Result: file is missing a trailing newline"
fi
Length of output: 421
🏁 Script executed:
#!/usr/bin/env bash
# Verify trailing newline in .github/dependabot.yml using Python
file=".github/dependabot.yml"
if [ ! -f "$file" ]; then
echo "ERROR: $file not found"
exit 1
fi
python3 - "$file" << 'EOF'
import sys
path = sys.argv[1]
try:
with open(path, 'rb') as f:
f.seek(0, 2)
if f.tell() == 0:
print("missing newline")
sys.exit(0)
f.seek(-1, 2)
last = f.read(1)
print("newline" if last == b'\n' else "missing newline")
except Exception as e:
print(f"ERROR: {e}")
sys.exit(1)
EOF
Length of output: 120
Add missing trailing newline to .github/dependabot.yml
The file currently ends without a final newline, causing YAMLlint errors (new-line-at-end-of-file
) and violating POSIX conventions. Please restore the trailing newline:
• File: .github/dependabot.yml
• Verified missing final newline via script
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ Lines 1–end
- - dependency-name: '@metaplex-foundation/*'
+ - dependency-name: '@metaplex-foundation/*'
+ ← add a single newline here
After adding, confirm that CI passes.
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
- dependency-name: '@metaplex-foundation/*' | |
- dependency-name: '@metaplex-foundation/*' | |
🧰 Tools
🪛 YAMLlint (1.37.1)
[error] 12-12: no new line character at the end of file
(new-line-at-end-of-file)
🤖 Prompt for AI Agents
In .github/dependabot.yml at line 12, the file is missing a trailing newline at
the end, which causes YAMLlint errors and violates POSIX conventions. Add a
single newline character at the end of the file after line 12 to fix this issue,
then verify that the CI passes successfully.
Enable automated updates for Metaplex dependencies
This PR adds Dependabot configuration to enable automated weekly updates for @metaplex-foundation/* dependencies.
The configuration will: