Skip to content
HN On Hacker News ↗

GitHub - 43081j/tangleflow: Convert GitHub actions workflows to tangled pipelines and vice versa.

▲ 27 points • 14 comments • by wertyk • 4mo ago • HN discussion ↗

Pangram verdict · v3.3

We believe that this document is fully AI-generated

78 %

AI likelihood · overall

AI
0% human-written 100% AI-generated
SEGMENTS · HUMAN 0 of 1
SEGMENTS · AI 1 of 1
WORD COUNT 157
PEAK AI % 78% · §1
Analyzed
Jul 24
backend: pangram/v3.3
Segments scanned
1 windows
avg 157 words each
Distribution
0 / 100%
human / AI fraction
Verdict
AI
Pangram v3.3

Article text · 157 words · 1 segments analyzed

Human AI-generated
§1 AI · 78%

Converts GitHub Actions workflows into tangled workflows and vice versa. Use it as a command-line tool to convert the workflow files in a repository, or as a library to convert parsed workflow objects in your own code. Usage npx tangleflow --target=<tangled|gh> [file...]

Option Description

--target=tangled Convert GitHub Actions workflows to tangled

--target=gh, --target=github Convert tangled workflows to GitHub Actions

If no files are given, every workflow in the source directory is converted:

--target=tangled reads .github/workflows/*.{yml,yaml} and writes to .tangled/workflows/ --target=gh reads .tangled/workflows/*.{yml,yaml} and writes to .github/workflows/

When converting to tangled, each independent job becomes its own .tangled/workflows/<job>.yml file. Jobs linked by needs collapse into a single workflow whose steps run in dependency order. Install (as a library) npm install tangleflow API convertWorkflowToTangled(workflow) Converts a parsed GitHub Actions workflow object into a tangled Pipeline (an array of workflows, one per GitHub job). convertWorkflowToGitHub(workflow, path) Converts a parsed tangled workflow object into a GitHub Actions workflow object. License MIT