GitHub user dosubot[bot] added a comment to the discussion: Fetching all github data for a github org
<!-- Greeting --> Hello @khalibartan! I'm [Dosu](https://dosu.dev), here to help you with any bugs, questions, or to assist you in becoming a contributor. While you're waiting for a human maintainer, feel free to ask me anything! <!-- Answer --> To fetch data for all GitHub repositories within an organization and ensure that new repositories are automatically included, you can follow these steps: 1. **Define a GitHub Connection**: Set up a connection to your GitHub organization using DevLake's connection management endpoints. Ensure that you have the necessary permissions (`repo`, `read:user`, `read:org`) for accessing all repositories, including private ones <sup>[[1]](https://github.com/apache/incubator-devlake-website/blob/main/docs/Configuration/GitHub.md)</sup>. 2. **Configure a Blueprint**: Create a blueprint in DevLake that includes the data connection to your GitHub organization. Set the data scope to cover all repositories within the organization. This will allow DevLake to fetch data from all existing repositories <sup>[[2]](https://github.com/apache/incubator-devlake-website/blob/main/docs/Overview/KeyConcepts.md)</sup>. 3. **Dynamic Inclusion of New Repositories**: While DevLake does not explicitly mention a built-in feature for automatically detecting and including new repositories, you can periodically update the data scope in your blueprint to include any new repositories. This might involve scripting or automating the update process using DevLake's API. 4. **Sync Policy**: Set up a sync policy within your blueprint to define how frequently DevLake should check for updates and fetch data. This ensures that your data is kept up-to-date with any changes in the repositories <sup>[[2]](https://github.com/apache/incubator-devlake-website/blob/main/docs/Overview/KeyConcepts.md)</sup>. By following these steps, you can manage your GitHub connections and blueprints in a way that is scalable and adaptable to future changes in your organization's repositories. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/c12ef945-d000-43f8-8bc7-e321f99fd5e3?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/c12ef945-d000-43f8-8bc7-e321f99fd5e3?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/c12ef945-d000-43f8-8bc7-e321f99fd5e3?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/c12ef945-d000-43f8-8bc7-e321f99fd5e3?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c12ef945-d000-43f8-8bc7-e321f99fd5e3?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/c12ef945-d000-43f8-8bc7-e321f99fd5e3?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/c12ef945-d000-43f8-8bc7-e321f99fd5e3?feedback_type=other)</sup> GitHub link: https://github.com/apache/incubator-devlake/discussions/8392#discussioncomment-12884559 ---- This is an automatically sent email for dev@devlake.apache.org. To unsubscribe, please send an email to: dev-unsubscr...@devlake.apache.org