Skip to content

[BUG] Not Found error from GitHub API after history fetch #2546

@Ishii-Taiki

Description

@Ishii-Taiki

Is there an existing issue for this?

  • I have searched the existing issues

Does this issue exist in the latest version?

  • I'm using the latest release

Describe the bug?

Hi, thank you for maintaining this action.

We’ve encountered the following error when using tj-actions/change-files in our GitHub Actions workflow:

Using local .git directory  
Running on a pull_request (synchronize) event...  
Repository is shallow, fetching more history...  
Completed fetching more history.  
Error: Not Found - https://docs.github.com/rest/git/refs#get-a-reference

We’re not sure how to reproduce it consistently, but once the error starts occurring on a branch, it keeps failing repeatedly. Interestingly, running the same action on a different branch (even with the same code) causes it to succeed again.

Do you have any idea what might be causing this or any suggestions for debugging?

Thanks in advance!

To Reproduce

Not sure how to reproduce it

What OS are you seeing the problem on?

ubuntu-latest or ubuntu-22.04

Expected behavior?

No error occurs

Relevant log output

Using local .git directory  
Running on a pull_request (synchronize) event...  
Repository is shallow, fetching more history...  
Completed fetching more history.  
Error: Not Found - https://docs.github.com/rest/git/refs#get-a-reference

Has all relevant logs been included?

  • I've included all relevant logs

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions