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