Skip to content

Commits on synchronize event #202

@kapcod

Description

@kapcod

Hello, as far as I can understand this code

base: commits[commits.length - 2].sha,

in case of synchronize PR event this action only looks at the last commit. However not always a push adds only 1 commit.
Why not use github.event.before instead? It can cause issues in cases of merges from master/main into the current branch and in cases of rebasing the current branch. Therefore, before can be used only when the branch state is base -> before -> head, and in all other cases, it can fall back to the current solution with the last commit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions