Skip to content

Commit

Permalink
Update issue-comment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
josxha authored Feb 20, 2024
1 parent 621a3d4 commit bae9050
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/issue-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
console.log("isStale: " + isStale);
if (isStale) return false;
const { data: events } = await github.rest.issues.listEvents({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number
});
const labelAddedEvent = events.find(event => event.event === 'labeled' && event.label.name === 'waiting for user response');
if (!labelAddedEvent) return false;
const labelAddedDate = new Date(labelAddedEvent.created_at);
Expand Down

0 comments on commit bae9050

Please sign in to comment.