Skip to content

Commit b43142e

Browse files
2 parents 522187a + 9bb5dfa commit b43142e

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

.github/workflows/IssueOpenedOrEdited.yml renamed to .github/workflows/TraceIssueClosed.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
name: Trace On Issue Opened Or Edited
1+
2+
name: Trace On Issue Closed
23
on:
34
issues:
45
types:
5-
- opened
6-
- edited
7-
workflow_dispatch:
6+
- closed
87
jobs:
98
TraceGitHubEvent:
109
runs-on: ubuntu-latest

GitHub/On/IssueComment.psd1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
'issue_comment'
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
#requires -Module PSDevOps
2+
Push-Location $PSScriptRoot
3+
24
New-GitHubWorkflow -Name "Analyze, Test, Tag, and Publish" -On Push, PullRequest, Demand -Job PowerShellStaticAnalysis, TestPowerShellOnLinux, TagReleaseAndPublish -Environment @{
35
SYSTEM_ACCESSTOKEN = '${{ secrets.AZUREDEVOPSPAT }}'
46
NoCoverage = $true
57
}|
6-
Set-Content .\.github\workflows\TestAndPublish.yml -Encoding UTF8 -PassThru
8+
Set-Content .\.github\workflows\TestAndPublish.yml -Encoding UTF8 -PassThru
9+
10+
11+
New-GitHubWorkflow -Name "Trace On Issue Opened Or Edited" -On IssueOpenedOrEdited -Job TraceGitHubEvent |
12+
Set-Content .\.github\workflows\TraceIssueOpenedOrEdited.yml -Encoding UTF8 -PassThru
13+
14+
New-GitHubWorkflow -Name "Trace On Issue Closed" -On IssueClosed -Job TraceGitHubEvent |
15+
Set-Content .\.github\workflows\TraceIssueClosed.yml -Encoding UTF8 -PassThru
16+
17+
New-GitHubWorkflow -Name "Trace On Issue Comment" -On IssueComment -Job TraceGitHubEvent |
18+
Set-Content .\.github\workflows\TraceIssueComment.yml -Encoding UTF8 -PassThru
19+
20+
Pop-Location

0 commit comments

Comments
 (0)