Skip to content

Commit 2dbc10d

Browse files
committed
build: bump threshold but count all PRs
--- 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: passed - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 10efb04 commit 2dbc10d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/scripts/rate_limit_contributions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ set -o pipefail
3838
pr_number="$1"
3939

4040
# Threshold of open "Good First PR"s above which to post comment:
41-
max_good_first_prs=5
41+
max_good_first_prs=10
4242

4343
# GitHub API base URL:
4444
github_api_url="https://api.github.com"
@@ -133,7 +133,7 @@ main() {
133133
pr_author=$(echo "${pr_details}" | jq -r '.user.login')
134134

135135
# Fetch other PRs of the same user:
136-
user_prs=$(github_api "GET" "/search/issues?q=repo%3A${repo_owner}%2F${repo_name}+state%3Aopen+author%3A${pr_author}+type%3Apr")
136+
user_prs=$(github_api "GET" "/search/issues?q=repo%3A${repo_owner}%2F${repo_name}+author%3A${pr_author}+type%3Apr")
137137

138138
# Count number of PRs labeled "Good First PR":
139139
num_good_first_prs=$(echo "${user_prs}" | jq -r '.items | map( select( .labels | any( .name == "Good First PR" ))) | length')

0 commit comments

Comments
 (0)