-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from spier/readme-improvements
[docs] Elaborating on the Usage instructions
- Loading branch information
Showing
1 changed file
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
# InnerSource Crawler | ||
![.github/workflows/linter.yml](https://github.com/zkoppert/innersource-crawler/actions/workflows/linter.yml/badge.svg) ![Integration Test](https://github.com/zkoppert/innersource-crawler/actions/workflows/integration_tests.yml/badge.svg) ![CodeQL](https://github.com/zkoppert/innersource-crawler/actions/workflows/codeql-analysis.yml/badge.svg) | ||
|
||
This project creates a repos.json that can be utilized by the [SAP InnerSource Portal](https://github.com/sap/project-portal-for-InnerSource). | ||
This project creates a `repos.json` that can be utilized by the [SAP InnerSource Portal][SAP-InnerSource-Portal]. The current approach assumes that the repos that you want to show in the portal are available in a GitHub organization, and that they all are tagged with a certain _topic_. | ||
|
||
## Installation | ||
|
||
`pip -r requirements.txt` | ||
|
||
## Usage | ||
1. Fill out the .env file with a token from a machine user that only has access to the org to scan | ||
1. Fill out the .env file with the exact topic name you are searching for | ||
1. Run `python3 ./crawler.py` | ||
|
||
1. Copy `.env-example` to `.env` | ||
1. Fill out the `.env` file with a token from a machine user that only has access to the org to scan | ||
1. Fill out the `.env` file with the exact _topic_ name you are searching for | ||
1. Run `python3 ./crawler.py`, which will create a `repos.json` file containing the relevant metadata for the GitHub repos for the given _topic_ | ||
1. Copy `repos.json` to your instance of the [SAP-InnerSource-Portal][SAP-InnerSource-Portal] and launch the portal as outlined in their installation instructions | ||
|
||
[SAP-InnerSource-Portal]: https://github.com/sap/project-portal-for-InnerSource |