Skip to content

Commit

Permalink
fix tests for script to extract webhook names
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Apr 1, 2023
1 parent 468fbb4 commit 5562294
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions scripts/generate-webhook-events/testdata/no_hook_name_link.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
title: Test
---

## Available events
## About events that trigger workflows

### `check_run`
## `check_run`

oops first cell does not contain [`check_run`](/webhooks/event-payloads/#check_run)!

Expand Down
4 changes: 2 additions & 2 deletions scripts/generate-webhook-events/testdata/no_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ Wow

Foo

### `workflow_dispatch`
## `workflow_dispatch`

| Webhook event payload | Activity types | `GITHUB_SHA` | `GITHUB_REF` |
| ------------------ | ------------ | ------------ | ------------------|
| [workflow_dispatch](/webhooks/event-payloads/#workflow_dispatch) | n/a | Last commit on the `GITHUB_REF` branch | Branch that received dispatch |

## Available events
## About events that trigger workflows

Bar
10 changes: 5 additions & 5 deletions scripts/generate-webhook-events/testdata/ok.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ Wow

Foo

### `workflow_dispatch`
## `workflow_dispatch`

| Webhook event payload | Activity types | `GITHUB_SHA` | `GITHUB_REF` |
| ------------------ | ------------ | ------------ | ------------------|
| [workflow_dispatch](/webhooks/event-payloads/#workflow_dispatch) | n/a | Last commit on the `GITHUB_REF` branch | Branch that received dispatch |

## Available events
## About events that trigger workflows

Bar

### `check_run`
## `check_run`

| Operator | Description | Example |
| -------- | ----------- | ------- |
Expand All @@ -30,15 +30,15 @@ Aaaa aaaa
| --------------------- | -------------- | ------------ | -------------|
| [`check_run`](/webhooks/event-payloads/#check_run) | - `created`<br/>- `rerequested`<br/>- `completed` | Last commit on default branch | Default branch |

### `discussion`
## `discussion`

Blah blah blah

| Webhook event payload | Activity types | `GITHUB_SHA` | `GITHUB_REF` |
| --------------------- | -------------- | ------------ | -------------|
| [`discussion`](/webhooks/event-payloads/#discussion) | - `opened`<br/>- `edited`<br/>- `deleted`<br/>- `transferred`<br/>- `pinned`<br/>- `unpinned`<br/>- `labeled`<br/>- `unlabeled`<br/>- `locked`<br/>- `unlocked`<br/>- `category_changed`<br/> - `answered`<br/> - `unanswered` | Last commit on default branch | Default branch |

### `create`
## `create`

Runs your workflow

Expand Down

0 comments on commit 5562294

Please sign in to comment.