Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion codeflash/code_utils/env_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def get_cached_gh_event_data() -> dict[str, Any]:

def is_repo_a_fork() -> bool:
event = get_cached_gh_event_data()
return bool(event.get("repository", {}).get("fork", False))
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this must be to check the Repository on which the PR is created to (destination) and not from the source.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah looks like this, although this was actually giving true before for forked repository, maybe it was a bug on their end

return bool(event.get("pull_request", {}).get("head", {}).get("repo", {}).get("fork", False))


@lru_cache(maxsize=1)
Expand Down
Loading