diff --git a/.github/workflows/doc-issue.yml b/.github/workflows/doc-issue.yml index b797ddb6c4..82c4f110c5 100644 --- a/.github/workflows/doc-issue.yml +++ b/.github/workflows/doc-issue.yml @@ -4,7 +4,7 @@ on: issues: types: - labeled - pull_request: + pull_request_target: types: - labeled @@ -19,7 +19,8 @@ jobs: owner: GreptimeTeam repo: docs token: ${{ secrets.DOCS_REPO_TOKEN }} - title: Update docs for {{ github.event.issue.title }} + title: Update docs for ${{ github.event.issue.title || github.event.pull_request.title }} body: | - A document change request is generated from ${{ github.event.issue.html_url }} - assignees: ${{ github.event.issue.user.login }} + A document change request is generated from + ${{ github.event.issue.html_url || github.event.pull_request.html_url }} + assignees: ${{ github.event.issue.user.login || github.event.pull_request.user.login }}