-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create project-idea-submission-auto-reply.yml
- Loading branch information
1 parent
8c4e8e7
commit 629b952
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Project Idea Submission Auto-Reply | ||
|
||
on: | ||
issues: | ||
types: [opened] # Trigger when a new issue is opened | ||
|
||
jobs: | ||
auto-reply: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send auto-reply for project idea submission | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.GitHubActionsToken }} | ||
script: | | ||
const issue_number = context.payload.issue.number; | ||
const repo_owner = context.repo.owner; | ||
const repo_name = context.repo.repo; | ||
const user = context.payload.issue.user.login; | ||
// Auto-reply message for project idea submission | ||
const auto_reply_message = ` | ||
✅ Thank you for your project idea submission, @${user}! | ||
Your idea will be reviewed, and if it aligns with our goals, we will proceed with the project. | ||
`; | ||
// Post the auto-reply message | ||
await github.rest.issues.createComment({ | ||
owner: repo_owner, | ||
repo: repo_name, | ||
issue_number: issue_number, | ||
body: auto_reply_message | ||
}); |