Skip to content

Commit

Permalink
fix-#229: GitHub actions send guidelines (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnaacharyaa authored May 28, 2024
2 parents 2185f1a + 2354c41 commit 875e783
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/.github/workflows/issue-assigned.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Issue Assigned Comment

on:
issues:
types: [assigned]

jobs:
comment-on-issue:
runs-on: ubuntu-latest
steps:
- name: Comment on the assigned issue
uses: actions/github-script@v6
with:
script: |
const issue_number = context.issue.number;
const issue_assignee = context.payload.assignee.login;
const contributing_guidelines_url = 'https://github.com/krishnaacharyaa/wanderlust/blob/main/.github/CONTRIBUTING.md';
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue_number,
body: `Hi @${issue_assignee}, thank you for taking on this issue! Please refer to our [contributing guidelines](${contributing_guidelines_url}) for more information on how to get started.`
});

0 comments on commit 875e783

Please sign in to comment.