-
Notifications
You must be signed in to change notification settings - Fork 769
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
ci: automated nightly rustfmt scheduled/manual PRs #2135
ci: automated nightly rustfmt scheduled/manual PRs #2135
Conversation
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.
Thanks man!
utACK 33ea3d61b776a7c66b37c9876ea79f0a0ad9b6ab
Nice! Too bad we just missed this week's opportunity to test it :). |
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.
ACK d391ada
You can trigger manually as well. |
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.
ACK d391ada
5a3f1a6 Remove nightly rustfmt check from pre-commit githook See #2135 (Vojtěch Toman) Pull request description: See #2135 and discussion [#2219#issuecomment-1826437013](#2219 (comment)) ACKs for top commit: Kixunil: ACK 5a3f1a6 apoelstra: ACK 5a3f1a6 Tree-SHA512: 3fabadcbc4f80fb133318138aad8e1baccbeffad57d09fe86ed12f1156e8c9505911f8fc3a785896832fad02e20a366e9d95d37602bdd5fc02d9c715a867cb72
Summary
rustfmt
checks from CI andCONTRIBUTING.md
. Superseds Remove rustfmt formatting requirement from project #2127rustfmt
PR creations manual and every Sunday 00:00 UTC. Closes rustfmt without nightly toolchain #2128. Closes Relax rustfmt rules? #1712.Details
The new
.github/workflows/rustfmt.yml
action does the following:rustfmt
componentcargo +nightly fmt
which format all the codebase with the nightly Rust toolchain writing the changesYYYY-MM-DD
format as an GH action ENV varDATE
)rustfmt
changes by create-pull-request GitHub actionDATE
automated rustfmt nightlyrustfmt
I did a test run (with
workflow_dispatch
and some minor changes to trigger the PR) in my fork.Check how the PR looks in https://github.com/realeinherjar/rust-bitcoin/pull/5
Of course, all of these things can be changed.
They are all suggestions...
Security Disclaimer
We are only introducing a new action, which is quite battle-checked,
peter-evans/create-pull-request
with ~2k stars and proper maintained.