fix(ci): fix workflow errors + add OpenClaw support (#222)
This commit is contained in:
10
.github/workflows/pr-issue-auto-close.yml
vendored
10
.github/workflows/pr-issue-auto-close.yml
vendored
@@ -121,15 +121,7 @@ jobs:
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: parseInt(issueNumber),
|
||||
body: `Completed via PR #${prNumber}
|
||||
|
||||
PR: ${prTitle}
|
||||
URL: ${prUrl}
|
||||
Merged by: ${merger}
|
||||
|
||||
This issue has been resolved and the changes have been merged into main.
|
||||
|
||||
Automatically closed via PR merge automation`
|
||||
body: `Completed via PR #${prNumber}\n\nPR: ${prTitle}\nURL: ${prUrl}\nMerged by: ${merger}\n\nThis issue has been resolved and the changes have been merged into main.\n\nAutomatically closed via PR merge automation`
|
||||
});
|
||||
|
||||
// Close the issue
|
||||
|
||||
14
.github/workflows/smart-sync.yml
vendored
14
.github/workflows/smart-sync.yml
vendored
@@ -4,12 +4,10 @@ name: Smart Bidirectional Sync
|
||||
'on':
|
||||
issues:
|
||||
types: [labeled, closed, reopened]
|
||||
projects_v2_item:
|
||||
types: [edited]
|
||||
|
||||
# Prevent sync loops with debouncing
|
||||
concurrency:
|
||||
group: smart-sync-${{ github.event.issue.number || github.event.projects_v2_item.node_id }}
|
||||
group: smart-sync-${{ github.event.issue.number }}
|
||||
cancel-in-progress: true # Cancel pending runs (debouncing effect)
|
||||
|
||||
jobs:
|
||||
@@ -59,12 +57,6 @@ jobs:
|
||||
echo "⏭️ Skipping: Not a status change or state change"
|
||||
fi
|
||||
|
||||
elif [ "${{ github.event_name }}" = "projects_v2_item" ]; then
|
||||
# Project event → sync to issue
|
||||
echo "direction=project-to-issue" >> $GITHUB_OUTPUT
|
||||
echo "should_sync=true" >> $GITHUB_OUTPUT
|
||||
echo "✅ Will sync: Project Board → Issue"
|
||||
|
||||
else
|
||||
echo "should_sync=false" >> $GITHUB_OUTPUT
|
||||
echo "⚠️ Unknown event type"
|
||||
@@ -147,9 +139,10 @@ jobs:
|
||||
- name: Sync Issue to Project Board
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.PROJECTS_TOKEN }}
|
||||
ISSUE_TITLE: ${{ github.event.issue.title }}
|
||||
run: |
|
||||
echo "# Issue → Project Board Sync"
|
||||
echo "**Issue**: #${{ github.event.issue.number }} \"${{ github.event.issue.title }}\""
|
||||
echo "**Issue**: #${{ github.event.issue.number }} \"$ISSUE_TITLE\""
|
||||
echo "**State**: ${{ github.event.issue.state }}"
|
||||
echo "**Action**: ${{ github.event.action }}"
|
||||
|
||||
@@ -288,6 +281,7 @@ jobs:
|
||||
- name: Sync Project Board to Issue
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.PROJECTS_TOKEN }}
|
||||
ISSUE_TITLE: ${{ github.event.issue.title }}
|
||||
run: |
|
||||
echo "# Project Board → Issue Sync"
|
||||
echo "**Project Item**: ${{ github.event.projects_v2_item.node_id }}"
|
||||
|
||||
Reference in New Issue
Block a user