Skip to content

Commit a78e763

Browse files
authored
Merge branch 'main' into feat/newsletter-hello-world
2 parents 29ec896 + b5b6abc commit a78e763

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/sync-newsletter.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
sync:
1111
permissions:
1212
contents: read
13+
pull-requests: write # Allow commenting on PRs
1314
runs-on: ubuntu-latest
1415
timeout-minutes: 10
1516

@@ -26,8 +27,6 @@ jobs:
2627

2728
- name: Setup pnpm
2829
uses: pnpm/action-setup@v4
29-
with:
30-
version: 10
3130

3231
- name: Install dependencies
3332
run: pnpm install --frozen-lockfile
@@ -43,9 +42,12 @@ jobs:
4342
uses: actions/github-script@v7
4443
with:
4544
script: |
46-
github.rest.issues.createComment({
47-
issue_number: context.issue.number,
45+
github.rest.pulls.createReviewComment({
4846
owner: context.repo.owner,
4947
repo: context.repo.repo,
50-
body: '❌ Newsletter sync to Resend failed. Check the [workflow logs](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details.'
48+
pull_number: context.issue.number,
49+
body: '❌ Newsletter sync to Resend failed. Check the [workflow logs](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details.',
50+
commit_id: context.payload.pull_request.head.sha,
51+
path: 'src/data/newsletters',
52+
line: 1
5153
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "0.1.0",
55
"author": "Mike Bifulco <hello@mikebifulco.com>",
66
"license": "MIT",
7-
"packageManager": "pnpm@10.19.0",
7+
"packageManager": "pnpm@10.21.0",
88
"scripts": {
99
"analyze": "ANALYZE=true next build",
1010
"build": "next build",

0 commit comments

Comments
 (0)