Skip to content

Commit f41c15e

Browse files
authored
Merge pull request #1 from githubpartners/fix-config
Add logic for course
2 parents 920279c + 458a868 commit f41c15e

4 files changed

Lines changed: 39 additions & 17 deletions

File tree

config.yml

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,54 @@ template:
55
name: partner-bootcamp-actions
66
before:
77
- type: createIssue
8-
title: Setting up your environment!
8+
title: "Activity 1: Setting up your environment!"
99
body: new-issue.md
1010
labels:
1111
- provision probot app
12+
store:
13+
EnvironmentIssueUrl: '{{ result.data.html_url }}'
14+
EnvironmentIssueNumber: '{{ result.data.number }}'
1215
- type: createPullRequest
13-
title: Creating Azure Resources
16+
title: "Activity 2: Creating Azure Resources"
1417
body: create-azure-resources.md
1518
head: creating-azure-resources
19+
store:
20+
AzureSetupPRNumber: '{{ result.data.number }}'
21+
AzureSetupPRUrl: '{{ result.data.html_url }}'
22+
23+
- type: createPullRequest
24+
title: "Activity 3: Add a CI/CD workflow"
25+
head: add-ci-cd-workflow
26+
body: ci-cd-instructions.md
27+
28+
- type: createPullRequest
29+
title: "Activity 4: Add a probot feature"
30+
head: add-probot-feature
31+
body: probot-feature-instructions.md
32+
33+
- type: createPullRequest
34+
title: "Activity 5: Add a teardown workflow"
35+
head: add-teardown-workflow
36+
body: teardown-instructions.md
37+
38+
39+
1640
steps:
1741
- title: First step
1842
description: The first step in your course
1943
event: pull_request.closed
20-
link: "{{ repoUrl }}"
44+
link: "{{ store.EnvironmentIssueUrl }}"
2145
actions:
2246
# if the pull was merged then comment in the issue with steps
2347
# to trigger the workflow
24-
- type: gate
25-
every: true
26-
gates:
27-
- left: '%payload.action%'
28-
operator: ===
29-
right: closed
30-
- left: '%payload.pull_request.merged%'
31-
else:
32-
- type: closeIssue
33-
issue: Setting up your environment!
48+
- type: gate
49+
left: '{{ payload.pull_request.merged }}'
50+
else:
51+
- type: closeIssue
52+
issue: '{{ store.EnvironmentIssueNumber }}'
3453
# else if pull was simply closed, then also close the issue
3554
# and don't comment
36-
- type: respond
37-
with: trigger-azure-config.md
38-
issue: Setting up your environment!
39-
# Respond with "all-set" for next class... see you soon!
55+
- type: respond
56+
with: trigger-azure-config.md
57+
issue: Setting up your environment!
58+
# Respond with "all-set" for next class... see you soon!

responses/ci-cd-instructions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Here's some instructions about the CICD workflow
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Here's some instructions about this new probot feature we're introducing...

responses/teardown-instructions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hey, now we're gonna tear down the env...

0 commit comments

Comments
 (0)