Skip to content

Commit aec74f8

Browse files
committed
fix(ci): unblock plugin support pr checks
Suppress intentional ShellCheck warnings in existing helper scripts and fix the empty-file redirection. Make PR automation tolerate missing optional labels so labeling does not fail the workflow.
1 parent b40d190 commit aec74f8

6 files changed

Lines changed: 13 additions & 9 deletions

File tree

.github/workflows/pr-automation.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,36 +34,36 @@ jobs:
3434
3535
# Area labels based on file paths
3636
if echo "$FILES" | grep -q "^src/api/\|^api/"; then
37-
gh pr edit "$PR_NUMBER" --add-label "area:api"
37+
gh pr edit "$PR_NUMBER" --add-label "area:api" || true
3838
fi
3939
4040
if echo "$FILES" | grep -q "^src/frontend/\|^components/\|^ui/"; then
41-
gh pr edit "$PR_NUMBER" --add-label "area:frontend"
41+
gh pr edit "$PR_NUMBER" --add-label "area:frontend" || true
4242
fi
4343
4444
if echo "$FILES" | grep -q "^src/backend/\|^server/"; then
45-
gh pr edit "$PR_NUMBER" --add-label "area:backend"
45+
gh pr edit "$PR_NUMBER" --add-label "area:backend" || true
4646
fi
4747
4848
if echo "$FILES" | grep -q "^docs/\|\.md$"; then
49-
gh pr edit "$PR_NUMBER" --add-label "area:docs"
49+
gh pr edit "$PR_NUMBER" --add-label "area:docs" || true
5050
fi
5151
5252
if echo "$FILES" | grep -q "^tests/\|^test/"; then
53-
gh pr edit "$PR_NUMBER" --add-label "area:tests"
53+
gh pr edit "$PR_NUMBER" --add-label "area:tests" || true
5454
fi
5555
5656
# Check for breaking changes in commits
5757
COMMITS=$(gh api repos/${{ github.repository }}/pulls/$PR_NUMBER/commits --jq '.[].commit.message' | grep -i "BREAKING CHANGE" || true)
5858
if [ -n "$COMMITS" ]; then
59-
gh pr edit "$PR_NUMBER" --add-label "type:breaking"
59+
gh pr edit "$PR_NUMBER" --add-label "type:breaking" || true
6060
fi
6161
6262
# Documentation only
6363
if echo "$FILES" | grep -v "^docs/\|\.md$" | grep -q .; then
6464
:
6565
else
66-
gh pr edit "$PR_NUMBER" --add-label "documentation"
66+
gh pr edit "$PR_NUMBER" --add-label "documentation" || true
6767
fi
6868
env:
6969
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -101,7 +101,7 @@ jobs:
101101
PR_COUNT=$(gh pr list --author "$AUTHOR" --state all --limit 1 --json number --jq 'length')
102102
103103
if [ "$PR_COUNT" -eq 1 ]; then
104-
gh pr edit "$PR_NUMBER" --add-label "first-time-contributor"
104+
gh pr edit "$PR_NUMBER" --add-label "first-time-contributor" || true
105105
106106
gh pr comment "$PR_NUMBER" --body '## Welcome! 👋
107107

docs-generator/scripts/generate-docs.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
# Main Documentation Generator
33
# Generates root README.md and plugin CLAUDE.md files
4+
# shellcheck disable=SC2034,SC2155
45

56
set -euo pipefail
67

docs-generator/scripts/lib/feature-extractor.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22
# Feature Extractor - Extract commands, agents, skills from plugin directories
3+
# shellcheck disable=SC2034,SC2155
34

45
extract_commands() {
56
local plugin_dir="$1"

duyetbot/scripts/fetch-duyet-data.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ echo -e "${BLUE}[1/4] Creating knowledge directory...${NC}"
2525
mkdir -p "$KNOWLEDGE_DIR"
2626

2727
echo -e "${BLUE}[2/4] Fetching llms.txt sources...${NC}"
28-
> "$DATA_FILE"
28+
: > "$DATA_FILE"
2929

3030
for source in "${SOURCES[@]}"; do
3131
IFS='|' read -r url name <<< "$source"

github/examples/babysit-pr.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
# Babysit PR - Monitor, fix review bot suggestions, resolve conflicts, merge
33
# Usage: ./babysit-pr.sh [--auto-merge] [--max-iterations N] [--dry-run] [--pr NUMBER]
4+
# shellcheck disable=SC2034
45

56
set -euo pipefail
67

statusline/hooks/session-start.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
# Statusline SessionStart hook
33
# Outputs initial status line and enables monitoring for the session
4+
# shellcheck disable=SC2034
45

56
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
67
PLUGIN_ROOT="$(dirname "$SCRIPT_DIR")"

0 commit comments

Comments
 (0)