Skip to content

Commit

Permalink
Merge pull request #164 from ananyag309/master
Browse files Browse the repository at this point in the history
added greeting.yaml
  • Loading branch information
vansh-codes authored Oct 22, 2024
2 parents 97fc180 + a5b658a commit 9567281
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/greeting.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "Auto Greeting for Issues and PRs"

on:
issues:
types: [opened]
pull_request_target:
types: [opened]

permissions:
issues: write
pull-requests: write

jobs:
greeting:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Greet first-time contributors
id: greet
uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: |
๐Ÿ‘‹ Hey @${{ github.actor }}! Thanks for stepping into the chaos and opening an issue in the ChaosWeb project. We embrace disorder, and your contribution adds to the delightful mess! ๐ŸŽ‰
Welcome to the wild side of web design. Expect the unexpected! ๐ŸŒ๐ŸŒ€
pr-message: |
๐Ÿ‘‹ Welcome, @${{ github.actor }}! Thank you for your first pull request to ChaosWeb! Weโ€™re excited to see how youโ€™ve contributed to the madness. ๐ŸŽ‰ Our team will review your chaotic creation soon. Keep the disorder coming! ๐Ÿš€
- name: Assign issue or pull request to a team member
if: github.event_name == 'issues' || github.event_name == 'pull_request_target'
run: |
ISSUE_NUMBER=${{ github.event.issue.number || github.event.pull_request.number }}
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-d '{"assignees":["team-member-username"]}' \
"https://api.github.com/repos/${{ github.repository }}/issues/${ISSUE_NUMBER}"
- name: Welcome message for community contributors
if: github.event_name == 'issues' || github.event_name == 'pull_request_target'
uses: EddieHubCommunity/gh-action-community/src/welcome@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "๐Ÿ‘‹ Hey @${{ github.actor }}! Thanks for opening an issue in the ChaosWeb project. Weโ€™re excited to see how youโ€™ve contributed to the delightful mess. Our team will review it soon. Stay chaotic! ๐ŸŽฏ"
pr-message: "๐ŸŽ‰ Thanks @${{ github.actor }}! Your pull request has added more chaos to ChaosWeb. Weโ€™ll review it shortly. Keep breaking the rules! ๐Ÿš€"

0 comments on commit 9567281

Please sign in to comment.