package
1.7.1
Repository: https://github.com/rhysd/actionlint.git
Documentation: pkg.go.dev

# README

generate-webhook-events

This is a script for generating all_webhooks.go.

It does:

  1. Fetch the official markdown document
  2. Parse the markdown file and find Webhook names and their types from tables
  3. Generate mappings from Webhook names to their types as Go map variable

Usage

generate-webhook-events [[srcfile] dstfile]

Generate all_webhooks.go file:

go run ./scripts/generate-webhook-events ./all_webhooks.go

When the markdown file is in local:

go run ./scripts/generate-webhook-events ./events-that-trigger-workflows.md ./all_webhooks.go

For debugging, specifying - to dstfile outputs the generated source to stdout:

go run ./scripts/generate-webhook-events -