-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
To check PR's validity a GitHub Bot should be created which runs a console command and send its results back to the PR.
The bot should work based on the following principles:
- Trigger if there's a new PR;
- Run a console command and report its results to the PR;
- Bot's work result can be o two types:
OKorReject

For bot's creation you'll need:
- Registration in developer program Github
- GitHub Token
- Test repository
Implementation should include:
- Public GitHub repository cloning to a temporary folder using GIT. After GitHub Bot's work regardless of its result this temporary folder should be deleted with all its contents.
- Command launch and its answer analysis from the temporary folder.
- Sending request to a PR about PR's successful check in case the command didn't cause any errors. In case it did,
Rejectstatus should be sent. - Configuration file which should contain:
4.1.GitHubToken-requiredattribute
4.2.GitHubName- Bot's name:optional,linter-botby default
4.3.GitHubURL- link to a Bot:optional,repometric.comby default
4.4.TempPath- path to a temporary folder:optional,tempby default
4.5.GitPath- path to GIT work directory:optional,/usr/bin/git/by default - Possibility of Bot's run:
5.1 locally - possibility to run the Bot locally is required
5.2 via docker - launching the Bot via docker with the possibility of parameters configuration transfer
5.3 via the cloud (using docker) - using the Bot in the cloud (using docker) - Logging during the Bot's running
Components that might help you:
Metadata
Metadata
Assignees
Labels
No labels