这是indexloc提供的服务,不要输入任何密码
Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/check_repository_health.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,15 @@ jobs:
run: |
ISSUE_TITLE="Repository Health Check Failed"
ISSUE_BODY=$(cat repository-health.txt)
# if the Repository Health Check Failed issue is open, close it first
number=$(gh issue list \
--limit 1 \
--label "health-check" \
--state open \
--search "$ISSUE_TITLE in:title type:issue" \
--json number | jq -r '.[] | .number')
if [[ -n "$number" ]]; then
echo "INFO: Closing issue number: $number"
gh issue close "$number" --reason completed
fi
gh issue create --title "$ISSUE_TITLE" --body "$ISSUE_BODY" --label "health-check" --assignee "thunder-coding"