dosubot[bot] commented on issue #8505:
URL: 
https://github.com/apache/incubator-devlake/issues/8505#issuecomment-3083090873

   <!-- Answer -->
   Based on the code, forked repositories should appear in the UI if the 
backend receives them from the GitHub API—there’s no explicit filtering of 
forks unless skip_forks is set, and there’s no environment-specific logic for 
GHES/GHEC. Since your API token works in custom scripts but forks don’t show up 
in DevLake, the issue is likely in how the API response is handled or parsed in 
the backend, or possibly in how the UI displays the results.
   
   To pinpoint the problem, try capturing the raw API response for forked repos 
using both your custom script and DevLake’s backend (enable debug logging or 
intercept the API call). Compare the responses to see if forks are missing or 
structured differently in DevLake’s output. If you find a discrepancy, focus on 
the repo listing and conversion logic in the backend, especially in 
`collectRepos.go` and `repo_convertor.go` 
([example](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/plugins/github/tasks/repo_convertor.go)).
 If the responses match but forks still don’t appear, check the frontend’s 
filtering logic in the repo selection UI.
   
   If you’re willing to dig deeper or submit a PR, these are the best places to 
start. Let me know if you need pointers on enabling debug logging or tracing 
the API calls.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/c57ed0c4-b716-4896-a8d7-9750324aafd7?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/c57ed0c4-b716-4896-a8d7-9750324aafd7?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/c57ed0c4-b716-4896-a8d7-9750324aafd7?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/c57ed0c4-b716-4896-a8d7-9750324aafd7?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/c57ed0c4-b716-4896-a8d7-9750324aafd7?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/c57ed0c4-b716-4896-a8d7-9750324aafd7?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/c57ed0c4-b716-4896-a8d7-9750324aafd7?feedback_type=other)</sup>&nbsp;&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[!
 [Share on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8505)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@devlake.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to