You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2024/01/24 15:27:34 UTC
(camel-k) branch main updated: fix(ci): Comment PR github action uses octokit
This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new 1db0f5794 fix(ci): Comment PR github action uses octokit
1db0f5794 is described below
commit 1db0f579416bec989ca6622720f931d2958e64e1
Author: Gaelle Fournier <ga...@gmail.com>
AuthorDate: Wed Jan 24 11:51:32 2024 +0100
fix(ci): Comment PR github action uses octokit
---
.github/workflows/comment-pr.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/comment-pr.yaml b/.github/workflows/comment-pr.yaml
index 0a256805f..f33e0838a 100644
--- a/.github/workflows/comment-pr.yaml
+++ b/.github/workflows/comment-pr.yaml
@@ -51,14 +51,14 @@ jobs:
diff = Math.round((coverage - main_cov_num + Number.EPSILON) * 100) / 100
if(diff > 0){
- await github.issues.createComment({
+ await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue_number,
body: ':heavy_check_mark: Unit test coverage report - coverage increased from ' + main_cov_num + '% to ' + coverage + '% (**+' + diff + '%**)'
})
}else if(diff < 0){
- await github.issues.createComment({
+ await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue_number,