Skip to content

Commit fe7601f

Browse files
committed
build: skip namespace types for which open PRs exist
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 86299b1 commit fe7601f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/namespace_declarations.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,15 @@ jobs:
115115
116116
# Branch name slug with slashes replaced by dashes:
117117
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:
118127
git checkout -b "$branch_name"
119128
120129
# Generate declarations for this namespace:

0 commit comments

Comments
 (0)