This project is an example of how the chain-status tool can be integrate in a generic project.
For example purpose only, this project aims to provide the Pull Requests statuses for Kogito-related projects.
In this section we provide the steps that we performed in order to integrate the chain-status
tool in this custom repository.
-
Create a custom branch named
gh-pages
storing the webpage content that will be served on the personal Github page.- [Optional] If you want to create an empty branch for this purpose, execute the following commands:
$ git clone ... $ git switch --orphan gh-pages $ git commit --allow-empty -m "Initial commit on orphan branch" $ git push -u origin gh-pages
-
Create a Markdown file containing information on the project for which you would like to provide the PRs statuses. I created it here, under
.ci
folder since it will be used by the Github workflow that we will create later. -
Create the definition file containing the whole project structure for which we want to provide information, in this case we won't create it but we will refer to the one already present here.
- [Optional] If you need to create your own definition file, you can find more details on how to create it in build-chain-configuration-reader project.
-
Create the workflows that aim to automate the Github page generation using the already provided
chain-status
actions (more details).- Generate webpage: the first workflow is in charge to create the webpage content and save it in our
gh-pages
branch. - Generate content: the second workflow generates the content/report that will be showed by the react webapge.
- Generate webpage: the first workflow is in charge to create the webpage content and save it in our