Skip to content

fix: ignore merge commits for file diffs #859

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

Open
wants to merge 3 commits into
base: main-enterprise
Choose a base branch
from

Conversation

marionebl
Copy link

Move from comparing the branch base against target to pulls.listFiles.

This solves for a bug where updating a given command with changes from
the target branch triggered the settings change detection.

Stacks on top of #858

marionebl and others added 3 commits July 3, 2025 10:27
I've observed the following recurring exception in handling `check_run` events. The stack trace indicates we're trying to read from `action` when it isn't defined. |

This accepts potentially partial check messages instead of crashing the event processing. 

```
    TypeError: Cannot read properties of undefined (reading 'additions')
       ~~~~~ redacted ~~~~~
        at Array.reduce (<anonymous>)
        at _Settings.handleResults ( ~~~~~ redacted ~~~~~)
```
Move from comparing the branch base against target to `pulls.listFiles`.

This solves for a bug where updating a given command with changes from
the target branch triggered the settings change detection.
@marionebl
Copy link
Author

@decyjphr could you have a look at this bug fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant