We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86299b1 commit fe7601fCopy full SHA for fe7601f
.github/workflows/namespace_declarations.yml
@@ -115,6 +115,15 @@ jobs:
115
116
# Branch name slug with slashes replaced by dashes:
117
branch_name="update-${display_namespace//\//-}-declarations"
118
+
119
+ # If an open PR already exists for this branch, skip this namespace entirely:
120
+ existing_pr=$(gh pr list --head "$branch_name" --state open --json number -q '.[0].number' || true)
121
+ if [ -n "$existing_pr" ]; then
122
+ echo "Open PR exists for $branch_name (#$existing_pr). Skipping $namespace."
123
+ continue
124
+ fi
125
126
+ # Switch to the new branch:
127
git checkout -b "$branch_name"
128
129
# Generate declarations for this namespace:
0 commit comments