Skip to content

Commit

Permalink
[Enhancement] Added branch-specific targeting
Browse files Browse the repository at this point in the history
Referenced in issue #1
  • Loading branch information
mist8kengas committed Jul 24, 2022
1 parent b3b1b55 commit 03b916e
Show file tree
Hide file tree
Showing 5 changed files with 217 additions and 414 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@ The structure of this file is:

```json
{
"<username>/<repository>": {
"<username>/<repository>/<branch>": {
"<event>": "<command>"
}
}
```

- `<username>/<repository>` is the full name of the repository (eg: [mist8kengas/helmsman](https://github.com/mist8kengas/helmsman))
- `<branch>` is the target branch in the repository. **OPTIONAL**
- `<event>` refers to the name of the event that triggered the webhook (eg: `ping`, `push`, `release`, etc.) [See all the possible event names here](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads)
- `<command>` will be executed by the program, so be careful what you put in here. Similar to command-execution via CLI (eg: `echo "Hello!"`)

Expand Down
Loading

0 comments on commit 03b916e

Please sign in to comment.