Skip to content

Commit

Permalink
Create auto-comment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
waelkdouh authored Sep 4, 2023
1 parent cc6c3f0 commit cf55015
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/auto-comment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Auto Comment on New Issues

on:
issues:
types:
- opened

jobs:
comment:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Comment on New Issue
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const owner = 'waelkdouh';
const repo = context.repo.repo;
const issueNumber = context.payload.issue.number;
const commentBody = `
🎉 Thank you for opening this issue! Please be patient while We will look into it get back to you as this is an open source project. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes. 🎉
`;
github.issues.createComment({
owner,
repo,
issue_number: issueNumber,
body: commentBody,
});

0 comments on commit cf55015

Please sign in to comment.