From b6ab304f91cc06ff00c0683e18587c02ecb26d10 Mon Sep 17 00:00:00 2001 From: Harrissou Sant-anna Date: Tue, 14 May 2024 13:41:58 +0200 Subject: [PATCH] Update the milestone during issue report creation for docs repo calling the existing action --- .github/workflows/pr-auto-milestone.yml | 1 + .github/workflows/pr-needs-documentation.yml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/pr-auto-milestone.yml b/.github/workflows/pr-auto-milestone.yml index 7884b86246a..fd123f3d14d 100644 --- a/.github/workflows/pr-auto-milestone.yml +++ b/.github/workflows/pr-auto-milestone.yml @@ -1,6 +1,7 @@ name: 📅 Auto set milestone on PR on: + workflow_call: pull_request_target: types: - opened diff --git a/.github/workflows/pr-needs-documentation.yml b/.github/workflows/pr-needs-documentation.yml index 593187145d6..51e17cf6eea 100644 --- a/.github/workflows/pr-needs-documentation.yml +++ b/.github/workflows/pr-needs-documentation.yml @@ -76,6 +76,12 @@ jobs: reactions: '+1' + update-milestone: + 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' ) + # Update the milestone (if necessary) + name: Update final milestone + uses: ./.github/workflows/pr-auto-milestone.yml + create-doc-issue: 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' ) runs-on: ubuntu-latest