From f4709d663daae6aa2a9c8d3f313d085c8f93f848 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Tue, 16 Feb 2021 15:26:57 +0100 Subject: [PATCH] add missing token --- .github/workflows/pr-needs-documentation.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-needs-documentation.yml b/.github/workflows/pr-needs-documentation.yml index c6732b9744c..1e38c3de93a 100644 --- a/.github/workflows/pr-needs-documentation.yml +++ b/.github/workflows/pr-needs-documentation.yml @@ -58,6 +58,8 @@ jobs: - name: Get PR body as JSON id: get_pr_info uses: octokit/request-action@v2.x + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: route: GET /repos/qgis/QGIS/pulls/:pull_number pull_number: ${{ github.event.pull_request.number }} @@ -74,13 +76,14 @@ jobs: - name: Get PR commits uses: octokit/request-action@v2.x id: get_pr_commits + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: route: GET /repos/qgis/QGIS/pulls/:pull_number/commits pull_number: ${{ github.event.pull_request.number }} # extracts the matching commits - name: Filter commits with \[needs?.doc(umentation)?s?\] - if: github.event.pull_request.merged && ( ( github.event.action == 'closed' && contains( github.event.pull_request.labels.*.name, 'Needs Documentation') ) || github.event.label.name == 'Needs Documentation' ) id: filtered_commits env: JSON_DATA: ${{ steps.get_pr_commits.outputs.data }}