Closed zeke closed 4 years ago
This should be auto-deployed to production soon.
Thanks, @zeke! 🎉
@zeke We are using the GitHub app/action with this config:
# Always validate the PR title, and ignore the commits
titleOnly: true
# Always validate all commits, and ignore the PR title
commitsOnly: false
# Always validate the PR title AND all the commits
titleAndCommits: false
# Require at least one commit to be valid
# this is only relevant when using commitsOnly: true or titleAndCommits: true,
# which validate all commits by default
anyCommit: false
# Allow use of Merge commits (eg on github: "Merge branch 'master' into feature/ride-unicorns")
# this is only relevant when using commitsOnly: true (or titleAndCommits: true)
allowMergeCommits: true
# Allow use of Revert commits (eg on github: "Revert "feat: ride unicorns"")
# this is only relevant when using commitsOnly: true (or titleAndCommits: true)
allowRevertCommits: true
We also use dependabot
, which creates single-commit PRs, and we use GitHub "Squash and Merge". With these dependabot single-commit PRs, we're seeing them be failed by the semantic-pull-requests
check, even though the commit message and PR title are semantic (see screen shot). Could you explain why this is happening, and suggest a solution for this?
Thanks.
dependabot
is not a valid scope. Should be build
. Did you configure it?
dependabot
is not a valid scope. Should bebuild
. Did you configure it?
dependabot
in this example is a type, not a scope. Yes, we've configured it. Our types
config includes 'dependabot'
:
types:
- feat
- fix
- docs
- style
- refactor
- perf
- test
- build
- ci
- chore
- revert
- dependabot
The issue is not with the scope - the issue is specifically around the commit being checked and failing for a valid title..
@zeke We are using the GitHub app/action with this config:
# Always validate the PR title, and ignore the commits titleOnly: true # Always validate all commits, and ignore the PR title commitsOnly: false # Always validate the PR title AND all the commits titleAndCommits: false # Require at least one commit to be valid # this is only relevant when using commitsOnly: true or titleAndCommits: true, # which validate all commits by default anyCommit: false # Allow use of Merge commits (eg on github: "Merge branch 'master' into feature/ride-unicorns") # this is only relevant when using commitsOnly: true (or titleAndCommits: true) allowMergeCommits: true # Allow use of Revert commits (eg on github: "Revert "feat: ride unicorns"") # this is only relevant when using commitsOnly: true (or titleAndCommits: true) allowRevertCommits: true
We also use
dependabot
, which creates single-commit PRs, and we use GitHub "Squash and Merge". With these dependabot single-commit PRs, we're seeing them be failed by thesemantic-pull-requests
check, even though the commit message and PR title are semantic (see screen shot). Could you explain why this is happening, and suggest a solution for this?Thanks.
@zeke
Do you have anything that can help us with this issue? Currently we're using dependabot and every day have 5-15 dependabot PRs stacked up that are not being auto-merged, because of this issue with semantic-pull-requests
action. We've done everything to configure it correctly, so need some explanation about why it's not working and how to resolve this.
Hi @don-hover,
I don't have time to dig into this specific case right now, but I can offer some suggestions:
I hope that helps.
Was there a specific reason why this PR was only implemented for the vanilla/default config?
There's a subtle GitHub "bug" where squashed pull requests that only have one commit don't end up creating a squash commit.
This PR will make the GitHub app return a failing check in the following scenario:
./github/semantic.yml
file)Resolves https://github.com/zeke/semantic-pull-requests/issues/17
cc @rachmari @jmarlena @lucascosti @martin389