Skip to content

Commit b6ab304

Browse files
DelazJnyalldawson
authored andcommitted
Update the milestone during issue report creation for docs repo
calling the existing action
1 parent d0d54a0 commit b6ab304

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/pr-auto-milestone.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: 📅 Auto set milestone on PR
22

33
on:
4+
workflow_call:
45
pull_request_target:
56
types:
67
- opened

.github/workflows/pr-needs-documentation.yml

+6
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ jobs:
7676
reactions: '+1'
7777

7878

79+
update-milestone:
80+
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' )
81+
# Update the milestone (if necessary)
82+
name: Update final milestone
83+
uses: ./.github/workflows/pr-auto-milestone.yml
84+
7985
create-doc-issue:
8086
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' )
8187
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)