From ec4c5babf925d8b5913cb07021a7aa1f04f3983d Mon Sep 17 00:00:00 2001 From: Om Dhingani Date: Mon, 2 Oct 2023 23:47:06 +0530 Subject: [PATCH] Slight Modification --- .github/workflows/issue_close.yml | 40 ++++++------- .github/workflows/issue_open_greet.yml | 38 ++++++------ .github/workflows/pr_comment.yml | 82 +++++++++++++------------- 3 files changed, 80 insertions(+), 80 deletions(-) diff --git a/.github/workflows/issue_close.yml b/.github/workflows/issue_close.yml index e9116ae..9346500 100644 --- a/.github/workflows/issue_close.yml +++ b/.github/workflows/issue_close.yml @@ -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}.`); diff --git a/.github/workflows/issue_open_greet.yml b/.github/workflows/issue_open_greet.yml index 1fa1399..4bc2ae8 100644 --- a/.github/workflows/issue_open_greet.yml +++ b/.github/workflows/issue_open_greet.yml @@ -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}.`); diff --git a/.github/workflows/pr_comment.yml b/.github/workflows/pr_comment.yml index 66d5c86..65709b3 100644 --- a/.github/workflows/pr_comment.yml +++ b/.github/workflows/pr_comment.yml @@ -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❣️