garm/runner
Mario Constanti dc74c45317 fix: remove unnecessary github api call
There are only a few cases, where we get a job information from github
where the runner name is not set.

For all this cases we do not need to check github API at all because
these jobs are never ever get scheduled to a runner:

job.Action is:

* queued:
  a queued job is just queued and not scheduled to a runner so we do
  not get a runner name from the GH API
* completed:
  when conclusion=cancelled|failure github never scheduled the job to a
  runner and with that we do not get a runner name from the GH API

Signed-off-by: Mario Constanti <mario.constanti@mercedes-benz.com>
2024-06-05 12:37:20 +02:00
..
common Fix lint 2024-03-17 11:13:14 +00:00
metrics Add job info in runner list 2024-03-11 15:46:18 +00:00
mocks Allow bypassing Unauthorized error when deleting runner 2024-03-10 15:21:39 +00:00
pool fix: remove unnecessary github api call 2024-06-05 12:37:20 +02:00
providers fix: godoc linter warnings (TODOs) 2024-02-22 15:06:53 +01:00
common_test.go fix: goconst linter findings 2024-02-22 17:39:02 +01:00
enterprises.go Fetch credentials from DB 2024-04-24 13:59:15 +00:00
enterprises_test.go feat: garm pools do not force default labels 2024-05-21 11:55:12 +02:00
github_credentials.go Add github credentials API and cli code 2024-04-22 14:08:37 +00:00
github_endpoints.go Add github credentials API and cli code 2024-04-22 14:08:37 +00:00
interfaces.go Slight refactor and fix tests 2023-07-05 09:46:19 +00:00
metadata.go Slightly simplify code 2024-03-30 18:22:06 +00:00
organizations.go Fetch credentials from DB 2024-04-24 13:59:15 +00:00
organizations_test.go feat: garm pools do not force default labels 2024-05-21 11:55:12 +02:00
pools.go remove required tags during update 2024-05-22 06:03:06 +02:00
pools_test.go remove required tags during update 2024-05-22 06:03:06 +02:00
repositories.go Fetch credentials from DB 2024-04-24 13:59:15 +00:00
repositories_test.go feat: garm pools do not force default labels 2024-05-21 11:55:12 +02:00
runner.go feat: garm pools do not force default labels 2024-05-21 11:55:12 +02:00
types.go Move code to external package 2023-07-21 15:34:18 +00:00