Skip to content

Commit 4c7c126

Browse files
riderxclaude
andcommitted
fix: exclude own PRs (riderx) from upstream sync
Prevents syncing PRs created by the maintainer on the upstream repo, which would cause unnecessary duplicate syncs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 478fc60 commit 4c7c126

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/sync-upstream.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ jobs:
6161
echo "Found PRs:"
6262
echo "$OPEN_PRS" | jq -r '.[] | "PR #\(.number): \(.title) by @\(.author.login)"'
6363
64-
# Filter to non-draft PRs only (include ALL PRs - both from forks and ionic-team)
65-
ALL_PRS=$(echo "$OPEN_PRS" | jq '[.[] | select(.isDraft == false)]')
64+
# Filter to non-draft PRs and exclude our own PRs (riderx is the maintainer)
65+
# This prevents syncing PRs we created ourselves on the upstream repo
66+
ALL_PRS=$(echo "$OPEN_PRS" | jq '[.[] | select(.isDraft == false and .author.login != "riderx")]')
6667
6768
echo ""
6869
echo "All open PRs (non-draft):"

0 commit comments

Comments
 (0)