Skip to content

Commit ec6a025

Browse files
committed
Update pending-tasks.py
1 parent d6254da commit ec6a025

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/issue-scripts/pending-tasks.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ def analyze_issues_with_pending_tasks(token, owner, repo, target_issue_number):
5555
if issue.number == target_issue_number:
5656
continue
5757

58+
# Only include issues closed as completed (exclude duplicates and not planned)
59+
if hasattr(issue, 'state_reason') and issue.state_reason != 'completed':
60+
continue
61+
5862
has_unchecked = False
5963

6064
# Verify that the issue body is not None
@@ -125,6 +129,10 @@ def analyze_issues_with_pending_tasks(token, owner, repo, target_issue_number):
125129
**Last Updated:** {current_time}
126130
**Total Issues Found:** {len(issues_con_checkboxes_desactivados)}
127131
132+
---
133+
*This report shows closed issues (completed only) that still contain unchecked checkboxes in their description or comments.*
134+
*Progress column shows: completed tasks / total tasks*
135+
*Note: Issues closed as duplicate or not planned are excluded from this report.*
128136
"""
129137

130138
# Update the report issue

0 commit comments

Comments
 (0)