From 8619dce49178ad9b86a33f672f526326c0a8de8f Mon Sep 17 00:00:00 2001 From: Abi Date: Tue, 14 May 2024 11:02:16 +0530 Subject: [PATCH 1/3] Created workflows directory and added autocomment.yaml for auto commenting on closed pull requests --- .github/workflows/autocomment.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/autocomment.yaml diff --git a/.github/workflows/autocomment.yaml b/.github/workflows/autocomment.yaml new file mode 100644 index 00000000..b0857392 --- /dev/null +++ b/.github/workflows/autocomment.yaml @@ -0,0 +1,30 @@ +name: Auto Comment on PR Merge + +on: + pull_request: + types: [closed] + +jobs: + comment: + runs-on: ubuntu-latest + if: github.event.pull_request.merged == true + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Add Comment to Issue + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + COMMENT=$(cat < Date: Tue, 14 May 2024 11:03:38 +0530 Subject: [PATCH 2/3] Added dummy.txt to check PR commenting --- dummy.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 dummy.txt diff --git a/dummy.txt b/dummy.txt new file mode 100644 index 00000000..247bfd7f --- /dev/null +++ b/dummy.txt @@ -0,0 +1 @@ +This is some dummy text. \ No newline at end of file From a7704247a2f402b20936e32e29923017e9835f56 Mon Sep 17 00:00:00 2001 From: Abi Date: Tue, 14 May 2024 11:06:10 +0530 Subject: [PATCH 3/3] Removed dummy file --- dummy.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 dummy.txt diff --git a/dummy.txt b/dummy.txt deleted file mode 100644 index 247bfd7f..00000000 --- a/dummy.txt +++ /dev/null @@ -1 +0,0 @@ -This is some dummy text. \ No newline at end of file