Merge pull request #107 from github/hashtagchris-runs-on

Remove warnings for the `SuggestedValues` provider (i.e. `runs-on`)
This commit is contained in:
Chris Sidi
2023-01-31 12:42:57 -05:00
committed by GitHub
3 changed files with 5 additions and 37 deletions
@@ -2,6 +2,8 @@ import {Value} from "@github/actions-languageservice/value-providers/config";
import {Octokit} from "@octokit/rest";
import {TTLCache} from "../utils/cache";
// Limitation: getRunnerLabels returns default hosted labels and labels for repository self-hosted runners.
// It doesn't return labels for organization runners visible to the repository.
export async function getRunnerLabels(client: Octokit, cache: TTLCache, owner: string, name: string): Promise<Value[]> {
const defaultLabels = [
"ubuntu-latest",