Skip to content

Commit

Permalink
Slight Modification
Browse files Browse the repository at this point in the history
  • Loading branch information
om1512 committed Oct 2, 2023
1 parent 572999c commit ec4c5ba
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 80 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/issue_close.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name: Close issue comment
on:
issues:
types:
- closed
# name: Close issue comment
# on:
# issues:
# types:
# - closed

jobs:
comment:
runs-on: ubuntu-latest
# jobs:
# comment:
# runs-on: ubuntu-latest

steps:
- name: Issue close
uses: actions/github-script@v4
with:
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
script: |
const { owner, repo, number } = context.issue;
const commentauthor = context.payload.issue.user.login;
const commentBody = `Hey @${commentauthor} ! I wanted to inform you that we have closed issue.Thank you for your understanding, and we look forward to your continued engagement with our repository🤗.\n In case of any issues, you can contact us on [Discord](https://discord.gg/mv4NTzN). \nThank you! ❣️\nHappy Coding! ✨\nWill See you soon❣️
`;
# steps:
# - name: Issue close
# uses: actions/github-script@v4
# with:
# github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
# script: |
# const { owner, repo, number } = context.issue;
# const commentauthor = context.payload.issue.user.login;
# const commentBody = `Hey @${commentauthor} ! I wanted to inform you that we have closed issue.Thank you for your understanding, and we look forward to your continued engagement with our repository🤗.\n In case of any issues, you can contact us on [Discord](https://discord.gg/mv4NTzN). \nThank you! ❣️\nHappy Coding! ✨\nWill See you soon❣️
# `;

await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody });
console.log(`Commented on the issue: ${commentBody}.`);
# await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody });
# console.log(`Commented on the issue: ${commentBody}.`);
38 changes: 19 additions & 19 deletions .github/workflows/issue_open_greet.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
name: Comment on opening issue!
on:
issues:
types:
- opened
# name: Comment on opening issue!
# on:
# issues:
# types:
# - opened

jobs:
comment:
runs-on: ubuntu-latest
# jobs:
# comment:
# runs-on: ubuntu-latest

steps:
- name: Issue Opened
uses: actions/github-script@v4
with:
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
script: |
const { owner, repo, number } = context.issue;
const commentauthor = context.payload.issue.user.login;
const commentBody = `Greetings @${commentauthor}🎀 ! , We are excited to have you dive into another issue with us!🚀\nYour involvement in our project has been invaluable, and we're confident that your skills and insights will help us conquer this challenge😇. This issue represents an exciting opportunity for us to improve and enhance our project, and we are thrilled to have you on board.\n We request you to follow [CONTRIBUTING GUIDELINES](../blob/main/CONTRIBUTING.md).\nLooking for your PR soon! \n In case of any issues, you can contact us on [Discord](https://discord.gg/mv4NTzN).❣️`;
# steps:
# - name: Issue Opened
# uses: actions/github-script@v4
# with:
# github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
# script: |
# const { owner, repo, number } = context.issue;
# const commentauthor = context.payload.issue.user.login;
# const commentBody = `Greetings @${commentauthor}🎀 ! , We are excited to have you dive into another issue with us!🚀\nYour involvement in our project has been invaluable, and we're confident that your skills and insights will help us conquer this challenge😇. This issue represents an exciting opportunity for us to improve and enhance our project, and we are thrilled to have you on board.\n We request you to follow [CONTRIBUTING GUIDELINES](../blob/main/CONTRIBUTING.md).\nLooking for your PR soon! \n In case of any issues, you can contact us on [Discord](https://discord.gg/mv4NTzN).❣️`;

await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody });
console.log(`Commented on the issue: ${commentBody}.`);
# await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody });
# console.log(`Commented on the issue: ${commentBody}.`);


82 changes: 41 additions & 41 deletions .github/workflows/pr_comment.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
name: Pull Request related comments
on:
pull_request_target:
types:
- opened
- closed
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Comment on Opening Pull Request
uses: wow-actions/auto-comment@v1
with:
github-token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
pullRequestOpened: |
@{{ author }}, Thank you for creating PR! We will review it super soon. 😇❣️
We hope you have followed [CONTRIBUTING GUIDELINES](../blob/master/CONTRIBUTING.md).
Thank you for being an essential part of our community. Together, we'll keep building amazing things!
Don’t forget to ⭐ our repository!
Happy Coding!✨
Will See you soon❣️
# name: Pull Request related comments
# on:
# pull_request_target:
# types:
# - opened
# - closed
# jobs:
# run:
# runs-on: ubuntu-latest
# steps:
# - name: Comment on Opening Pull Request
# uses: wow-actions/auto-comment@v1
# with:
# github-token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
# pullRequestOpened: |
# @{{ author }}, Thank you for creating PR! We will review it super soon. 😇❣️
# We hope you have followed [CONTRIBUTING GUIDELINES](../blob/master/CONTRIBUTING.md).
# Thank you for being an essential part of our community. Together, we'll keep building amazing things!
# Don’t forget to ⭐ our repository!
# Happy Coding!✨
# Will See you soon❣️


- name : Merging pull Request
uses : wow-actions/auto-comment@v1
with :
github-token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
pullRequestMerged: |
@{{ author }} We're thrilled to inform you that your pull request has been successfully merged !
Your hard work, dedication, and expertise have made a significant impact on our project, and we couldn't be more grateful for your contributions.😇
Happy Coding! ✨
Will See you soon❣️
# - name : Merging pull Request
# uses : wow-actions/auto-comment@v1
# with :
# github-token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
# pullRequestMerged: |
# @{{ author }} We're thrilled to inform you that your pull request has been successfully merged !
# Your hard work, dedication, and expertise have made a significant impact on our project, and we couldn't be more grateful for your contributions.😇
# Happy Coding! ✨
# Will See you soon❣️


- name : Closing pull Request
uses : wow-actions/auto-comment@v1
with :
github-token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
pullRequestClosed: |
@{{ author }} ,I wanted to reach out and let you know that we have decided to close your pull request.🙇
While we truly appreciate your effort and dedication in contributing to our project, after careful consideration, we have determined that this particular PR may not align with our current goals or requirements.😢
In case of any issues, you can contact us on [Discord](https://discord.gg/mv4NTzN).
Thank you! ❣️
Happy Coding! ✨
Will See you soon❣️
# - name : Closing pull Request
# uses : wow-actions/auto-comment@v1
# with :
# github-token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
# pullRequestClosed: |
# @{{ author }} ,I wanted to reach out and let you know that we have decided to close your pull request.🙇
# While we truly appreciate your effort and dedication in contributing to our project, after careful consideration, we have determined that this particular PR may not align with our current goals or requirements.😢
# In case of any issues, you can contact us on [Discord](https://discord.gg/mv4NTzN).
# Thank you! ❣️
# Happy Coding! ✨
# Will See you soon❣️



Expand Down

0 comments on commit ec4c5ba

Please sign in to comment.