Skip to content

Commit 6f80c03

Browse files
committed
Merge branch 'main' into feature/eslint-9
2 parents 2bfd0b1 + 9b12637 commit 6f80c03

File tree

3 files changed

+28
-5
lines changed

3 files changed

+28
-5
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI Post Comment
2+
on:
3+
workflow_run:
4+
workflows: ["CI"]
5+
types:
6+
- completed
7+
jobs:
8+
post-comment:
9+
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request' }}
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Download code-coverage-results
13+
uses: actions/download-artifact@v4
14+
with:
15+
name: code-coverage-results
16+
run-id: ${{ github.event.workflow_run.id }}
17+
github-token: ${{ secrets.GITHUB_TOKEN }}
18+
19+
- name: Add Coverage PR Comment
20+
uses: marocchino/sticky-pull-request-comment@v2
21+
with:
22+
recreate: true
23+
path: code-coverage-results.md
24+
number: ${{ github.event.workflow_run.pull_requests[0].number }}

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,8 @@ jobs:
101101
format: markdown
102102
output: both
103103

104-
- name: Add Coverage PR Comment
105-
uses: marocchino/sticky-pull-request-comment@v2
106-
if: github.event_name == 'pull_request'
104+
- name: Upload Coverage Summary Report
105+
uses: actions/upload-artifact@v4
107106
with:
108-
recreate: true
109107
path: code-coverage-results.md
110-
GITHUB_TOKEN: ${{ secrets.GH_PAT_TOKEN_PR_WRITE }}
108+
name: code-coverage-results

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changed
1111

12+
- Split up `CI` workflow into two separate workflows for the comment posting to work for PRs from forks.
1213
- migrated to eslint 9 flat config
1314

1415
## [1.2.1] - 2025-03-18

0 commit comments

Comments
 (0)