Skip to content
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

[Feature] Get changes from all commits from a single push #447

Closed
2 tasks done
grzegorzkrukowski opened this issue Mar 24, 2022 · 1 comment
Closed
2 tasks done
Labels
enhancement New feature or request

Comments

@grzegorzkrukowski
Copy link

grzegorzkrukowski commented Mar 24, 2022

Is this feature missing in the latest version?

  • I'm using the latest release

Is your feature request related to a problem? Please describe.

In one of my repositories we have a situation that users are pushing multiple commits in a single push.
I am running one action on each push and I would like to get the changes from all commits that were added by this action.

Describe the solution you'd like?

At the moment it's just getting changes from the latest commit and commit before it.
I would like to have an option to use "last commit existing before push" as a BASE_SHA.

Describe alternatives you've considered?

No response

Anything else?

Here is the example of the use-case I am talking about:
https://github.com/raycast/extensions/commits/main

The exact two commits are visible here:
CleanShot 2022-03-24 at 11 32 43@2x

In my case the changes from the first one without Action were missing and never caught by my actions due to that problem.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@grzegorzkrukowski grzegorzkrukowski added the enhancement New feature or request label Mar 24, 2022
@grzegorzkrukowski grzegorzkrukowski changed the title [Feature] Get all changes in a single push [Feature] Get changes from all commits from a single push Mar 24, 2022
@jackton1
Copy link
Member

jackton1 commented Mar 24, 2022

@grzegorzkrukowski You can achieve this using:

      - name: Run changed-files using the last commit on the remote branch
        id: changed-files-since-last-remote-commit
        uses: tj-actions/changed-files@v18.4
        with:
          since_last_remote_commit: "true"

Check out the README for more examples. Let me know if you run into any issues.

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

No branches or pull requests

2 participants