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

chore(ci-wait-for-all): Use Ana06/get-changed-files to compare PRs with main #3158

Merged
merged 4 commits into from Oct 20, 2022

Conversation

erezrokah
Copy link
Contributor

@erezrokah erezrokah commented Oct 20, 2022

Summary

It seems this action fails to use the correct sha of the PR if the PR branch is not up to date. This should fix it

Use an action that uses the GitHub API as we need a three dots diff

@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Oct 20, 2022
@erezrokah
Copy link
Contributor Author

@erezrokah erezrokah marked this pull request as draft October 20, 2022 15:52
@erezrokah
Copy link
Contributor Author

Issue tj-actions/changed-files#702

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v32
uses: jitterbit/get-changed-files@v1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This action uses the GitHub API to do the diff, which should use a three dots diff.
We've used it before and removed it since it caused us to hit rate limits.
Since we're now on enterprise account our limit increased from 1000 to 15000 request per hour so I think we can try this again until tj-actions/changed-files#702 is resolved.

Another benefit is that we can do a shallow clone which is faster

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@erezrokah erezrokah marked this pull request as ready for review October 20, 2022 16:09
@erezrokah erezrokah marked this pull request as draft October 20, 2022 16:09
@erezrokah erezrokah marked this pull request as ready for review October 20, 2022 16:13
@erezrokah erezrokah changed the title chore(ci-wait-for-all): Set head and base sha for changed-files action chore(ci-wait-for-all): Use Ana06/get-changed-files to compare PRs with main Oct 20, 2022
@erezrokah
Copy link
Contributor Author

@hermanschaaf sorry for the back and forth this is ready now

@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Automatically merge once required checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants