Fix code coverage comment (#58)
Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
[ROCm/rocprofiler-sdk commit: bd33176966]
Bu işleme şunda yer alıyor:
işlemeyi yapan:
GitHub
ebeveyn
fd9da7dc43
işleme
22b4e6739d
+3
-4
@@ -469,6 +469,7 @@ jobs:
|
|||||||
## Tests + Samples
|
## Tests + Samples
|
||||||
$(get-full-md-contents all)
|
$(get-full-md-contents all)
|
||||||
|
|
||||||
|
<!-- code-coverage-comment-identifier -->
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo 'CODECOVERAGE_REPORT<<EOF' > $GITHUB_OUTPUT
|
echo 'CODECOVERAGE_REPORT<<EOF' > $GITHUB_OUTPUT
|
||||||
@@ -484,10 +485,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.TOKEN }}
|
github-token: ${{ secrets.TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
const commentIdentifier = '<!-- unique-comment-identifier -->'; // Use this to identify your comment
|
const commentIdentifier = '<!-- code-coverage-comment-identifier -->'; // Used to identify codecov comment
|
||||||
const commentBody = `
|
const commentBody = process.env.COMMENT_BODY;
|
||||||
${commentIdentifier}
|
|
||||||
` + process.env.COMMENT_BODY;
|
|
||||||
|
|
||||||
// Fetch existing comments
|
// Fetch existing comments
|
||||||
const { data: comments } = await github.rest.issues.listComments({
|
const { data: comments } = await github.rest.issues.listComments({
|
||||||
|
|||||||
Yeni konuda referans
Bir kullanıcı engelle