sclorg / testing-farm-as-github-action

GitHub Action to execute tests by Testing Farm and update Pull Request status
MIT License
13 stars 11 forks source link

update the pull request status #208

Closed yih-redhat closed 1 month ago

yih-redhat commented 1 month ago

Type of issue

None

Description

When tfaga is triggered by current pull request by issue comment or sth., it can update the test status in that pull request. But when tfaga is triggered by repository_dispatch, which could come from a pull request in another github repo, it still need to update the test status.

Here is more details:

  1. the pull request that needs to run test is https://github.com/osbuild/osbuild-composer/pull/4240
  2. due to some reason, we cannot define tfaga test in this pr, actually it was defined in another repo, https://github.com/osbuild/rhel-edge-ci/blob/main/.github/workflows/rhel-95.yml
  3. when pull request starts to run CI, it will build rpm and then triggered the tfaga workflow by sending a POST request to https://api.github.com/repos/osbuild/rhel-edge-ci/dispatches
  4. the tfaga test can run, but cannot update the test result in pull request of step 1.

I suggest we can add a parameter gith_sha in https://github.com/sclorg/testing-farm-as-github-action?tab=readme-ov-file#miscellaneous, and use github_token to create status in target pull request.

I don't know how tfaga update the pull request status, but before we use tfaga, we use this plugin to create the test status in target pull request. Here is the example:

Reproducer

No response