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

Commit

Permalink
Merge pull request #63 from githubtraining/debug
Browse files Browse the repository at this point in the history
Remove first gate checking PR title
  • Loading branch information
brianamarie authored Dec 2, 2020
2 parents a8e3d3c + ff6aa8f commit 80403b3
Showing 1 changed file with 23 additions and 31 deletions.
54 changes: 23 additions & 31 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,11 @@ steps:
link: '{{ repoUrl }}/issues/1'
video: https://www.youtube.com/embed/RlDJqryBkkI
actions:
- type: gate
left: '%payload.pull_request.title%'
right: Changes
operator: ===
else:
- type: respond
with: Make sure the title of your PR is "Changes"
issue: Welcome to React
- type: closeIssue
issue: Welcome to React
- type: respond
with: 01_components.md
issue: Changes
issue: 2
- type: createPullRequestComment
body: 01_header-component-activity.md
file: src/App.jsx
Expand All @@ -51,7 +43,7 @@ steps:
operator: ===
right: refs/heads/changes
- type: getPullRequest
pullRequest: Changes
pullRequest: 2
action_id: metaPR2
- type: getFileContents
action_id: fileContents
Expand All @@ -63,10 +55,10 @@ steps:
else:
- type: respond
with: 02_bad-header.md
issue: Changes
issue: 2
- type: respond
with: 02_props.md
issue: Changes
issue: 2
- type: createPullRequestComment
body: 02_import-child-component-activity.md
file: src/App.jsx
Expand All @@ -85,7 +77,7 @@ steps:
operator: ===
right: refs/heads/changes
- type: getPullRequest
pullRequest: Changes
pullRequest: 2
action_id: metaPR2
- type: getFileContents
action_id: fileContents
Expand All @@ -97,7 +89,7 @@ steps:
else:
- type: respond
with: 03_bad-import.md
issue: Changes
issue: 2
- type: createPullRequestComment
body: 03_uncomment-assignments-activity.md
file: src/App.jsx
Expand All @@ -116,7 +108,7 @@ steps:
operator: ===
right: refs/heads/changes
- type: getPullRequest
pullRequest: Changes
pullRequest: 2
action_id: metaPR2
- type: getFileContents
action_id: fileContents
Expand All @@ -128,7 +120,7 @@ steps:
else:
- type: respond
with: 04_bad-uncomment.md
issue: Changes
issue: 2
- type: createPullRequestComment
body: 04_replace-title-activity.md
file: src/List.jsx
Expand All @@ -147,7 +139,7 @@ steps:
operator: ===
right: refs/heads/changes
- type: getPullRequest
pullRequest: Changes
pullRequest: 2
action_id: metaPR2
- type: getFileContents
action_id: fileContents
Expand All @@ -159,10 +151,10 @@ steps:
else:
- type: respond
with: 05_bad-prop.md
issue: Changes
issue: 2
- type: respond
with: 05_state.md
issue: Changes
issue: 2
- type: createPullRequestComment
body: 05_add-state-variable-activity.md
file: src/App.jsx
Expand All @@ -181,7 +173,7 @@ steps:
operator: ===
right: refs/heads/changes
- type: getPullRequest
pullRequest: Changes
pullRequest: 2
action_id: metaPR2
- type: getFileContents
action_id: fileContents
Expand All @@ -193,7 +185,7 @@ steps:
else:
- type: respond
with: 06_bad-state.md
issue: Changes
issue: 2
- type: createPullRequestComment
body: 06_explaining-this-state-activity.md
file: src/App.jsx
Expand All @@ -217,7 +209,7 @@ steps:
operator: ===
right: refs/heads/changes
- type: getPullRequest
pullRequest: Changes
pullRequest: 2
action_id: metaPR2
- type: getFileContents
action_id: fileContents
Expand All @@ -229,7 +221,7 @@ steps:
else:
- type: respond
with: 07_bad-function.md
issue: Changes
issue: 2
- type: createPullRequestComment
body: 07_bind-function-activity.md
file: src/App.jsx
Expand All @@ -248,7 +240,7 @@ steps:
operator: ===
right: refs/heads/changes
- type: getPullRequest
pullRequest: Changes
pullRequest: 2
action_id: metaPR2
- type: getFileContents
action_id: fileContents
Expand All @@ -260,10 +252,10 @@ steps:
else:
- type: respond
with: 04_bad-uncomment.md
issue: Changes
issue: 2
- type: respond
with: 08_callbackfunctions.md
issue: Changes
issue: 2
- type: createPullRequestComment
body: 08_passing-functions-activity.md
file: src/App.jsx
Expand All @@ -287,7 +279,7 @@ steps:
operator: ===
right: refs/heads/changes
- type: getPullRequest
pullRequest: Changes
pullRequest: 2
action_id: metaPR2
- type: getFileContents
action_id: fileContents
Expand All @@ -299,7 +291,7 @@ steps:
else:
- type: respond
with: 09_bad-replace.md
issue: Changes
issue: 2
- type: createPullRequestComment
body: 09_uncomment-grades-activity.md
file: src/App.jsx
Expand All @@ -326,11 +318,11 @@ steps:
else:
- type: respond
with: 04_bad-uncomment.md
issue: Changes
issue: 2
- type: createReview
event: APPROVE
body: 10_approve.md
pullRequest: Changes
pullRequest: 2

# Step 11: Merge pull request
- title: Merge your pull request
Expand All @@ -340,5 +332,5 @@ steps:
actions:
- type: respond
with: 11_congrats.md
issue: Changes
issue: 2

0 comments on commit 80403b3

Please sign in to comment.