Skip to content

Commits filtering confusion with multiple commits #1923

@IlyaFinkelshteyn

Description

@IlyaFinkelshteyn

When change contains multiple commits, filtering rules can behave not as people expect. Problem is that we are taking commit details (such as message, author, or changed files) from the head commit, not from each one included.

Scenarios:

  1. Multiple commits made locally and pushed once to GitHub
  2. Multiple commits made in the branch development and merged (without a PR) to the branch master
  3. Multiple commits made in the branch development and PR is sent to the branch master

In cases 1 and 2, we can read all commits details from incoming webhook content.

In case 3 we need to call GitHub API for each included commit which can be very expensive.

Also, we need to get better understanding of possible side effects if we start collecting details from all commits.

For now, workaround recommendation is to squash commits before push or merge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions