-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
80 additions
and
80 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 |
---|---|---|
@@ -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}.`); |
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 |
---|---|---|
@@ -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}.`); | ||
|
||
|
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