Skip to content

Merge pull request #89 from SeanAverS/main #4

Merge pull request #89 from SeanAverS/main

Merge pull request #89 from SeanAverS/main #4

Workflow file for this run

name: Greet New PRs
on:
pull_request:
types: [opened]
jobs:
greet:
runs-on: ubuntu-latest
steps:
- name: Greet the user
uses: actions/github-script@v6
with:
script: |
const { context } = require('@actions/github');
const github = require('@actions/github');
const pr = context.payload.pull_request;
const commentBody = `Hey there! 👋
Thanks for taking the time to send in this pull request. We're happy to have your contribution! If you have any questions or need any help, feel free to ask.`;

Check failure on line 21 in .github/workflows/greet.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/greet.yml

Invalid workflow file

You have an error in your yaml syntax on line 21
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: pr.number,
body: commentBody
});