ci: add retest github action

added source code of github retest
action.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna
2021-11-15 12:19:04 +05:30
committed by mergify[bot]
parent f7e7172c7b
commit 5a53f53166
287 changed files with 74334 additions and 0 deletions

15
actions/retest/README.md Normal file
View File

@ -0,0 +1,15 @@
# retest-action
This is a github action built using the golang and the [github
api](github.com/google/go-github). The main idea behind this one is to retest
the failed tests on the approved PR's to avoid burden on the
maintainer's/author's to retest all the failed tests.
* List the pull requests from the github organization.
* Check PR is open and have required approvals.
* Check PR as the required label to continue to retest.
* Pulls the failed test details.
* Check failed test has reached the maximum limit.
* If the limit has not reached the action will post the `retest` command on the
PR with log location for further debugging.
* If the limit has reached the Pull Request will be skipped.