Skip to content

Commit

Permalink
Create test_a.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andyziye authored Aug 4, 2023
1 parent 7e7f840 commit 78a7e94
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test_a.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Add Comment

on:
pull_request:
types:
- opened

jobs:
add_comment:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Add a Comment
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { owner, repo } = context.repo;
const issueNumber = context.issue.number;
const comment = `Hello! Thank you for opening this pull request. We'll review it soon.`;
const { data: commentData } = await github.issues.createComment({
owner,
repo,
issue_number: issueNumber,
body: comment,
});

0 comments on commit 78a7e94

Please sign in to comment.