-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/add additional hook locations (#3130)
* Add hooks for pre/post create/delete branch/tag Co-authored-by: Nir Ozery <nir.ozery@treeverse.com> Co-authored-by: Barak Amar <barak.amar@treeverse.io>
- Loading branch information
1 parent
71ec1e5
commit 476f6f2
Showing
22 changed files
with
1,302 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Test Post Commit | ||
description: a test action description | ||
on: | ||
post-commit: | ||
branches: | ||
- feature-* | ||
hooks: | ||
- id: test_webhook | ||
type: webhook | ||
description: Check webhooks for post-commit works | ||
properties: | ||
url: "{{.URL}}/post-commit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Test Post Create Branch | ||
description: a test action description | ||
on: | ||
post-create-branch: | ||
branches: | ||
- test_branch_delete | ||
hooks: | ||
- id: test_webhook | ||
type: webhook | ||
description: Check webhooks for post-create branch works | ||
properties: | ||
url: "{{.URL}}/post-create-branch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Test Post Create Tag | ||
description: a test action description | ||
on: | ||
post-create-tag: | ||
hooks: | ||
- id: test_webhook | ||
type: webhook | ||
description: Check webhooks for post-create tag works | ||
properties: | ||
url: "{{.URL}}/post-create-tag" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Test Post Delete Branch | ||
description: a test action description | ||
on: | ||
post-delete-branch: | ||
branches: | ||
hooks: | ||
- id: test_webhook | ||
type: webhook | ||
description: Check webhooks for post-delete branch works | ||
properties: | ||
url: "{{.URL}}/post-delete-branch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Test Post Delete Tag | ||
description: a test action description | ||
on: | ||
post-delete-tag: | ||
hooks: | ||
- id: test_webhook | ||
type: webhook | ||
description: Check webhooks for post-delete tag works | ||
properties: | ||
url: "{{.URL}}/post-delete-tag" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Test Post Merge | ||
description: a test action description | ||
on: | ||
post-merge: | ||
branches: | ||
- main | ||
hooks: | ||
- id: test_webhook | ||
type: webhook | ||
description: Check webhooks for post-merge works | ||
properties: | ||
url: "{{.URL}}/post-merge" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Test Pre Commit | ||
description: a test action description | ||
on: | ||
pre-commit: | ||
hooks: | ||
- id: test_webhook | ||
type: webhook | ||
description: Check webhooks for pre-commit works | ||
properties: | ||
url: "{{.URL}}/pre-commit" | ||
query_params: | ||
check_env_vars: "{{"{{ ENV.ACTIONS_VAR }}"}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Test Pre Create Branch | ||
description: a test action description | ||
on: | ||
pre-create-branch: | ||
branches: | ||
- test_branch_delete | ||
hooks: | ||
- id: test_webhook | ||
type: webhook | ||
description: Check webhooks for pre-create branch works | ||
properties: | ||
url: "{{.URL}}/pre-create-branch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Test Pre Create Tag | ||
description: a test action description | ||
on: | ||
pre-create-tag: | ||
hooks: | ||
- id: test_webhook | ||
type: webhook | ||
description: Check webhooks for pre-create tag works | ||
properties: | ||
url: "{{.URL}}/pre-create-tag" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Test Pre Delete Branch | ||
description: a test action description | ||
on: | ||
pre-delete-branch: | ||
branches: | ||
hooks: | ||
- id: test_webhook | ||
type: webhook | ||
description: Check webhooks for pre-delete branch works | ||
properties: | ||
url: "{{.URL}}/pre-delete-branch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Test Pre Delete Tag | ||
description: a test action description | ||
on: | ||
pre-delete-tag: | ||
hooks: | ||
- id: test_webhook | ||
type: webhook | ||
description: Check webhooks for pre-delete tag works | ||
properties: | ||
url: "{{.URL}}/pre-delete-tag" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Test Pre Merge | ||
description: a test action description | ||
on: | ||
pre-merge: | ||
branches: | ||
- main | ||
hooks: | ||
- id: test_webhook | ||
type: webhook | ||
description: Check webhooks for pre-merge works | ||
properties: | ||
url: "{{.URL}}/pre-merge" |
Oops, something went wrong.