#github-actions #ci #tool #github-issues

bin+lib gh-workflow-parser

Parse GitHub workflows and do stuff like create issues

10 releases (4 breaking)

0.5.4 Mar 5, 2024
0.5.3 Feb 18, 2024
0.4.0 Feb 15, 2024
0.3.0 Feb 14, 2024
0.1.1 Feb 13, 2024

#1105 in Command line utilities

MIT license

10MB
2K SLoC

GitHub Workflow Parser

Purpose

Make automatic issue creation a lot smarter. Adding error labels, link to specific runs and appropriate error logs.

Installation

Build from source or install with cargo install gh-workflow-parser

Usage

Run gh-workflow-parse --help to get started.

Example of a created issue's body

Run ID: 7858139663 LINK TO RUN

1 job failed:

  • Test template xilinx

Test template xilinx (ID 21442749267)

Step failed: 📦 Build yocto image
Log: github.com/luftkode/distro-template/actions/runs/7858139663/job/21442749267
Best effort error summary:

ERROR: sqlite3-native-3_3.43.2-r0 do_fetch: Bitbake Fetcher Error: MalformedUrl('${SOURCE_MIRROR_URL}')
ERROR: Logfile of failure stored in: /app/yocto/build/tmp/work/x86_64-linux/sqlite3-native/3.43.2/temp/log.do_fetch.21616
ERROR: Task (virtual:native:/app/yocto/build/../poky/meta/recipes-support/sqlite/sqlite3_3.43.2.bb:do_fetch) failed with exit code '1'

2024-02-11 00:09:04 - ERROR    - Command "/app/yocto/poky/bitbake/bin/bitbake -c build test-template-ci-xilinx-image package-index" failed with error 1
log.do_fetch.21616
blabla error

Code documentation

Available HERE

Dependencies

~6–17MB
~246K SLoC