-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
[BUG] cocogitto-bot not honoring the ignore_merge_commits
configuration
#15
Comments
@oknozor in the spirit of full disclosure @luciidlou and I coworkers and the private repo he's referencing is one of ours. @luciidlou I 100% spoke incorrectly when I was explaining and said that the default behavior of the bot was to ignore merge commits - that was the default behavior prior to the recently PR that replaced @oknozor should I put up another PR to change the bot's config creation to something like: // Parse the config file into Cocogitto `Settings` (falling
// back to the default if the target repo doesn't have a `cog.toml`)
let cog_config = Settings::try_from(cog_file).unwrap_or_else(|_| Settings {
ignore_merge_commits: true,
..Settings::default()
}); ?? |
I was able to verify proper parsing behavior of committed There's no chance it's something like "existing repos need to re-auth the bot to get the updated version" or something, is there? |
@oknozor Bump |
@luciidlou The fix PR for this looks to be merged. Would you be so kind as to verify that it now works as expected? |
@oknozor Hey there! The PR @the-wondersmith linked above looks like it was merged, but we are still seeing the same issue today (see screenshot). Do we need to remove and re-add cocogitto-bot to any existing repos in order for the changes to take place? Or is there some central deployment that needs updating? Or does the PR that was merged simply just not solve the problem? |
Hey, I am not home right now and I don't have access to the cluster where the bot is deployed. I will check the deployment next week. |
@oknozor bump |
@oknozor bumping again |
Hey, this should be working, can you close/reopen your pull request. If this is still an issue can you provide a simple reproducer on a public repository ? |
Describe the bug
The cocogitto bot is not ignoring commit messages that follow the
Merge branch 'main' into <some-branch-name>
pattern. This is typically the commit message pattern that gets automatically produced when using GitHub'sUpdate Branch
button in the UI.To Reproduce
Steps to reproduce the behavior:
main
.main
with a change.Update Branch
on your PR in the GItHub UI (this syncs your working branch withmain
).Expected behavior
The bot is expected to ignore the commit message described above.
Additional context
The repo does have a
cog.toml
with theignore_merge_commits = true
configured. I've also attached some screenshots to add further context. The repo is private, so it cannot be linked.The text was updated successfully, but these errors were encountered: