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

Commit 12485d4

Browse files
committed
test approving pr vs removing protections
1 parent f2ab12f commit 12485d4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

config.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ steps:
8989
fileName: my-workflow.yml
9090
# End filepath verification
9191
#######################################################
92-
- type: removeBranchProtection
92+
# - type: removeBranchProtection
9393
- type: respond
9494
issue: Start here!
9595
with: new-pull-request.md
@@ -98,6 +98,9 @@ steps:
9898
- type: closeIssue
9999
issue: Start here!
100100

101+
- type: createReview
102+
body: pr-review.md
103+
event: APPROVE
101104
- type: respond
102105
with: 01_merge-workflow.md
103106
data:
@@ -108,7 +111,6 @@ steps:
108111
event: pull_request.closed
109112
link: "{{ repoUrl }}/pull/2"
110113
actions:
111-
# - type: updateBranchProtection
112114
- type: createIssue
113115
title: Create an issue comment with GitHub Script
114116
body: 02_workflow-triggered.md
@@ -118,6 +120,7 @@ steps:
118120
issue: Create my-workflow.yml
119121
data:
120122
issueURL: "%actions.triggerIssue.data.html_url%"
123+
# - type: updateBranchProtection
121124

122125
- title: Add another GitHub Script action
123126
description: Use GitHub Script to place this issue into a project board
@@ -230,7 +233,6 @@ steps:
230233
event: pull_request.closed
231234
link: "{{ repoUrl }}/issues/5"
232235
actions:
233-
- type: updateBranchProtection
234236
- type: createIssue
235237
title: Create an issue comment with GitHub Script
236238
body: 05_workflow-triggered.md
@@ -240,6 +242,7 @@ steps:
240242
issue: Update my-workflow.yml
241243
data:
242244
issueURL: "%actions.triggerIssue.data.html_url%"
245+
- type: updateBranchProtection
243246

244247
- title: Break your workflow into multiple steps
245248
description: Separate the workflow concerns by adding more steps

responses/pr-review.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
this is a test review

0 commit comments

Comments
 (0)