-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
github: workflows: compliance: Ensure no merge commits #52639
Conversation
8b44d4b
to
f5a38c1
Compare
c5b88df
to
6df3183
Compare
@gmarull @stephanosio @fabiobaltieri Currently forcing the failure to see what this looks like. Let me know when you're done looking and I'll remove the merge commit. |
I have added the screenshots so I will now rebase, remove the merge commit and leave this PR ready for merging. |
6df3183
to
66d62c8
Compare
da7ad2a
66d62c8
to
da7ad2a
Compare
Add a simple one-liner that checks for "0" in the count of merge commits. If a merge commit is present the output will be "1" or higher, failing the job. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
da7ad2a
to
4db88d8
Compare
@stephanosio I have had to double the brackets, |
Add a simple one-liner that checks for "0" in the count of commits with
two or more parents. If a merge commit is present the output will be "1"
or higher, failing the job.
Signed-off-by: Carles Cufi carles.cufi@nordicsemi.no
This is what it looks like: