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

Commit 43519f9

Browse files
authored
Merge pull request #10 from githubtraining/manage-branch-protections
Include branch protection
2 parents cd3f042 + 49370ff commit 43519f9

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ before:
88
- type: createIssue
99
title: Welcome
1010
body: 00_welcome.md
11+
- type: updateBranchProtection
1112

1213
# Course artifacts:
1314
# 1. Issue: Welcome
@@ -44,6 +45,7 @@ steps:
4445
link: '{{ repoUrl }}/pull/2'
4546
event: pull_request.edited
4647
actions:
48+
- type: removeBranchProtection
4749
- type: respond
4850
with: 02_repo-owner-answer.md
4951

@@ -53,6 +55,7 @@ steps:
5355
link: '{{ repoUrl }}/pull/2'
5456
event: pull_request.closed
5557
actions:
58+
- type: updateBranchProtection
5659
- type: createPullRequest
5760
title: Create discoverable repos
5861
head: discoverable-repos
@@ -69,6 +72,7 @@ steps:
6972
link: '{{ repoUrl }}/pull/3'
7073
event: issue_comment.created
7174
actions:
75+
- type: removeBranchProtection
7276
- type: respond
7377
with: 04_discoverability-answer.md
7478

@@ -78,6 +82,7 @@ steps:
7882
link: '{{ repoUrl }}/pull/3'
7983
event: pull_request.closed
8084
actions:
85+
- type: updateBranchProtection
8186
- type: createPullRequest
8287
title: Issue and PR templates
8388
head: templates
@@ -94,6 +99,7 @@ steps:
9499
link: '{{ repoUrl }}/pull/4'
95100
event: pull_request.edited
96101
actions:
102+
- type: removeBranchProtection
97103
- type: respond
98104
with: 06_templates-answer.md
99105

@@ -103,6 +109,7 @@ steps:
103109
link: '{{ repoUrl }}/pull/4'
104110
event: pull_request.closed
105111
actions:
112+
- type: updateBranchProtection
106113
- type: createPullRequest
107114
title: Workflows
108115
head: workflows
@@ -119,6 +126,7 @@ steps:
119126
link: '{{ repoUrl }}/pull/5'
120127
event: pull_request.edited
121128
actions:
129+
- type: removeBranchProtection
122130
- type: respond
123131
with: 08_workflows-answer.md
124132

@@ -128,6 +136,7 @@ steps:
128136
link: '{{ repoUrl }}/pull/5'
129137
event: pull_request.closed
130138
actions:
139+
- type: updateBranchProtection
131140
- type: createPullRequest
132141
title: Managing projects on GitHub
133142
head: projects
@@ -144,6 +153,7 @@ steps:
144153
link: '{{ repoUrl }}/pull/6'
145154
event: pull_request.edited
146155
actions:
156+
- type: removeBranchProtection
147157
- type: respond
148158
with: 10_projects-answer.md
149159

@@ -153,6 +163,7 @@ steps:
153163
link: '{{ repoUrl }}/pull/6'
154164
event: pull_request.closed
155165
actions:
166+
- type: updateBranchProtection
156167
- type: createPullRequest
157168
title: Measuring success
158169
head: metrics
@@ -169,6 +180,7 @@ steps:
169180
link: '{{ repoUrl }}/pull/7'
170181
event: issue_comment.created
171182
actions:
183+
- type: removeBranchProtection
172184
- type: respond
173185
with: 12_metrics-answer.md
174186

@@ -178,6 +190,7 @@ steps:
178190
link: '{{ repoUrl }}/pull/7'
179191
event: pull_request.closed
180192
actions:
193+
- type: updateBranchProtection
181194
- type: createIssue
182195
title: Publish your toolkit
183196
body: 13_publish.md
@@ -193,6 +206,7 @@ steps:
193206
link: '{{ repoUrl }}/pull/8'
194207
event: deployment
195208
actions:
209+
- type: removeBranchProtection
196210
- type: respond
197211
issue: Publish your toolkit
198212
with: 14_congratulations.md

0 commit comments

Comments
 (0)