-
-
Notifications
You must be signed in to change notification settings - Fork 176
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] Get all modified/deleted/added files from a Pull Request #410
Comments
Thanks for reporting this issue, don't forget to star this project to help us reach a wider audience. |
@Xat59 Seems the confusion is how "since_last_remote_commit" works.
Compares the HEAD or last commit with main.
To get all changes in the PR you'll need to remove |
Thanks for your feedback but Plus, I have exactly the same result when removing ---
name: Get all changed files from this PR
on:
push:
branches: 'bau/*'
pull_request:
branches: 'bau/*'
jobs:
changed-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: changed-files
id: changed-files
uses: tj-actions/changed-files@v17.2 This returns only 1 file while I have 3 modified files in my PR... :
Note So yeah of course between these 2 commits there are only 1 file, but that is not at all what I need. I need to retrieve all files from the PR. |
So @jackton1 , is it not possible to get all files changed in the PR? (or, diff from last commit and the target branch) |
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
Hello team,
I am trying to list all files that have been modified / removed / added from the current pull request comparing to the target branch of the PR.
Here is what I tried :
Instead of returning the full list of files that have been changed in the full PR, it returns only files changed (edited/removed/added) from the second to last commit.
I can also see that the
INPUT_BASE_SHA
used is the second to last SHA from the PR. That's probably the reason.To Reproduce
main
default branchbau/test
frommain
bau/test
branchbau/test
branch, edit a new file , commit it and push it inbau/test
tj-actions/changed-files
only returns the latest changed file at step 5, but not files from step 4.What OS are you seeing the problem on?
ubuntu-latest or ubuntu-20.04
Expected behavior?
Regarding my workflow it should return all files removed/added/edited from the target branch, not only comparing the new commit with the second to last
Relevant log output
No response
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: