Skip to content
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

Run Nixpkgs diff on nixfmt commits merged into the base branch #241

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion scripts/sync-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ bodyForCommitIndex() {
echo -e "base: $subject\n\nFormat using the base commit from nixfmt PR $nixfmtPrNumber: $url"
else
url=$nixfmtUrl/pull/$nixfmtPrNumber/commits/$commit
echo -e "$index: $subject\n\nFormat using commit number $index from nixfmt PR $nixfmtPrNumber: $url"
echo -e "$index: $subject\n\nFormat using commit number $index from nixfmt PR $nixfmtPrNumber: $url (merged into the base branch)"
fi
}

Expand Down Expand Up @@ -249,6 +249,8 @@ update() {

step "Checking out nixfmt at $nixfmtCommit"
git -C nixfmt checkout -q "$nixfmtCommit"
step "Merging with the base commit $nixfmtBaseCommit"
git -C nixfmt merge --no-stat --no-edit "$nixfmtBaseCommit"
}

# Format Nixpkgs with a specific nixfmt version and push the result.
Expand Down