Skip to content

Commit

Permalink
Merge pull request #10 from spier/readme-improvements
Browse files Browse the repository at this point in the history
[docs] Elaborating on the Usage instructions
  • Loading branch information
zkoppert committed Jan 22, 2021
2 parents 0d4f708 + e08752c commit aea6cae
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
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

0 comments on commit aea6cae

Please sign in to comment.