From 380142cb4be283f21a5dcb64c5f44007cc13e89d Mon Sep 17 00:00:00 2001 From: Rachael Sewell Date: Thu, 18 Feb 2021 13:42:48 -0800 Subject: [PATCH 1/2] use `pull_request_target` (#3783) --- .github/workflows/repo-freeze-check.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/repo-freeze-check.yml b/.github/workflows/repo-freeze-check.yml index 7611d3ee54..a1389ba313 100644 --- a/.github/workflows/repo-freeze-check.yml +++ b/.github/workflows/repo-freeze-check.yml @@ -1,7 +1,8 @@ name: Repo Freeze Check on: - pull_request: + workflow_dispatch: + pull_request_target: types: - opened - reopened From e2ba28910fb26a0caac793f79e09a3a91675a36a Mon Sep 17 00:00:00 2001 From: David Wolf Date: Fri, 19 Feb 2021 12:09:25 -0500 Subject: [PATCH 2/2] Add note about no deployment_status events for inactive state (#3736) * Update events-that-trigger-workflows.md * fix typo * Apply suggestions from code review Co-authored-by: Sarah Edwards --- content/actions/reference/events-that-trigger-workflows.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/actions/reference/events-that-trigger-workflows.md b/content/actions/reference/events-that-trigger-workflows.md index e52cb74a8a..9693d877b4 100644 --- a/content/actions/reference/events-that-trigger-workflows.md +++ b/content/actions/reference/events-that-trigger-workflows.md @@ -271,6 +271,12 @@ on: deployment_status ``` +{% note %} + +**Note:** When a deployment status's state is set to `inactive`, a webhook event will not be created. + +{% endnote %} + #### `fork` Runs your workflow anytime when someone forks a repository, which triggers the `fork` event. For information about the REST API, see "[Create a fork](/rest/reference/repos#create-a-fork)."