Add crash pattern rules for duplicate issue detection (#23658)

This commit is contained in:
robobun
2025-10-14 10:14:52 -07:00
committed by GitHub
parent bd88717ddc
commit 25d23201b6
2 changed files with 48 additions and 9 deletions

View File

@@ -142,8 +142,8 @@ jobs:
uses: actions/github-script@v7
with:
script: |
const closeAction = JSON.parse('${{ steps.add-labels.outputs.close-action }}');
const closeAction = ${{ fromJson(steps.add-labels.outputs.close-action) }};
// Comment with the reason
await github.rest.issues.createComment({
owner: context.repo.owner,
@@ -151,7 +151,7 @@ jobs:
issue_number: context.issue.number,
body: closeAction.comment
});
// Close the issue
await github.rest.issues.update({
owner: context.repo.owner,