Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit f13e48c

Browse files
committed
approve the last pr, open publish issue
1 parent c6f754c commit f13e48c

3 files changed

Lines changed: 20 additions & 18 deletions

File tree

config.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -497,14 +497,24 @@ steps:
497497
else:
498498
type: respond
499499
with: 13.1_e-no-readme.md
500-
- type: createReview
501-
body: 13.0_publish.md
502-
event: APPROVE
500+
- type: requestReviewFromRegistrant
501+
- type: respond
502+
with: 13.0_publish.md
503503

504-
# 14
505-
- title: Publish your course to the sandbox environment
506-
description: Publish your course to the sandbox environment
507-
event: pull_request.closed
504+
- title: Approve the steps
505+
description: Approve the steps
506+
event: pull_request_review.submitted
508507
actions:
508+
- type: gate
509+
left: '%payload.review.state%'
510+
operator: ===
511+
right: approved
512+
- type: mergePullRequest
513+
- type: createIssue
514+
title: Publish your course
515+
body: 14.0_congratulations.md
516+
action_id: publishIssue
509517
- type: respond
510-
with: 14.0_congratulations.md
518+
with: goto-publish.md
519+
data:
520+
url: '%actions.publishIssue.data.html_url%'

responses/13.0_publish.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1 @@
1-
## Step 14: Merge
2-
3-
Your course is now complete! Before you can publish, these changes need to be on the `master` branch.
4-
5-
### :keyboard: Activity: Merge the pull request
6-
7-
1. Merge this pull request
8-
9-
<hr>
10-
<h3 align="center">I'll respond below when I detect this pull request has been merged.</h3>
1+
Approve this PR.

responses/goto-publish.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Let's go to the [next issue]({{ url }}).

0 commit comments

Comments
 (0)