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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]