Skip to content

How to get all files changed compared to another branch? #1327

Answered by jackton1
bearhuglily asked this question in Q&A
Discussion options

You must be logged in to vote

The push event, in this case, means the workflow runs every time a new commit is pushed and in such a case the concept of comparing the current commit is limited to either the previous commit or the last remote commit.

For pull_request on the other hand, it's triggered by other activities to the PR branch including pushing a new commit to the same branch. But in this case, the diff compares the current commit to the last commit on the target branch which in your case is master.

So no keeping push wouldn't cause any problems it solves a different problem i.e. what changed since I last pushed to a branch.

My recommendation would be to remove the push event since that's not the desired outco…

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@jackton1
Comment options

Answer selected by jackton1
@bearhuglily
Comment options

@jackton1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants