From 363c0d91970335d250b7a0a1e4277816caaa4735 Mon Sep 17 00:00:00 2001 From: Hector Alfaro Date: Tue, 7 Apr 2020 14:13:39 -0400 Subject: [PATCH 1/7] add troubleshooting information to first workflow run --- config.yml | 2 ++ responses/02_workflow-triggered.md | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/config.yml b/config.yml index 32ea40c..62a636d 100644 --- a/config.yml +++ b/config.yml @@ -138,6 +138,8 @@ steps: store: secondIssueNumber: "%result.data.number%" secondIssueUrl: "%result.data.html_url%" + data: + workflowEditUrl: '{{ repoUrl }}/edit/master/.github/workflows/my-workflow.yml' - type: respond with: new-issue.md issue: "%store.firstPullNumber%" diff --git a/responses/02_workflow-triggered.md b/responses/02_workflow-triggered.md index b523e6f..81dacfa 100644 --- a/responses/02_workflow-triggered.md +++ b/responses/02_workflow-triggered.md @@ -14,6 +14,14 @@ This means that every time an issue gets opened in this repository the GitHub Sc You should expect to see the result right here in this issue! +
+ Workflow not running? Click here for some troubleshooting. + +Try the following troubleshooting steps: +1. Click on the [Actions tab]({{ store.actionsUrl }}) to see the status of your workflow run. See [Managing a workflow run](https://help.github.com/en/actions/configuring-and-managing-workflows/managing-a-workflow-run) on GitHub Help for more information. +1. Edit your [workflow file]( {{ workflowEditUrl }}) and look for errors in the linter built into the browser. +1. Look for the [workflow trigger](https://help.github.com/en/actions/reference/events-that-trigger-workflows) and ensure you are performing an action that triggers that workflow. +
--- I'll respond in this issue after your workflow runs! From 96d10d65f755ef3f50c555fd67ea0d291b7680a7 Mon Sep 17 00:00:00 2001 From: Hector Alfaro Date: Tue, 7 Apr 2020 14:17:04 -0400 Subject: [PATCH 2/7] explain branch protections --- config.yml | 1 + responses/02_workflow-triggered.md | 2 ++ 2 files changed, 3 insertions(+) diff --git a/config.yml b/config.yml index 62a636d..dbd5e0c 100644 --- a/config.yml +++ b/config.yml @@ -140,6 +140,7 @@ steps: secondIssueUrl: "%result.data.html_url%" data: workflowEditUrl: '{{ repoUrl }}/edit/master/.github/workflows/my-workflow.yml' + branchSettingsUrl: '{{ repoUrl }}/settings/branches' - type: respond with: new-issue.md issue: "%store.firstPullNumber%" diff --git a/responses/02_workflow-triggered.md b/responses/02_workflow-triggered.md index 81dacfa..fbbb021 100644 --- a/responses/02_workflow-triggered.md +++ b/responses/02_workflow-triggered.md @@ -21,6 +21,8 @@ Try the following troubleshooting steps: 1. Click on the [Actions tab]({{ store.actionsUrl }}) to see the status of your workflow run. See [Managing a workflow run](https://help.github.com/en/actions/configuring-and-managing-workflows/managing-a-workflow-run) on GitHub Help for more information. 1. Edit your [workflow file]( {{ workflowEditUrl }}) and look for errors in the linter built into the browser. 1. Look for the [workflow trigger](https://help.github.com/en/actions/reference/events-that-trigger-workflows) and ensure you are performing an action that triggers that workflow. + +If you need to make changes to your code, remove the [master branch protection]({{ branchSettingsUrl }}) and merge your changes into the `master` branch. --- From f5856c3d7e0dc0fafc12da034db816659eebbd28 Mon Sep 17 00:00:00 2001 From: Hector Alfaro Date: Tue, 7 Apr 2020 14:22:30 -0400 Subject: [PATCH 3/7] add troubleshooting to remaining steps --- config.yml | 14 +++++++++++++- responses/02_workflow-triggered.md | 4 ++-- responses/05_workflow-triggered.md | 11 +++++++++++ 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/config.yml b/config.yml index dbd5e0c..c1c6ee8 100644 --- a/config.yml +++ b/config.yml @@ -15,6 +15,8 @@ template: # Repo artifacts # repositoryUrl # actionsUrl +# workflowEditUrl +# branchSettingsUrl # 1. (Issue) Start here! # welcomeIssueUrl # welcomeIssueNumber @@ -138,7 +140,6 @@ steps: store: secondIssueNumber: "%result.data.number%" secondIssueUrl: "%result.data.html_url%" - data: workflowEditUrl: '{{ repoUrl }}/edit/master/.github/workflows/my-workflow.yml' branchSettingsUrl: '{{ repoUrl }}/settings/branches' - type: respond @@ -384,6 +385,17 @@ steps: Like before, now we have to wait for the workflow to run so that we can see the results. +
+ Workflow not running? Click here for some troubleshooting. + + Try the following troubleshooting steps: + 1. Click on the [Actions tab]({{ store.actionsUrl }}) to see the status of your workflow run. See [Managing a workflow run](https://help.github.com/en/actions/configuring-and-managing-workflows/managing-a-workflow-run) on GitHub Help for more information. + 1. Edit your [workflow file]( {{ store.workflowEditUrl }}) and look for errors in the linter built into the browser. + 1. Look for the [workflow trigger](https://help.github.com/en/actions/reference/events-that-trigger-workflows) and ensure you are performing an action that triggers that workflow. + + If you need to make changes to your code, remove the [master branch protection]({{ store.branchSettingsUrl }}) and merge your changes into the `master` branch. +
+ --- I'll respond here once it has completed! diff --git a/responses/02_workflow-triggered.md b/responses/02_workflow-triggered.md index fbbb021..dbf1d05 100644 --- a/responses/02_workflow-triggered.md +++ b/responses/02_workflow-triggered.md @@ -19,10 +19,10 @@ You should expect to see the result right here in this issue! Try the following troubleshooting steps: 1. Click on the [Actions tab]({{ store.actionsUrl }}) to see the status of your workflow run. See [Managing a workflow run](https://help.github.com/en/actions/configuring-and-managing-workflows/managing-a-workflow-run) on GitHub Help for more information. -1. Edit your [workflow file]( {{ workflowEditUrl }}) and look for errors in the linter built into the browser. +1. Edit your [workflow file]( {{ store.workflowEditUrl }}) and look for errors in the linter built into the browser. 1. Look for the [workflow trigger](https://help.github.com/en/actions/reference/events-that-trigger-workflows) and ensure you are performing an action that triggers that workflow. -If you need to make changes to your code, remove the [master branch protection]({{ branchSettingsUrl }}) and merge your changes into the `master` branch. +If you need to make changes to your code, remove the [master branch protection]({{ store.branchSettingsUrl }}) and merge your changes into the `master` branch. --- diff --git a/responses/05_workflow-triggered.md b/responses/05_workflow-triggered.md index e8b660e..f308a22 100644 --- a/responses/05_workflow-triggered.md +++ b/responses/05_workflow-triggered.md @@ -2,6 +2,17 @@ Now that your updates have been merged and we've triggered the workflow we should see our workflow begin helping us automate the triage of new issues. +
+ Workflow not running? Click here for some troubleshooting. + +Try the following troubleshooting steps: +1. Click on the [Actions tab]({{ store.actionsUrl }}) to see the status of your workflow run. See [Managing a workflow run](https://help.github.com/en/actions/configuring-and-managing-workflows/managing-a-workflow-run) on GitHub Help for more information. +1. Edit your [workflow file]( {{ store.workflowEditUrl }}) and look for errors in the linter built into the browser. +1. Look for the [workflow trigger](https://help.github.com/en/actions/reference/events-that-trigger-workflows) and ensure you are performing an action that triggers that workflow. + +If you need to make changes to your code, remove the [master branch protection]({{ store.branchSettingsUrl }}) and merge your changes into the `master` branch. +
+ --- I'll respond once your workflow has completed! From cfac256adf6e2b58017dcaecf72ffc282962422c Mon Sep 17 00:00:00 2001 From: Hector Alfaro Date: Tue, 7 Apr 2020 16:06:12 -0400 Subject: [PATCH 4/7] store quicklinks earlier --- config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.yml b/config.yml index c1c6ee8..d5a5645 100644 --- a/config.yml +++ b/config.yml @@ -44,6 +44,8 @@ before: store: repositoryUrl: '{{ payload.repository.html_url }}' actionsUrl: '{{ payload.repository.html_url }}/actions' + workflowEditUrl: '{{ repoUrl }}/edit/master/.github/workflows/my-workflow.yml' + branchSettingsUrl: '{{ repoUrl }}/settings/branches' - type: createProjectBoard name: Learning Lab Project Board description: >- @@ -140,8 +142,6 @@ steps: store: secondIssueNumber: "%result.data.number%" secondIssueUrl: "%result.data.html_url%" - workflowEditUrl: '{{ repoUrl }}/edit/master/.github/workflows/my-workflow.yml' - branchSettingsUrl: '{{ repoUrl }}/settings/branches' - type: respond with: new-issue.md issue: "%store.firstPullNumber%" From ae515f629e1db145f1af86f88f4d8b3df2b6bc5a Mon Sep 17 00:00:00 2001 From: Hector Alfaro Date: Tue, 7 Apr 2020 16:11:28 -0400 Subject: [PATCH 5/7] fix quicklinks --- config.yml | 4 ++-- responses/02_workflow-triggered.md | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config.yml b/config.yml index d5a5645..0403d0c 100644 --- a/config.yml +++ b/config.yml @@ -44,8 +44,8 @@ before: store: repositoryUrl: '{{ payload.repository.html_url }}' actionsUrl: '{{ payload.repository.html_url }}/actions' - workflowEditUrl: '{{ repoUrl }}/edit/master/.github/workflows/my-workflow.yml' - branchSettingsUrl: '{{ repoUrl }}/settings/branches' + workflowEditUrl: '{{ payload.repository.html_url }}/edit/master/.github/workflows/my-workflow.yml' + branchSettingsUrl: '{{ payload.repository.html_url }}/settings/branches' - type: createProjectBoard name: Learning Lab Project Board description: >- diff --git a/responses/02_workflow-triggered.md b/responses/02_workflow-triggered.md index dbf1d05..9ca183c 100644 --- a/responses/02_workflow-triggered.md +++ b/responses/02_workflow-triggered.md @@ -24,6 +24,7 @@ Try the following troubleshooting steps: If you need to make changes to your code, remove the [master branch protection]({{ store.branchSettingsUrl }}) and merge your changes into the `master` branch. + --- I'll respond in this issue after your workflow runs! From f14518acaf13ca6d4a43bb2aaf8c7455964cadc7 Mon Sep 17 00:00:00 2001 From: Hector Alfaro Date: Tue, 7 Apr 2020 16:13:58 -0400 Subject: [PATCH 6/7] add raw tags --- responses/00_explain-gh-script.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/responses/00_explain-gh-script.md b/responses/00_explain-gh-script.md index 5665576..0944615 100644 --- a/responses/00_explain-gh-script.md +++ b/responses/00_explain-gh-script.md @@ -20,7 +20,7 @@ Okay, that doesn't seem so hard. Now that we know how to do it with Octokit let' ```yaml - uses: actions/github-script@0.8.0 with: - github-token: ${{secrets.GITHUB_TOKEN}} + github-token: {% raw %}${{secrets.GITHUB_TOKEN}}{% endraw %} script: | github.issues.createComment({ issue_number: context.issue.number, @@ -51,7 +51,7 @@ Again, that's not too hard at all. Now let's do the same thing, only using the G ```yml - uses: actions/github-script@0.8.0 with: - github-token: ${{secrets.GITHUB_TOKEN}} + github-token: {% raw %}${{secrets.GITHUB_TOKEN}}{% endraw %} script: | github.pull.create({ repo: github.context.repo.repo, From c85b02c29cef4d0c9c101e2be5bd14b3b11aebf6 Mon Sep 17 00:00:00 2001 From: Hector Alfaro Date: Tue, 7 Apr 2020 16:20:05 -0400 Subject: [PATCH 7/7] fix quotes for generic error message --- config.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config.yml b/config.yml index 0403d0c..abf744f 100644 --- a/config.yml +++ b/config.yml @@ -135,7 +135,7 @@ steps: - type: respond with: e-generic.md data: - expected: merge pull request '{{ store.firstPullNumber }}' + expected: 'merge pull request #{{ store.firstPullNumber }}' - type: createIssue title: Create an issue comment with GitHub Script body: 02_workflow-triggered.md @@ -253,7 +253,7 @@ steps: - type: respond with: e-generic.md data: - expected: merge pull request '{{ store.secondPullNumber }}' + expected: 'merge pull request #{{ store.secondPullNumber }}' - type: createIssue title: Comment and triage with GitHub Script body: 05_workflow-triggered.md @@ -352,7 +352,7 @@ steps: - type: respond with: e-generic.md data: - expected: push a commit to '{{ store.thirdPullNumber }}' + expected: 'push a commit to #{{ store.thirdPullNumber }}' - type: createReview body: 08_merge-workflow.md event: APPROVE @@ -373,7 +373,7 @@ steps: - type: respond with: e-generic.md data: - expected: merge pull request '{{ store.thirdPullNumber }}' + expected: 'merge pull request #{{ store.thirdPullNumber }}' - type: octokit action_id: triggerIssue method: issues.create pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy