Git Product home page Git Product logo

gha-usage's People

Contributors

github-actions[bot] avatar jcwasmx86 avatar muno92 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

jcwasmx86

gha-usage's Issues

Add Sub Command

Summary

add sub command count and calc-time

Now

  • count workflow run
    curl 'https://api.github.com/repos/REPO_OWNER/REPO_NAME/actions/runs?created=START_DATE..END_DATE' | jq '.total_count'
    • jq is need
    • hard to use
  • calculate usage time
    ./gha-usage REPO START_DATE END_DATE

After

  • count workflow run
    ./ghausage count REPO START_DATE END_DATE
  • calculate usage time
    ./ghausage calc-time REPO START_DATE END_DATE
    • command name candidates
      • sum

Add self-hosted runner to RunnerType

Summary

Now, runner type is only linux/windows/mac and not windows/mac job is count as linux.
So, add self-hosted runner to RunnerType and consider not linux/windows/mac job as self-hosted runner.

Usage seconds is negative integer

Version

0.1.0

Problem

> ./gha-usage phpstan/phpstan-src 2022-10-19 2022-10-19
phpstan/phpstan-src (2022-10-19 ~ 2022-10-19) usage
Linux: -2561985h29m42s (-9223147782s)
Windows: 41h15m45s (148545s)
Mac: 0s (0s)

Expected

positive integer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.