Skip to content

Commit

Permalink
Renamed dispatch-webhook-lagoon.yml to close-pull-request.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Apr 16, 2024
1 parent ce3331c commit 0d63b4c
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"

Check warning on line 775 in .scaffold/tests/bats/_helper.bash

View check run for this annotation

Codecov / codecov/patch

.scaffold/tests/bats/_helper.bash#L775

Added line #L775 was not covered by tests
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"

Check warning on line 798 in .scaffold/tests/bats/_helper.bash

View check run for this annotation

Codecov / codecov/patch

.scaffold/tests/bats/_helper.bash#L798

Added line #L798 was not covered by tests
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 0d63b4c

@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.