We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7e882d3 + 9c5f286 commit 24934bdCopy full SHA for 24934bd
.github/workflows/auto-comment-for-clarity.yml
@@ -16,8 +16,6 @@ name: Auto Comment for Clarity
16
on:
17
issues:
18
types: [opened]
19
- discussions:
20
- types: [created]
21
jobs:
22
auto-comment:
23
runs-on: ubuntu-latest
@@ -134,7 +132,8 @@ jobs:
134
132
body: commentBody
135
133
});
136
} else if (targetType === 'discussion') {
137
- await github.rest.repos.createDiscussionComment({
+ // Use the correct GitHub REST API for discussion comments
+ await github.request('POST /repos/{owner}/{repo}/discussions/{discussion_number}/comments', {
138
owner,
139
repo,
140
discussion_number: number,
.github/workflows/issue-translation.yml
0 commit comments