Skip to content

Commit

Permalink
Update search
Browse files Browse the repository at this point in the history
  • Loading branch information
AdnaneKhan committed Jul 6, 2024
1 parent 334d239 commit 12d42bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions gatox/configuration/workflow_parsing.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"ubuntu-18.04",
"ubuntu-20.04",
"ubuntu-22.04",
"ubuntu-24.04",
"windows-2022",
"windows-2019",
"windows-2016",
Expand Down
7 changes: 3 additions & 4 deletions gatox/search/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import json

from gatox.cli.output import Output
from gatox.configuration.configuration_manager import ConfigurationManager
from gatox.github.search import Search
from gatox.github.api import Api

Expand Down Expand Up @@ -90,11 +91,9 @@ def use_sourcegraph_api(
"context:global "
"self-hosted OR "
"(runs-on AND NOT "
"/(ubuntu-16.04|ubuntu-18.04|ubuntu-20.04|ubuntu-22.04|ubuntu-latest|"
"windows-2019|windows-2022|windows-latest|macos-11|macos-12|macos-13|"
"macos-12-xl|macos-13-xl|macos-latest)/) "
f"/({'|'.join(ConfigurationManager().WORKFLOW_PARSING['GITHUB_HOSTED_LABELS'])})/) "
f"{repo_filter}"
"lang:YAML file:.github/workflows/ count:30000"
"lang:YAML file:.github/workflows/ count:100000"
)
}

Expand Down

0 comments on commit 12d42bb

Please sign in to comment.