From db69141642e05a3f7e27ea8c866880288867a8e6 Mon Sep 17 00:00:00 2001 From: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com> Date: Wed, 12 Apr 2023 21:16:06 +0200 Subject: [PATCH] Fix docstring-labeler.yml not working in PR from forks (#4648) --- .github/workflows/docstring-labeler.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docstring-labeler.yml b/.github/workflows/docstring-labeler.yml index 1eea6cbfe..4f81a3653 100644 --- a/.github/workflows/docstring-labeler.yml +++ b/.github/workflows/docstring-labeler.yml @@ -37,6 +37,8 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.ref }} + # This must be set to correctly checkout a fork + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Get docstrings id: head-docstrings