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

Commit 7ad5054

Browse files
committed
clean up the first step a bit
1 parent 6518b31 commit 7ad5054

File tree

2 files changed

+30
-22
lines changed

2 files changed

+30
-22
lines changed

config.yml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,24 @@ tags:
1111
template:
1212
repo: write-github-script-template
1313
name: write-github-script
14+
15+
# Repo artifacts
16+
# repositoryUrl
17+
# 1. (Issue) Start here!
18+
# welcomeIssueUrl
19+
# welcomeIssueNumber
20+
# 2. (PR) Learner created PR, "Automate issue response" possibly
21+
# firstPullNumber
22+
# firstPullUrl
23+
# 3. (Issue) Create an issue comment with GitHub Script
24+
# secondIssueNumber
25+
# secondIssueUrl
26+
1427
before:
1528
- type: updateBranchProtection
29+
store:
30+
repositoryUrl: '{{ payload.repository.html_url }}'
31+
actionsUrl: '{{ payload.repository.html_url }}/actions'
1632
- type: createProjectBoard
1733
name: Learning Lab Project Board
1834
description: >-
@@ -29,8 +45,8 @@ before:
2945
welcomeIssueUrl: "%result.data.html_url%"
3046
welcomeIssueNumber: "%result.data.number%"
3147
data:
32-
quicklink: "%payload.repository.html_url%/new/master?filename=.github/workflows/my-workflow.yml"
33-
actionsUrl: "%payload.repository.html_url%/actions/new"
48+
quicklink: "{{ store.repositoryUrl }}/new/master?filename=.github/workflows/my-workflow.yml"
49+
actionsUrl: "{{ store.repositoryUrl }}/actions/new"
3450
comments:
3551
- 00_explain-gh-script.md
3652
- 00_octokit-comparison.md
@@ -44,28 +60,16 @@ steps:
4460
- pull_request.edited
4561
link: "{{store.welcomeIssueUrl}}"
4662
actions:
47-
- type: gate
48-
left: "%payload.pull_request.title%"
49-
store:
50-
firstPullNumber: "%payload.pull_request.number%"
51-
firstPullUrl: "%payload.pull_request.html_url%"
52-
operator: ===
53-
right: Automate issue responses
54-
55-
# if those statments FAIL... do this
56-
else:
57-
- type: respond
58-
with: e-rename-pr.md
59-
data:
60-
title: Automate issue responses
61-
# if those gates === true Then do this stuff
62-
#######################################################
6363
# Validate the filepath for the my-workflow.yml file
6464
# get tree
6565
- type: getTree
6666
action_id: isInTree
6767
recursive: true
6868
sha: "%payload.pull_request.head.sha%"
69+
store:
70+
firstPullNumber: "%payload.pull_request.number%"
71+
firstPullUrl: "%payload.pull_request.html_url%"
72+
6973
# check for a file in a tree
7074
- type: gate
7175
left: "%actions.isInTree.data.tree%"

responses/00_welcome-activity.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,18 @@ Your repository can contain multiple **workflow** files that carry out a wide va
4949
```
5050
5151
1. Commit the workflow to a new branch.
52-
1. Create a pull request titled **Automate issue responses**.
52+
1. Create a pull request. I suggest a title like **Automate issue responses**.
5353
1. Supply the pull request body content and click `Create pull request`.
5454

55-
_It is important to place meaningful content into the body of the pull requests you create throughout this course. This repository will stay with you long after you complete the course. It is advisable that you use the body of the pull requests you create as a way to take long lived notes about thing you want to remember._
55+
<details><summary>About pull pull request titles and content</summary>
5656

57-
<details><summary>Suggested body content</summary>
57+
It is important to place meaningful content into the body of the pull requests you create. This repository will stay with you long after you complete the course. We recommend you use the body of your pull requests as a way to take long lived notes about thing you want to remember.
5858

59-
`Workflow files are the recipe for task automation. This is where actions are placed if I want to use them for a task.`
59+
In practice, good pull request titles and content convey information efficiently to your collaborators.
60+
61+
You can fill the body of this pull request with the following recommended content:
62+
63+
> Workflow files are the recipe for task automation. This is where actions are placed if I want to use them for a task.
6064

6165
</details>
6266

0 commit comments

Comments
 (0)