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

Commit 675f0a9

Browse files
authored
Merge pull request #117 from githubtraining/get-right-repo
Get data on the proper repo
2 parents 983bd31 + 5b86d4f commit 675f0a9

1 file changed

Lines changed: 5 additions & 22 deletions

File tree

config.yml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,11 @@ before:
1313
title: Update the vulnerable dependency
1414
body: 03_update-dependency.md
1515
head: update-dependency
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
16+
- type: octokit
17+
method: 'repos.get'
18+
owner: '%payload.repository.owner.login%'
19+
repo: '%payload.repository.name%'
20+
action_id: gotten_repo
3821
- type: createIssue
3922
title: Welcome
4023
body: 01a_class-introduction-issue.md

0 commit comments

Comments
 (0)