Skip to content

Commit

Permalink
fix: waiting message is only displayed on issue completed
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Aug 23, 2024
1 parent 31cb560 commit 6b6698b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/compute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
script: |
const comment_body = '\`\`\`diff\n+ Evaluating results. Please wait...';
const obj = ${{ inputs.eventPayload }}
if (obj.issue && "${{ inputs.eventName }}" === "issues.closed") {
if (obj.issue && "${{ inputs.eventName }}" === "issues.closed" && obj.issue.state_reason === "completed") {
const response = await github.rest.issues.createComment({
owner: obj.repository.owner.login,
repo: obj.repository.name,
Expand Down

0 comments on commit 6b6698b

Please sign in to comment.