Skip to content

Commit aea6cae

Browse files
authored
Merge pull request #10 from spier/readme-improvements
[docs] Elaborating on the Usage instructions
2 parents 0d4f708 + e08752c commit aea6cae

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
# InnerSource Crawler
22
![.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)
33

4-
This project creates a repos.json that can be utilized by the [SAP InnerSource Portal](https://github.com/sap/project-portal-for-InnerSource).
4+
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_.
55

66
## Installation
7+
78
`pip -r requirements.txt`
89

910
## Usage
10-
1. Fill out the .env file with a token from a machine user that only has access to the org to scan
11-
1. Fill out the .env file with the exact topic name you are searching for
12-
1. Run `python3 ./crawler.py`
11+
12+
1. Copy `.env-example` to `.env`
13+
1. Fill out the `.env` file with a token from a machine user that only has access to the org to scan
14+
1. Fill out the `.env` file with the exact _topic_ name you are searching for
15+
1. Run `python3 ./crawler.py`, which will create a `repos.json` file containing the relevant metadata for the GitHub repos for the given _topic_
16+
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
17+
18+
[SAP-InnerSource-Portal]: https://github.com/sap/project-portal-for-InnerSource

0 commit comments

Comments
 (0)