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

Commit 7b2d9ec

Browse files
committed
setup repo setup pr
1 parent 917f47f commit 7b2d9ec

2 files changed

Lines changed: 22 additions & 16 deletions

File tree

config.yml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -100,24 +100,29 @@ steps:
100100
operator: ===
101101
right: approved
102102
- type: mergePullRequest
103+
- type: createPullRequest
104+
title: Setup the learner's repo
105+
body: 02.0_add-template.md
106+
head: repo-setup
107+
action_id: repoPR
103108
- type: respond
104-
with: 02.0_add-template.md
109+
with: goto-template-pr.md
105110
data:
106-
fileUrl: '%payload.repository.html_url%/edit/add-metadata/README.md'
107-
108-
# Move to the next PR
109-
# - type: octokit
110-
# method: pullRequests.createComment
111-
# owner: '%payload.repository.owner.login%'
112-
# repo: '%payload.repository.name%'
113-
# number: '%payload.number%'
114-
# commit_id: '%payload.pull_request.head.sha%'
115-
# path: config.yml
116-
# body: |
117-
# ```suggestion
118-
# repo: lab-starter-template
119-
# ```
120-
# position: 13
111+
url: '%repoPR.data.html_url%'
112+
- type: assignRegistrant
113+
issue: '%actions.repoPR.data.number%'
114+
- type: octokit
115+
method: pullRequests.createComment
116+
owner: '%actions.repoPR.data.head.repo.owner.login%'
117+
repo: '%actions.repoPR.data.head.repo.name%'
118+
number: '%actions.repoPR.data.number%'
119+
commit_id: '%actions.repoPR.data.head.sha%'
120+
path: config.yml
121+
body: |
122+
```suggestion
123+
repo: lab-starter-template
124+
```
125+
position: 13
121126

122127
# 3
123128
- title: Point to the template repo

responses/goto-template-pr.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 PR]({{ url }}).

0 commit comments

Comments
 (0)