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

Commit 33dc2d1

Browse files
committed
adding final responses
1 parent 2340370 commit 33dc2d1

File tree

5 files changed

+75
-10
lines changed

5 files changed

+75
-10
lines changed

config.yml

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ steps:
300300
with: 07_use-fs.md
301301
data:
302302
columnID: "%actions.listColumns.data.0.id%"
303-
quicklink: "%payload.repository.html_url%/edit/%payload.head.ref%/.github/workflows/my-workflow.yml"
303+
quicklink: "%payload.repository.html_url%/edit/%payload.repository.head.ref%/.github/workflows/my-workflow.yml"
304304

305305
- title: Merge the final workflow
306306
description: Merge the final workflow into the repository
@@ -311,8 +311,8 @@ steps:
311311
- type: respond
312312
with: 08_merge-workflow.md
313313

314-
- title: Course recap
315-
description: Final remarks on course content
314+
- title: See workflow results
315+
description: See the results of the final workflow run
316316
event: pull_request.closed
317317
link: "{{repoUrl}}/issue/7"
318318
actions:
@@ -324,13 +324,35 @@ steps:
324324
body: |
325325
## Great Job so far!
326326
327-
Like before, now we have to wait for the
328-
workflow to run so that we can see the results. I'll respond here once it has completed!
327+
Like before, now we have to wait for the workflow to run so that we can see the results.
328+
329+
---
330+
331+
I'll respond here once it has completed!
329332
labels: ["bug"]
333+
334+
- title: Open an issue
335+
description: Open another issue that does not contain the bug tag
336+
event: check_suite.completed
337+
link: "{{repoUrl}}/issue/7"
338+
actions:
330339
- type: respond
331340
with: 09_workflow-completed.md
332341
issue: 7
333-
# - type: createIssue
334-
# title: It's alive!
335-
# body: 09_workflow-triggered
336-
# action_id: triggerIssue
342+
- type: respond
343+
with: 09_issue-activity.md
344+
issue: 7
345+
data:
346+
quicklink: "%payload.repository.htm_url%/issues/new"
347+
348+
- title: Course recap
349+
description: Final notes on course
350+
event: check_suite.completed
351+
link: "{{repoUrl}}/issue/8"
352+
actions:
353+
- type: respond
354+
with: 10_workflow-completed.md
355+
issue: 8
356+
- type: respond
357+
with: 10_course-recap.md
358+
issue: 8

responses/09_issue-activity.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### :keyboard: Activity: Create a new issue in this repository
2+
3+
1. [Click here]({{quicklink}}) to quickly open a new issue
4+
1. Give the issue a name of your choosing
5+
1. Supply the issue with a body
6+
1. Be sure NOT to include the bug label on this issue
7+
1. Click the `Submit new issue` button
8+
9+
---
10+
11+
I'll respond in your new issue once you've opened it

responses/09_workflow-completed.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
# super awesome workflow has been triggered
1+
## Another workflow success
2+
3+
Great job yet again!
4+
5+
As you can see, there is now a more comprehensive response to a new issue being opened, and it's based on a template in this repository so it's easy to change in the future. Along with that change, this issue has now been added to the project board so that we can be reminded to triage it for work!
6+
7+
**What about all the extra logic?**
8+
9+
You're right! We added some expression logic to the workflow that will only add an issue to the project board, if it contains the `bug` label at the time of creation. Let's see if our logic works as intended!

responses/10_course-recap.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## What you learned
2+
3+
As we wrap this course up it's important that we revisit the learning points you encountered along the way.
4+
5+
**Things you learned in this course:**
6+
7+
- What GitHub Script is
8+
- How GitHub Script maps to octokit/rest.js
9+
- How to use the GitHub Script action in your workflow
10+
- By commenting when an issue is opened
11+
- By adding an issue to a project board when it is opened
12+
- How to read a file from the repository for use with GitHub Script
13+
- How to apply expressions to a workflow file
14+
15+
That should give you quite the start with incorporating the GitHub Script action into your workflows!
16+
17+
---
18+
19+
Congratulations on finishing this course. You will receive no further responses from me, however further action taken in this repo could trigger workflow runs, because of this we recommend commenting out the workflow file if you plan to keep this repository for notes!

responses/10_workflow-completed.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## Whoo hoo 🎉
2+
3+
Super awesome job @{{user.login}}! As you can see, your workflow still commented on this issue, but it did not add it to the project board!
4+
5+
Don't hesitate to experiment with changes to the current workflow to see if what kind of logic you can implement to change the response to an issue based on the conditions that surround your own software development lifecycle!

0 commit comments

Comments
 (0)