[PR #735] [CLOSED] Extend events support & add tests/examples #1584

Closed
opened 2026-03-01 21:51:48 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/735
Author: @catthehacker
Created: 6/11/2021
Status: Closed

Base: masterHead: cat/fix/event-json


📝 Commits (4)

  • f943d3b fix: parse eventName from event file
  • 847211f docs(README): mention event examples
  • ef814f7 fix(runner/expression): add message about custom event
  • b6c6ed9 Merge branch 'master' into cat/fix/event-json

📊 Changes

63 files changed (+8731 additions, -22 deletions)

View changed files

📝 README.md (+1 -1)
cmd/event.go (+151 -0)
cmd/event_test.go (+35 -0)
📝 cmd/root.go (+8 -1)
📝 pkg/model/planner.go (+12 -0)
📝 pkg/runner/expression.go (+1 -1)
📝 pkg/runner/run_context.go (+1 -1)
📝 pkg/runner/runner.go (+1 -0)
📝 pkg/runner/runner_test.go (+20 -18)
pkg/runner/testdata/contexts/push.yml (+24 -0)
pkg/runner/testdata/event-types/check-run/event.json (+318 -0)
pkg/runner/testdata/event-types/check-suite/event.json (+223 -0)
pkg/runner/testdata/event-types/code-scanning-alert/event.json (+160 -0)
pkg/runner/testdata/event-types/commit-comment/event.json (+151 -0)
pkg/runner/testdata/event-types/content-reference/event.json (+125 -0)
pkg/runner/testdata/event-types/create/event.json (+121 -0)
pkg/runner/testdata/event-types/delete/event.json (+119 -0)
pkg/runner/testdata/event-types/deploy-key/event.json (+125 -0)
pkg/runner/testdata/event-types/deployment-status/event.json (+186 -0)
pkg/runner/testdata/event-types/deployment/event.json (+153 -0)

...and 43 more files

📄 Description

changelog:

  • parse event name from event.json
  • add list of allowed event names
  • add test for every event

fixes #602
fixes #671
fixes #179


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/735 **Author:** [@catthehacker](https://github.com/catthehacker) **Created:** 6/11/2021 **Status:** ❌ Closed **Base:** `master` ← **Head:** `cat/fix/event-json` --- ### 📝 Commits (4) - [`f943d3b`](https://github.com/nektos/act/commit/f943d3b8a71b600b85d88e0017148f03ce72acb0) fix: parse eventName from event file - [`847211f`](https://github.com/nektos/act/commit/847211fe0e043fb81f3499bbf94ac74aca1ecf9f) docs(README): mention event examples - [`ef814f7`](https://github.com/nektos/act/commit/ef814f7e28c3f9a316cd4ed7750666cb65fa57a0) fix(runner/expression): add message about custom event - [`b6c6ed9`](https://github.com/nektos/act/commit/b6c6ed904c5c060e8cfe9ffb7b6f46d46ab5eb88) Merge branch 'master' into cat/fix/event-json ### 📊 Changes **63 files changed** (+8731 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -1) ➕ `cmd/event.go` (+151 -0) ➕ `cmd/event_test.go` (+35 -0) 📝 `cmd/root.go` (+8 -1) 📝 `pkg/model/planner.go` (+12 -0) 📝 `pkg/runner/expression.go` (+1 -1) 📝 `pkg/runner/run_context.go` (+1 -1) 📝 `pkg/runner/runner.go` (+1 -0) 📝 `pkg/runner/runner_test.go` (+20 -18) ➕ `pkg/runner/testdata/contexts/push.yml` (+24 -0) ➕ `pkg/runner/testdata/event-types/check-run/event.json` (+318 -0) ➕ `pkg/runner/testdata/event-types/check-suite/event.json` (+223 -0) ➕ `pkg/runner/testdata/event-types/code-scanning-alert/event.json` (+160 -0) ➕ `pkg/runner/testdata/event-types/commit-comment/event.json` (+151 -0) ➕ `pkg/runner/testdata/event-types/content-reference/event.json` (+125 -0) ➕ `pkg/runner/testdata/event-types/create/event.json` (+121 -0) ➕ `pkg/runner/testdata/event-types/delete/event.json` (+119 -0) ➕ `pkg/runner/testdata/event-types/deploy-key/event.json` (+125 -0) ➕ `pkg/runner/testdata/event-types/deployment-status/event.json` (+186 -0) ➕ `pkg/runner/testdata/event-types/deployment/event.json` (+153 -0) _...and 43 more files_ </details> ### 📄 Description changelog: - parse event name from `event.json` - add list of allowed event names - add test for every event fixes #602 fixes #671 fixes #179 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:51:48 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1584
No description provided.