Skip to content

Enable ghatm to get jobs execution times by GitHub API and calculate the appropriate timeout-minutes #68

@suzuki-shunsuke

Description

@suzuki-shunsuke

Motivation

It's hard to estimate appropriate timeout-minutes per job.
So it would be great if we can estimate timeout-minutes based on actual jobs execution time.

GitHub API

I can't find GraphQL API to get Jobs data.

GitHub API v3

Parameters

GitHub Access Token

GitHub Access Token is required.

  • GITHUB_TOKEN
  • GHATM_GITHUB_TOKEN

Permissions:

  • "Actions" repository permissions (read)
  • actions:read

Example

ghatm set -exp "avg(jobs) + 5" -date 7w -number 100
ghatm set -auto # Provide nice default settings

⚠️ Limitation

  • If variables are used in a job name, it's difficult to map jobs with the job
  • If workflow files were renamed, it's difficult to get old data

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions