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

Commit 983bd31

Browse files
authored
Support private courses
1 parent 98caaf9 commit 983bd31

1 file changed

Lines changed: 22 additions & 5 deletions

File tree

config.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,28 @@ before:
1313
title: Update the vulnerable dependency
1414
body: 03_update-dependency.md
1515
head: update-dependency
16-
- type: octokit
17-
method: 'repos.get'
18-
owner: '%user.username%'
19-
repo: '%course.template.name%'
20-
action_id: gotten_repo
16+
- type: gate
17+
left: '%course.private%'
18+
operator: ===
19+
right: true
20+
required: false
21+
else:
22+
type: octokit
23+
method: 'repos.get'
24+
owner: '%user.username%'
25+
repo: '%course.template.name%'
26+
action_id: gotten_repo
27+
- type: gate
28+
left: '%course.private%'
29+
operator: ===
30+
right: false
31+
required: false
32+
else:
33+
type: octokit
34+
method: 'repos.get'
35+
owner: '%user.username%'
36+
repo: '%user.username%-%course.template.name%'
37+
action_id: gotten_repo
2138
- type: createIssue
2239
title: Welcome
2340
body: 01a_class-introduction-issue.md

0 commit comments

Comments
 (0)