Skip to content

Commit

Permalink
[#1259] Renamed dispatch-webhook-lagoon.yml to `close-pull-request.…
Browse files Browse the repository at this point in the history
…yml`. (#1265)
  • Loading branch information
AlexSkrypnyk authored Apr 16, 2024
1 parent 2caab7b commit 6cc5650
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
##
# GitHub Actions workflow to dispatch a PR webhook for a Pull Request.
# GitHub Actions workflow to action on Pull Request closure.
#
# This is used to allow more granular control over the operations that trigger
# webhooks.
#
# Note that Lagoon's webhook should be disabled in GitHub.

name: Dispatch a webhook to Lagoon when Pull Request is closed
name: Close Pull Request

on:
pull_request:
types: [closed]
types:
- closed

jobs:
dispatch_webhook_lagoon_remove_environment_pr_closed:
remove_lagoon_environment:
runs-on: ubuntu-latest
steps:
- name: Remove environment after a PR is closed
Expand Down
4 changes: 2 additions & 2 deletions .scaffold/tests/bats/_helper.bash
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ assert_files_present_integration_lagoon() {

assert_file_exists ".lagoon.yml"
assert_file_exists "drush/sites/lagoon.site.yml"
assert_file_exists ".github/workflows/dispatch-webhook-lagoon.yml"
assert_file_exists ".github/workflows/close-pull-request.yml"
assert_file_contains "docker-compose.yml" "labels"
assert_file_contains "docker-compose.yml" "lagoon.type: cli-persistent"
assert_file_contains "docker-compose.yml" "lagoon.persistent.name: &lagoon-nginx-name nginx-php"
Expand All @@ -795,7 +795,7 @@ assert_files_present_no_integration_lagoon() {

assert_file_not_exists ".lagoon.yml"
assert_file_not_exists "drush/sites/lagoon.site.yml"
assert_file_not_exists ".github/workflows/dispatch-webhook-lagoon.yml"
assert_file_not_exists ".github/workflows/close-pull-request.yml"
assert_file_not_contains "docker-compose.yml" "labels"
assert_file_not_contains "docker-compose.yml" "lagoon.type: cli-persistent"
assert_file_not_contains "docker-compose.yml" "lagoon.persistent.name: &lagoon-nginx-name nginx-php"
Expand Down

1 comment on commit 6cc5650

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.