Skip to content

Commit

Permalink
Merge branch 'main' into issue-320-update
Browse files Browse the repository at this point in the history
  • Loading branch information
VAIBHAVBABELE authored Jan 18, 2025
2 parents 67417cb + f25316e commit f7c40b5
Show file tree
Hide file tree
Showing 18 changed files with 1,123 additions and 1,101 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/auto-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Automate Issue and PR Responses

on:
issues:
types:
- opened
- closed
pull_request:
types:
- opened
- closed

jobs:
respond-to-events:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Respond to new issues
- name: Respond to new issues
if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }}
run: |
echo "Hey @${{ github.actor }}, Welcome to 💖coffeeShop! 🎊" > comment.txt
echo "Thanks for opening an issue! 🙌 Please wait for the issue to be assigned." >> comment.txt
echo "Happy Coding!! ✨" >> comment.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: peter-evans/create-or-update-comment@v3
with:
issue-number: ${{ github.event.issue.number }}
body-path: comment.txt

# Respond to closed issues
- name: Respond to closed issues
if: ${{ github.event_name == 'issues' && github.event.action == 'closed' }}
run: |
echo "Hello @${{ github.event.issue.user.login }}! Your issue #${{ github.event.issue.number }} has been closed." > comment.txt
echo "Thank you for your contribution to 💖coffeeShop!!! 🙌" >> comment.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: peter-evans/create-or-update-comment@v3
with:
issue-number: ${{ github.event.issue.number }}
body-path: comment.txt

# Respond to new PRs
- name: Respond to new PRs
if: ${{ github.event_name == 'pull_request' && github.event.action == 'opened' }}
run: |
echo "Hey @${{ github.actor }}, Welcome to 💖coffeeShop 🎊" > comment.txt
echo "Thanks for your contribution! Your effort makes this project better. Keep it up! 🙌" >> comment.txt
echo "Please wait for the PR to be reviewed." >> comment.txt
echo "Happy Coding!! ✨" >> comment.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: peter-evans/create-or-update-comment@v3
with:
issue-number: ${{ github.event.pull_request.number }}
body-path: comment.txt

# Respond to merged PRs
- name: Respond to merged PRs
if: ${{ github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged }}
run: |
echo "@${{ github.event.pull_request.user.login }} Congrats, Your pull request has been successfully merged 🥳🎉" > comment.txt
echo "Thank you for your contribution to 💖coffeeShop!!" >> comment.txt
echo "Happy coding 🎊, Keep Contributing 🙌 !!!" >> comment.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: peter-evans/create-or-update-comment@v3
with:
issue-number: ${{ github.event.pull_request.number }}
body-path: comment.txt
29 changes: 29 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@
"@babel/plugin-transform-private-property-in-object": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@babel/preset-react": "^7.26.3",


"@dotlottie/react-player": "^1.6.19",

"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@eslint/config-array": "^0.19.1",
"@eslint/object-schema": "^2.1.5",
"@fortawesome/fontawesome-free": "^6.7.2",
"@headlessui/react": "^2.1.8",
"@heroicons/react": "^2.1.5",
"@jridgewell/sourcemap-codec": "^1.5.0",
Expand All @@ -36,11 +34,10 @@
"glob": "^11.0.0",
"gsap": "^3.12.5",
"lottie-react": "^2.4.0",

"openai": "^4.78.0",

"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.4.0",
"react-locomotive-scroll": "^0.2.2",
"react-redux": "^9.1.2",
"react-router-dom": "^6.26.2",
Expand Down
Loading

0 comments on commit f7c40b5

Please sign in to comment.