Skip to content

Commit

Permalink
Bump stalebot to version 9 (#36494)
Browse files Browse the repository at this point in the history
(cherry picked from commit 13e4905)
  • Loading branch information
eladkal authored and potiuk committed Dec 30, 2023
1 parent a161e6e commit cff4394
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 12 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/recheck-old-bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
recheck-old-bug-report:
runs-on: "ubuntu-22.04"
steps:
- uses: actions/stale@v8
- uses: actions/stale@v9
with:
only-issue-labels: 'kind:bug'
stale-issue-label: 'Stale Bug Report'
Expand All @@ -38,8 +38,10 @@ jobs:
# scan only issues: https://github.com/actions/stale/issues/837
# To avoid this job scanning also PRs and setting the defaults of the bot to them,
# we set high number of days thus effectively this job will not do any changes on PRs
days-before-pr-stale: 7000
days-before-pr-close: 7000
# Possible workaround with -1 as mentioned in
# https://github.com/actions/stale/issues/1112#issuecomment-1871654196
days-before-pr-stale: -1
days-before-pr-close: -1
remove-stale-when-updated: false
remove-issue-stale-when-updated: true
labels-to-add-when-unstale: 'needs-triage'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
stale:
runs-on: "ubuntu-22.04"
steps:
- uses: actions/stale@v8
- uses: actions/stale@v9
with:
stale-pr-message: >
This pull request has been automatically marked as stale because it has not had
Expand Down
6 changes: 3 additions & 3 deletions airflow/auth/managers/fab/security_manager/override.py
Original file line number Diff line number Diff line change
Expand Up @@ -2087,9 +2087,9 @@ def oauth_user_info_getter(
@appbuilder.sm.oauth_user_info_getter
def my_oauth_user_info(sm, provider, response=None):
if provider == 'github':
me = sm.oauth_remotes[provider].get('user')
return {'username': me.data.get('login')}
if provider == "github":
me = sm.oauth_remotes[provider].get("user")
return {"username": me.data.get("login")}
return {}
"""

Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/google/cloud/hooks/dataflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@


def process_line_and_extract_dataflow_job_id_callback(
on_new_job_id_callback: Callable[[str], None] | None
on_new_job_id_callback: Callable[[str], None] | None,
) -> Callable[[str], None]:
"""Build callback that triggers the specified function.
Expand Down
2 changes: 1 addition & 1 deletion generated/provider_dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
"asgiref>=3.5.2",
"gcloud-aio-auth>=4.0.0,<5.0.0",
"gcloud-aio-bigquery>=6.1.2",
"gcloud-aio-storage>=9.0.0",
"gcloud-aio-storage",
"gcsfs>=2023.10.0",
"google-ads>=22.1.0",
"google-api-core>=2.11.0",
Expand Down
4 changes: 2 additions & 2 deletions scripts/in_container/run_provider_yaml_files_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def check_integration_duplicates(yaml_files: dict[str, dict]) -> tuple[int, int]

@run_check("Checking completeness of list of {sensors, hooks, operators, triggers}")
def check_correctness_of_list_of_sensors_operators_hook_trigger_modules(
yaml_files: dict[str, dict]
yaml_files: dict[str, dict],
) -> tuple[int, int]:
num_errors = 0
num_modules = 0
Expand Down Expand Up @@ -354,7 +354,7 @@ def check_correctness_of_list_of_sensors_operators_hook_trigger_modules(

@run_check("Checking for duplicates in list of {sensors, hooks, operators, triggers}")
def check_duplicates_in_integrations_names_of_hooks_sensors_operators(
yaml_files: dict[str, dict]
yaml_files: dict[str, dict],
) -> tuple[int, int]:
num_errors = 0
num_integrations = 0
Expand Down
2 changes: 1 addition & 1 deletion scripts/in_container/verify_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ def is_camel_case_with_acronyms(s: str):


def check_if_classes_are_properly_named(
entity_summary: dict[EntityType, EntityTypeSummary]
entity_summary: dict[EntityType, EntityTypeSummary],
) -> tuple[int, int]:
"""Check if all entities in the dictionary are named properly.
Expand Down

0 comments on commit cff4394

Please sign in to comment.