Skip to content

Commit a61412c

Browse files
committed
update with fixes
1 parent b93fcde commit a61412c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This is a simple API to count the number of queued GitHub Actions jobs for all repositories in a GitHub organization. The API is intended to be used as a KEDA metric-api scaler to adjust the number of GitHub runners dynamically based on the job queue length.
44

55
## Features
6-
Fetches and counts the number of queued jobs across all repositories in a GitHub organization.
6+
Fetches and counts the number of queued jobs across all repositories in a GitHub organization. Queries only repos that have been updated not longer than one year ago. Repo list is cached for 10 minutes.
77
Caches the result for a configurable amount of time to reduce the number of API calls to GitHub.
88
Supports both GitHub Enterprise and public GitHub by automatically adjusting API URLs.
99
Exposes an HTTP endpoint to return the queued jobs count in JSON format.
@@ -74,7 +74,7 @@ metadata:
7474
name: github-runner
7575
spec:
7676
scaleTargetRef:
77-
name: github-runner
77+
name: github-runner-worker
7878
pollingInterval: 120
7979
cooldownPeriod: 600
8080
minReplicaCount: 1
@@ -113,5 +113,6 @@ Copy code
113113
Permissions: repo, workflow
114114
- GITHUB_RUNNER_SCALER_CACHE_TIMEOUT: Cache duration in seconds.
115115
Default: 60 seconds
116+
- GITHUB_RUNNER_LABEL: check jobs only for this label (optional)
116117
- PORT: The port the server will listen on.
117118
Default: 8080

0 commit comments

Comments
 (0)