From 597bcaedfcb9f0d46fd327dea2608ecaefd745ae Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Tue, 15 Aug 2023 20:38:51 -0500 Subject: [PATCH] change trigger --- .github/workflows/docs-issue.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs-issue.yml b/.github/workflows/docs-issue.yml index c32c2a5191d..2a7584a3100 100644 --- a/.github/workflows/docs-issue.yml +++ b/.github/workflows/docs-issue.yml @@ -5,14 +5,15 @@ # To reduce barriers for keeping docs up to date # **when?** -# When a PR is labeled `user docs` and is merged +# When a PR is labeled `user docs` and is merged. Runs on pull_request_target to run off the workflow already merged, +# not the workflow that existed on the PR branch. This allows old PRs to get comments. name: Open issues in docs.getdbt.com repo when a PR is labeled run-name: "Open an issue in docs.getdbt.com for PR #${{ github.event.pull_request.number }}" on: - pull_request: + pull_request_target: types: [labeled, closed] defaults: