You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by GitBox <gi...@apache.org> on 2022/07/01 00:18:35 UTC

[GitHub] [incubator-linkis-website] Beacontownfc opened a new pull request, #392: Add an auto closing issue bot

Beacontownfc opened a new pull request, #392:
URL: https://github.com/apache/incubator-linkis-website/pull/392

   Fixed issue #391 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org


[GitHub] [incubator-linkis-website] casionone commented on a diff in pull request #392: Add an auto closing issue bot

Posted by GitBox <gi...@apache.org>.
casionone commented on code in PR #392:
URL: https://github.com/apache/incubator-linkis-website/pull/392#discussion_r911644565


##########
.github/workflows/auto-close-issue.yml:
##########
@@ -0,0 +1,28 @@
+name: Auto close issue when PR is merged
+
+on:
+  pull_request_target:
+    types: [ closed ]
+
+jobs:
+  close-issue:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+
+      - name: "Issue number validator"
+        uses: ./.github/actions/PR_has_a_valid_issue/
+        id: validator
+        with:
+          prbody: ${{ github.event.pull_request.body }}
+          prurl: ${{ github.event.pull_request.url }}
+
+      - name: Close Issue
+        uses: peter-evans/close-issue@v2
+        if: ${{ github.event.pull_request.merged }}
+        with:
+          issue-number: ${{ steps.validator.outputs.issueNumber }}
+          comment: Auto-closing issue

Review Comment:
   comment: Auto-closing issue 
   -> The associated PR has been merged, this issue is automatically closed, 
   you can be reopened if necessary



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org


[GitHub] [incubator-linkis-website] casionone merged pull request #392: Add an auto closing issue bot

Posted by GitBox <gi...@apache.org>.
casionone merged PR #392:
URL: https://github.com/apache/incubator-linkis-website/pull/392


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org