Skip to content

Commit d59dbea

Browse files
committed
Comment
1 parent 8d7e574 commit d59dbea

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

.github/workflows/duplicate-issue.yml

+23-23
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
name: Copy Issue Description to Comment with Header
1+
# name: Copy Issue Description to Comment with Header
22

3-
on:
4-
issues:
5-
types: [opened]
3+
# on:
4+
# issues:
5+
# types: [opened]
66

7-
jobs:
8-
copy_description_to_comment:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- name: Copy issue description to comment with header
12-
uses: actions/github-script@v6
13-
with:
14-
github-token: ${{secrets.GITHUB_TOKEN}}
15-
script: |
16-
const issue = context.issue;
17-
const issueBody = context.payload.issue.body;
7+
# jobs:
8+
# copy_description_to_comment:
9+
# runs-on: ubuntu-latest
10+
# steps:
11+
# - name: Copy issue description to comment with header
12+
# uses: actions/github-script@v6
13+
# with:
14+
# github-token: ${{secrets.GITHUB_TOKEN}}
15+
# script: |
16+
# const issue = context.issue;
17+
# const issueBody = context.payload.issue.body;
1818

19-
// Create a comment with a header and the issue description
20-
const commentBody = `### Original Request\n-------\n\n${issueBody}`;
19+
# // Create a comment with a header and the issue description
20+
# const commentBody = `### Original Request\n-------\n\n${issueBody}`;
2121

22-
await github.rest.issues.createComment({
23-
owner: issue.owner,
24-
repo: issue.repo,
25-
issue_number: issue.number,
26-
body: commentBody
27-
});
22+
# await github.rest.issues.createComment({
23+
# owner: issue.owner,
24+
# repo: issue.repo,
25+
# issue_number: issue.number,
26+
# body: commentBody
27+
# });

0 commit comments

Comments
 (0)