From 37a29073de3f8dc081c2c451062a78476ef613ae Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Wed, 16 Aug 2023 19:49:59 -0500 Subject: [PATCH] change trigger (#8418) --- .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: