Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#1259] Renamed dispatch-webhook-lagoon.yml to close-pull-request.yml. #1265

Merged
merged 1 commit into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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_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_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
Loading