├── .all-contributorsrc
├── .gitattributes
├── .github
├── FUNDING.yml
├── ISSUE_TEMPLATE
│ ├── bug_report.yaml
│ └── feature_request.md
└── workflows
│ ├── _build.yaml
│ ├── pr.yaml
│ └── publish.yaml
├── .gitignore
├── .vscode
└── settings.json
├── LICENSE
├── README.md
├── src
├── .gitattributes
├── Commands
│ ├── ActionsToolWindowCommand.cs
│ ├── GotoRepoCommand.cs
│ ├── OpenSettingsCommand.cs
│ ├── RefreshRepoCommand.cs
│ └── ReportFeedbackCommand.cs
├── Converters
│ ├── ConclusionColorConverter.cs
│ ├── ConclusionIconConverter.cs
│ └── NullToVisibilityConverter.cs
├── GitHubActionsVS.csproj
├── GitHubActionsVS.sln
├── GitHubActionsVSPackage.cs
├── Helpers
│ ├── ConclusionFilter.cs
│ ├── CredentialManager.cs
│ └── RepoInfo.cs
├── LICENSE
├── Models
│ ├── BaseWorkflowType.cs
│ ├── SimpleEnvironment.cs
│ ├── SimpleJob.cs
│ └── SimpleRun.cs
├── Options
│ └── ExtensionOptions.cs
├── Properties
│ └── AssemblyInfo.cs
├── Resources
│ ├── AddItem.png
│ ├── CancelBuild.png
│ ├── Delete.png
│ ├── Edit.png
│ ├── GitHub.png
│ ├── Icon.png
│ ├── OpenWebSite.png
│ ├── Run.png
│ ├── UIStrings.Designer.cs
│ ├── UIStrings.resx
│ └── codicon.ttf
├── ToolWindows
│ ├── ActionsToolWindow.cs
│ ├── GHActionsToolWindow.xaml
│ ├── GHActionsToolWindow.xaml.cs
│ ├── MessageCommand.cs
│ ├── MessagePayload.cs
│ └── ToolWindowMessenger.cs
├── UserControls
│ ├── AddEditSecret.xaml
│ └── AddEditSecret.xaml.cs
├── VSCommandTable.cs
├── VSCommandTable.vsct
├── lib
│ └── win32
│ │ └── x64
│ │ └── git2-e632535.dll
├── libsodium.dll
├── source.extension.cs
└── source.extension.vsixmanifest
├── version.json
└── vs-publish.json
/.all-contributorsrc:
--------------------------------------------------------------------------------
1 | {
2 | "files": [
3 | "README.md"
4 | ],
5 | "imageSize": 100,
6 | "commit": false,
7 | "commitType": "docs",
8 | "commitConvention": "angular",
9 | "contributors": [
10 | {
11 | "login": "IEvangelist",
12 | "name": "David Pine",
13 | "avatar_url": "https://avatars.githubusercontent.com/u/7679720?v=4",
14 | "profile": "https://davidpine.net",
15 | "contributions": [
16 | "code",
17 | "doc"
18 | ]
19 | },
20 | {
21 | "login": "timheuer",
22 | "name": "Tim Heuer",
23 | "avatar_url": "https://avatars.githubusercontent.com/u/4821?v=4",
24 | "profile": "https://timheuer.com/blog/",
25 | "contributions": [
26 | "code",
27 | "doc"
28 | ]
29 | },
30 | {
31 | "login": "zlatanov",
32 | "name": "Ivan Zlatanov",
33 | "avatar_url": "https://avatars.githubusercontent.com/u/2470527?v=4",
34 | "profile": "https://github.com/zlatanov",
35 | "contributions": [
36 | "code"
37 | ]
38 | }
39 | ],
40 | "contributorsPerLine": 7,
41 | "skipCi": true,
42 | "repoType": "github",
43 | "repoHost": "https://github.com",
44 | "projectName": "GitHubActionsVS",
45 | "projectOwner": "timheuer"
46 | }
47 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [timheuer]
4 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.yaml:
--------------------------------------------------------------------------------
1 | name: Bug Report
2 | description: File a bug report
3 | title: "[BUG]: "
4 | labels: ["bug"]
5 | assignees:
6 | - timheuer
7 | body:
8 | - type: markdown
9 | attributes:
10 | value: |
11 | Thanks for taking the time to fill out this bug report!
12 | - type: textarea
13 | id: what-happened
14 | attributes:
15 | label: What happened?
16 | description: Also tell us, what did you expect to happen?
17 | placeholder: Tell us what you see!
18 | value: "A bug happened!"
19 | validations:
20 | required: true
21 | - type: input
22 | id: vsversion
23 | attributes:
24 | label: Visual Studio Version
25 | description: Copy the Visual Studio version from your Help...About Visual Studio menu
26 | placeholder: Version 17.8.5
27 | - type: textarea
28 | id: logs
29 | attributes:
30 | label: Relevant log output
31 | description: Please copy and paste any relevant log output. From the Output window for "GitHub Actions for VS"
32 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: enhancement
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Is your feature request related to a problem? Please describe.**
11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12 |
13 | **Describe the solution you'd like**
14 | A clear and concise description of what you want to happen.
15 |
16 | **Describe alternatives you've considered**
17 | A clear and concise description of any alternative solutions or features you've considered.
18 |
19 | **Additional context**
20 | Add any other context or screenshots about the feature request here.
21 |
--------------------------------------------------------------------------------
/.github/workflows/_build.yaml:
--------------------------------------------------------------------------------
1 | name: "Base build"
2 |
3 | on:
4 | workflow_call:
5 | outputs:
6 | version:
7 | description: 'Version of the build'
8 | value: ${{ jobs.build.outputs.version }}
9 | workflow_dispatch:
10 | inputs:
11 | Reason:
12 | description: 'Reason for the build'
13 |
14 | jobs:
15 | build:
16 | outputs:
17 | version: ${{ steps.vsix_version.outputs.SimpleVersion }}
18 | name: Build
19 | runs-on: windows-2022
20 | env:
21 | PROJECT_PATH: "src/GitHubActionsVS.sln"
22 | VsixManifestPath: src\source.extension.vsixmanifest
23 | VsixManifestSourcePath: src\source.extension.cs
24 |
25 | steps:
26 | - uses: actions/checkout@v4
27 | with:
28 | fetch-depth: 0
29 |
30 | - name: Version stamping
31 | id: vsix_version
32 | uses: dotnet/nbgv@v0.4
33 | with:
34 | setAllVars: true
35 |
36 | - name: 🧰 Setup .NET build dependencies
37 | uses: timheuer/bootstrap-dotnet@v1
38 | with:
39 | nuget: 'false'
40 | sdk: 'false'
41 | msbuild: 'true'
42 |
43 | - name: Increment VSIX version
44 | id: vsix_version_stamp
45 | uses: timheuer/vsix-version-stamp@v2
46 | with:
47 | manifest-file: ${{ env.VsixManifestPath }}
48 | vsix-token-source-file: ${{ env.VsixManifestSourcePath }}
49 | version-number: ${{ steps.vsix_version.outputs.SimpleVersion }}
50 |
51 | - name: 🏗️ Build
52 | run: msbuild ${{ env.PROJECT_PATH }} /p:Configuration=Release /v:m -restore /p:OutDir=\_built -bl
53 |
54 | - name: ⬆️ Upload artifact
55 | uses: actions/upload-artifact@v4
56 | with:
57 | name: msbuild.binlog
58 | path: msbuild.binlog
59 |
60 | - name: ⬆️ Upload artifact
61 | uses: actions/upload-artifact@v4
62 | with:
63 | name: ${{ github.event.repository.name }}.vsix
64 | path: /_built/**/*.vsix
65 |
66 | - name: Echo version
67 | run: |
68 | Write-Output ${{ steps.vsix_version.outputs.SimpleVersion }}
--------------------------------------------------------------------------------
/.github/workflows/pr.yaml:
--------------------------------------------------------------------------------
1 | name: "Build PR"
2 |
3 | on:
4 | pull_request:
5 | branches:
6 | - main
7 | paths-ignore:
8 | - '**/*.md'
9 | - '**/*.gitignore'
10 | - '**/*.gitattributes'
11 |
12 | jobs:
13 | build:
14 | name: Build and Test
15 | uses: ./.github/workflows/_build.yaml
--------------------------------------------------------------------------------
/.github/workflows/publish.yaml:
--------------------------------------------------------------------------------
1 | name: "Publish"
2 |
3 | on: workflow_dispatch
4 |
5 | jobs:
6 | build:
7 | name: Build and Test
8 | uses: ./.github/workflows/_build.yaml
9 |
10 | publish:
11 | needs: build
12 | environment:
13 | name: production
14 | url: https://marketplace.visualstudio.com/items?itemName=TimHeuer.GitHubActionsVS
15 | name: Publish
16 | runs-on: windows-2022
17 | permissions:
18 | contents: write
19 |
20 | env:
21 | VERSION: ${{ needs.build.outputs.version }}
22 |
23 | steps:
24 | - uses: actions/checkout@v4
25 | with:
26 | fetch-depth: 0
27 |
28 | - name: Download Package artifact
29 | uses: actions/download-artifact@v4
30 | with:
31 | name: ${{ github.event.repository.name }}.vsix
32 |
33 | - name: Tag and Release
34 | id: tag_release
35 | uses: softprops/action-gh-release@v1
36 | with:
37 | body: Release ${{ env.VERSION }}
38 | tag_name: ${{ env.VERSION }}
39 | generate_release_notes: true
40 | files: |
41 | **/*.vsix
42 |
43 | - name: Upload to VsixGallery
44 | uses: timheuer/openvsixpublish@v1
45 | with:
46 | vsix-file: ${{ github.event.repository.name }}.vsix
47 |
48 | - name: Publish extension to Marketplace
49 | #if: ${{ contains(github.event.head_commit.message, '[release]') }}
50 | continue-on-error: true # remove after VS bug fix
51 | uses: cezarypiatek/VsixPublisherAction@1.1
52 | with:
53 | extension-file: '${{ github.event.repository.name }}.vsix'
54 | publish-manifest-file: 'vs-publish.json'
55 | personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }}
56 |
57 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.rsuser
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 |
13 | # User-specific files (MonoDevelop/Xamarin Studio)
14 | *.userprefs
15 |
16 | # Mono auto generated files
17 | mono_crash.*
18 |
19 | # Build results
20 | [Dd]ebug/
21 | [Dd]ebugPublic/
22 | [Rr]elease/
23 | [Rr]eleases/
24 | [Aa][Rr][Mm]/
25 | bld/
26 | [Bb]in/
27 | [Oo]bj/
28 | [Oo]ut/
29 | [Ll]og/
30 | [Ll]ogs/
31 |
32 | # Visual Studio 2015/2017 cache/options directory
33 | .vs/
34 | # Uncomment if you have tasks that create the project's static files in wwwroot
35 | #wwwroot/
36 |
37 | # Visual Studio 2017 auto generated files
38 | Generated\ Files/
39 |
40 | # MSTest test Results
41 | [Tt]est[Rr]esult*/
42 | [Bb]uild[Ll]og.*
43 |
44 | # NUnit
45 | *.VisualState.xml
46 | TestResult.xml
47 | nunit-*.xml
48 |
49 | # Build Results of an ATL Project
50 | [Dd]ebugPS/
51 | [Rr]eleasePS/
52 | dlldata.c
53 |
54 | # Benchmark Results
55 | BenchmarkDotNet.Artifacts/
56 |
57 | # .NET Core
58 | project.lock.json
59 | project.fragment.lock.json
60 | artifacts/
61 |
62 | # ASP.NET Scaffolding
63 | ScaffoldingReadMe.txt
64 |
65 | # StyleCop
66 | StyleCopReport.xml
67 |
68 | # Files built by Visual Studio
69 | *_i.c
70 | *_p.c
71 | *_h.h
72 | *.ilk
73 | *.meta
74 | *.obj
75 | *.iobj
76 | *.pch
77 | *.pdb
78 | *.ipdb
79 | *.pgc
80 | *.pgd
81 | *.rsp
82 | *.sbr
83 | *.tlb
84 | *.tli
85 | *.tlh
86 | *.tmp
87 | *.tmp_proj
88 | *_wpftmp.csproj
89 | *.log
90 | *.vspscc
91 | *.vssscc
92 | .builds
93 | *.pidb
94 | *.svclog
95 | *.scc
96 |
97 | # Chutzpah Test files
98 | _Chutzpah*
99 |
100 | # Visual C++ cache files
101 | ipch/
102 | *.aps
103 | *.ncb
104 | *.opendb
105 | *.opensdf
106 | *.sdf
107 | *.cachefile
108 | *.VC.db
109 | *.VC.VC.opendb
110 |
111 | # Visual Studio profiler
112 | *.psess
113 | *.vsp
114 | *.vspx
115 | *.sap
116 |
117 | # Visual Studio Trace Files
118 | *.e2e
119 |
120 | # TFS 2012 Local Workspace
121 | $tf/
122 |
123 | # Guidance Automation Toolkit
124 | *.gpState
125 |
126 | # ReSharper is a .NET coding add-in
127 | _ReSharper*/
128 | *.[Rr]e[Ss]harper
129 | *.DotSettings.user
130 |
131 | # TeamCity is a build add-in
132 | _TeamCity*
133 |
134 | # DotCover is a Code Coverage Tool
135 | *.dotCover
136 |
137 | # AxoCover is a Code Coverage Tool
138 | .axoCover/*
139 | !.axoCover/settings.json
140 |
141 | # Coverlet is a free, cross platform Code Coverage Tool
142 | coverage*.json
143 | coverage*.xml
144 | coverage*.info
145 |
146 | # Visual Studio code coverage results
147 | *.coverage
148 | *.coveragexml
149 |
150 | # NCrunch
151 | _NCrunch_*
152 | .*crunch*.local.xml
153 | nCrunchTemp_*
154 |
155 | # MightyMoose
156 | *.mm.*
157 | AutoTest.Net/
158 |
159 | # Web workbench (sass)
160 | .sass-cache/
161 |
162 | # Installshield output folder
163 | [Ee]xpress/
164 |
165 | # DocProject is a documentation generator add-in
166 | DocProject/buildhelp/
167 | DocProject/Help/*.HxT
168 | DocProject/Help/*.HxC
169 | DocProject/Help/*.hhc
170 | DocProject/Help/*.hhk
171 | DocProject/Help/*.hhp
172 | DocProject/Help/Html2
173 | DocProject/Help/html
174 |
175 | # Click-Once directory
176 | publish/
177 |
178 | # Publish Web Output
179 | *.[Pp]ublish.xml
180 | *.azurePubxml
181 | # Note: Comment the next line if you want to checkin your web deploy settings,
182 | # but database connection strings (with potential passwords) will be unencrypted
183 | *.pubxml
184 | *.publishproj
185 |
186 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
187 | # checkin your Azure Web App publish settings, but sensitive information contained
188 | # in these scripts will be unencrypted
189 | PublishScripts/
190 |
191 | # NuGet Packages
192 | *.nupkg
193 | # NuGet Symbol Packages
194 | *.snupkg
195 | # The packages folder can be ignored because of Package Restore
196 | **/[Pp]ackages/*
197 | # except build/, which is used as an MSBuild target.
198 | !**/[Pp]ackages/build/
199 | # Uncomment if necessary however generally it will be regenerated when needed
200 | #!**/[Pp]ackages/repositories.config
201 | # NuGet v3's project.json files produces more ignorable files
202 | *.nuget.props
203 | *.nuget.targets
204 |
205 | # Microsoft Azure Build Output
206 | csx/
207 | *.build.csdef
208 |
209 | # Microsoft Azure Emulator
210 | ecf/
211 | rcf/
212 |
213 | # Windows Store app package directories and files
214 | AppPackages/
215 | BundleArtifacts/
216 | Package.StoreAssociation.xml
217 | _pkginfo.txt
218 | *.appx
219 | *.appxbundle
220 | *.appxupload
221 |
222 | # Visual Studio cache files
223 | # files ending in .cache can be ignored
224 | *.[Cc]ache
225 | # but keep track of directories ending in .cache
226 | !?*.[Cc]ache/
227 |
228 | # Others
229 | ClientBin/
230 | ~$*
231 | *~
232 | *.dbmdl
233 | *.dbproj.schemaview
234 | *.jfm
235 | *.pfx
236 | *.publishsettings
237 | orleans.codegen.cs
238 |
239 | # Including strong name files can present a security risk
240 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
241 | #*.snk
242 |
243 | # Since there are multiple workflows, uncomment next line to ignore bower_components
244 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
245 | #bower_components/
246 |
247 | # RIA/Silverlight projects
248 | Generated_Code/
249 |
250 | # Backup & report files from converting an old project file
251 | # to a newer Visual Studio version. Backup files are not needed,
252 | # because we have git ;-)
253 | _UpgradeReport_Files/
254 | Backup*/
255 | UpgradeLog*.XML
256 | UpgradeLog*.htm
257 | ServiceFabricBackup/
258 | *.rptproj.bak
259 |
260 | # SQL Server files
261 | *.mdf
262 | *.ldf
263 | *.ndf
264 |
265 | # Business Intelligence projects
266 | *.rdl.data
267 | *.bim.layout
268 | *.bim_*.settings
269 | *.rptproj.rsuser
270 | *- [Bb]ackup.rdl
271 | *- [Bb]ackup ([0-9]).rdl
272 | *- [Bb]ackup ([0-9][0-9]).rdl
273 |
274 | # Microsoft Fakes
275 | FakesAssemblies/
276 |
277 | # GhostDoc plugin setting file
278 | *.GhostDoc.xml
279 |
280 | # Node.js Tools for Visual Studio
281 | .ntvs_analysis.dat
282 | node_modules/
283 |
284 | # Visual Studio 6 build log
285 | *.plg
286 |
287 | # Visual Studio 6 workspace options file
288 | *.opt
289 |
290 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
291 | *.vbw
292 |
293 | # Visual Studio LightSwitch build output
294 | **/*.HTMLClient/GeneratedArtifacts
295 | **/*.DesktopClient/GeneratedArtifacts
296 | **/*.DesktopClient/ModelManifest.xml
297 | **/*.Server/GeneratedArtifacts
298 | **/*.Server/ModelManifest.xml
299 | _Pvt_Extensions
300 |
301 | # Paket dependency manager
302 | .paket/paket.exe
303 | paket-files/
304 |
305 | # FAKE - F# Make
306 | .fake/
307 |
308 | # CodeRush personal settings
309 | .cr/personal
310 |
311 | # Python Tools for Visual Studio (PTVS)
312 | __pycache__/
313 | *.pyc
314 |
315 | # Cake - Uncomment if you are using it
316 | # tools/**
317 | # !tools/packages.config
318 |
319 | # Tabs Studio
320 | *.tss
321 |
322 | # Telerik's JustMock configuration file
323 | *.jmconfig
324 |
325 | # BizTalk build output
326 | *.btp.cs
327 | *.btm.cs
328 | *.odx.cs
329 | *.xsd.cs
330 |
331 | # OpenCover UI analysis results
332 | OpenCover/
333 |
334 | # Azure Stream Analytics local run output
335 | ASALocalRun/
336 |
337 | # MSBuild Binary and Structured Log
338 | *.binlog
339 |
340 | # NVidia Nsight GPU debugger configuration file
341 | *.nvuser
342 |
343 | # MFractors (Xamarin productivity tool) working folder
344 | .mfractor/
345 |
346 | # Local History for Visual Studio
347 | .localhistory/
348 |
349 | # BeatPulse healthcheck temp database
350 | healthchecksdb
351 |
352 | # Backup folder for Package Reference Convert tool in Visual Studio 2017
353 | MigrationBackup/
354 |
355 | # Ionide (cross platform F# VS Code tools) working folder
356 | .ionide/
357 |
358 | # Fody - auto-generated XML schema
359 | FodyWeavers.xsd
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "dotnet.defaultSolution": "src/GitHubActionsVS.sln"
3 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 Tim Heuer
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [](https://github.com/timheuer/GitHubActionsVS/actions/workflows/_build.yaml)
2 | [](https://github.com/timheuer/GitHubActionsVS/)
3 | [](https://marketplace.visualstudio.com/items?itemName=TimHeuer.GitHubActionsVS)
4 |
5 |
6 | [](#contributors-)
7 |
8 |
9 | # GitHub Actions for Visual Studio
10 |
11 | The GitHub Actions extension lets you manage your workflows, view the workflow run history, and edit GitHub secrets.
12 |
13 |
14 |
15 |
16 | ## Features
17 |
18 | This extension mainly serves to provide a quick way to see the GitHub Actions for your open solution if identified as a GitHub.com repo. To view these, either right click on the solution or project in Solution Explorer and click "GitHub Actions" from the menu:
19 |
20 | 
21 |
22 | If an active solution exists and it is both a git and GitHub.com repository, the window will start querying the repository for Actions information on runs and secrets. A progress bar will be shown then you can expand to see the results.
23 |
24 | ### View workflow run history
25 |
26 | To view the history simply select a run and navigate through the tree view to see details. You can double-click on a leaf node to launch to the log point on the repo to view the rich log output.
27 |
28 | If you close and open a new project the window will be refreshed to represent the current state.
29 |
30 | Based on your settings you can enable 'polling' of active running workflows that are not in the `completed` status. This will refresh the Current Branch workflow runs until the state is completed.
31 |
32 | #### Limit run count retrieval
33 | By default a maximum of last 10 runs are retrieved. You can change this in the `Tools...Options` of Visual Studio and set an integer value.
34 |
35 | 
36 |
37 | #### Trigger a Workflow
38 | If your Workflows enable a dispatch capability you can trigger to run a workflow directly from Visual Studio:
39 |
40 | 
41 |
42 | #### Manually refresh
43 | You can manually refresh the view by clicking the refresh icon in the toolbar:
44 |
45 | 
46 |
47 | ### Edit GitHub secrets
48 | The limitation currently is this lists and enables editing of Repository-level secrets (not org or deployment environments yet).
49 |
50 | To add a secret right-click on the Repository Secrets node and select `Add Secret`
51 |
52 | 
53 |
54 | This will launch a modal dialog to add the repository secret. This is the same for edit (right-click on an existing secret) which will enable you to edit an existing one or delete.
55 |
56 | 
57 |
58 |
59 | ## Contributors
60 |
61 |
62 |
63 |
64 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 | ## Requirements
87 |
88 | Visual Studio 2022 17.6 or later is required to use this extension. Additionally since GitHub Actions is obviously a feature of GitHub, you will need to be attached to an active GitHub.com repository.
89 |
90 | ## Code of Conduct
91 |
92 | This project has adopted the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct). For more information see the Code of Conduct itself or contact project maintainers with any additional questions or comments or to report a violation.
93 |
--------------------------------------------------------------------------------
/src/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/src/Commands/ActionsToolWindowCommand.cs:
--------------------------------------------------------------------------------
1 | namespace GitHubActionsVS;
2 |
3 | [Command(PackageIds.ActionsCommand)]
4 | internal sealed class ActionsToolWindowCommand : BaseCommand
5 | {
6 | protected override Task ExecuteAsync(OleMenuCmdEventArgs e)
7 | {
8 | return ActionsToolWindow.ShowAsync();
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/Commands/GotoRepoCommand.cs:
--------------------------------------------------------------------------------
1 | using GitHubActionsVS.ToolWindows;
2 |
3 | namespace GitHubActionsVS;
4 |
5 | [Command(PackageIds.GotoRepoCommand)]
6 | internal sealed class GotoRepoCommand : BaseCommand
7 | {
8 | protected override async Task ExecuteAsync(OleMenuCmdEventArgs e)
9 | {
10 | await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
11 | ThreadHelper.JoinableTaskFactory.RunAsync(async () =>
12 | {
13 | await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
14 | ToolWindowMessenger messenger = await Package.GetServiceAsync();
15 | messenger.Send(new(MessageCommand.GotoRepo));
16 | }).FireAndForget();
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/Commands/OpenSettingsCommand.cs:
--------------------------------------------------------------------------------
1 | using GitHubActionsVS.ToolWindows;
2 |
3 | namespace GitHubActionsVS;
4 |
5 | [Command(PackageIds.OpenSettingsCommand)]
6 | internal sealed class OpenSettingsCommand : BaseCommand
7 | {
8 | protected override async Task ExecuteAsync(OleMenuCmdEventArgs e)
9 | {
10 | await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
11 | ThreadHelper.JoinableTaskFactory.RunAsync(async () =>
12 | {
13 | await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
14 | ToolWindowMessenger messenger = await Package.GetServiceAsync();
15 | messenger.Send(new(MessageCommand.OpenSettings));
16 | }).FireAndForget();
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/Commands/RefreshRepoCommand.cs:
--------------------------------------------------------------------------------
1 | using GitHubActionsVS.ToolWindows;
2 |
3 | namespace GitHubActionsVS;
4 |
5 | [Command(PackageIds.RefreshRepoCommand)]
6 | internal sealed class RefreshRepoCommand : BaseCommand
7 | {
8 | protected override async Task ExecuteAsync(OleMenuCmdEventArgs e)
9 | {
10 | await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
11 | ThreadHelper.JoinableTaskFactory.RunAsync(async () =>
12 | {
13 | await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
14 | ToolWindowMessenger messenger = await Package.GetServiceAsync();
15 | messenger.Send(new(MessageCommand.Refresh));
16 | }).FireAndForget();
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/Commands/ReportFeedbackCommand.cs:
--------------------------------------------------------------------------------
1 | using GitHubActionsVS.ToolWindows;
2 | using Microsoft.VisualStudio.Shell;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Linq;
6 | using System.Text;
7 | using System.Threading.Tasks;
8 |
9 | namespace GitHubActionsVS;
10 |
11 | [Command(PackageIds.ReportFeedbackCommand)]
12 | internal sealed class ReportFeedbackCommand : BaseCommand
13 | {
14 | protected override async Task ExecuteAsync(OleMenuCmdEventArgs e)
15 | {
16 | await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
17 | ThreadHelper.JoinableTaskFactory.RunAsync(async () =>
18 | {
19 | await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
20 | ToolWindowMessenger messenger = await Package.GetServiceAsync();
21 |
22 | var vsVersion = await VS.Shell.GetVsVersionAsync();
23 |
24 | messenger.Send(new(MessageCommand.ReportFeedback, vsVersion.ToString()));
25 | }).FireAndForget();
26 | }
27 | }
--------------------------------------------------------------------------------
/src/Converters/ConclusionColorConverter.cs:
--------------------------------------------------------------------------------
1 | using System.Globalization;
2 | using System.Windows.Data;
3 | using System.Windows.Media;
4 |
5 | namespace GitHubActionsVS.Converters;
6 |
7 | public class ConclusionColorConverter : IMultiValueConverter
8 | {
9 |
10 | public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
11 | {
12 | string status = values[0] as string;
13 | Brush defaultBrush = values[1] as Brush;
14 |
15 | return GetConclusionColor(status, defaultBrush);
16 | }
17 |
18 | public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
19 | {
20 | throw new NotImplementedException();
21 | }
22 |
23 | private Brush GetConclusionColor(string status, Brush inheritedBrush) => status.ToLowerInvariant() switch
24 | {
25 |
26 | "success" => new SolidColorBrush(Colors.Green),
27 | "failure" => new SolidColorBrush(Colors.Red),
28 | "startup_failure" => new SolidColorBrush(Colors.Red),
29 | "waiting" => new SolidColorBrush(Color.FromRgb(154, 103, 0)),
30 | _ => inheritedBrush,
31 | };
32 | }
33 |
--------------------------------------------------------------------------------
/src/Converters/ConclusionIconConverter.cs:
--------------------------------------------------------------------------------
1 | using System.Globalization;
2 | using System.Windows.Data;
3 |
4 | namespace GitHubActionsVS.Converters;
5 | public class ConclusionIconConverter : IValueConverter
6 | {
7 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
8 | {
9 | string status = value as string;
10 | return GetConclusionIndicator(status);
11 | }
12 |
13 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
14 | {
15 | return value;
16 | }
17 |
18 | private string GetConclusionIndicator(string status) => status.ToLowerInvariant() switch
19 | {
20 | "success" => "\uEBB3 ",
21 | "completed" => "\uEBB3 ",
22 | "failure" => "\uEC13 ",
23 | "startup_failure" => "\uEC13 ",
24 | "cancelled" => "\uEC19 ",
25 | "skipped" => "\uEABD ",
26 | "pending" => "\uEC15 ",
27 | "queued" => "\uEBA7 ",
28 | "requested" => "\uEBA7 ",
29 | "waiting" => "\uEA82 ",
30 | "inprogress" => "\uEA82 ",
31 | "in_progress" => "\uEA82 ",
32 | "warning" => "\uEC1F ",
33 | null => "\uEA82 ",
34 | _ => "\uEA74 ",
35 | };
36 | }
37 |
--------------------------------------------------------------------------------
/src/Converters/NullToVisibilityConverter.cs:
--------------------------------------------------------------------------------
1 | using GitHubActionsVS.Models;
2 | using System.Globalization;
3 | using System.Windows;
4 | using System.Windows.Data;
5 |
6 | namespace GitHubActionsVS.Converters;
7 | public class NullToVisibilityConverter : IValueConverter
8 | {
9 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
10 | {
11 | return value == null ? Visibility.Hidden: Visibility.Visible;
12 | }
13 |
14 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
15 | {
16 | throw new NotImplementedException();
17 | }
18 | }
19 |
20 | public class NullToBooleanConverter : IValueConverter
21 | {
22 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
23 | {
24 | return value == null ? false : true;
25 | }
26 |
27 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
28 | {
29 | throw new NotImplementedException();
30 | }
31 | }
32 |
33 | public class BoolToVisibilityConverter : IValueConverter
34 | {
35 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
36 | {
37 | return (bool)value ? Visibility.Visible : Visibility.Collapsed;
38 | }
39 |
40 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
41 | {
42 | throw new NotImplementedException();
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/GitHubActionsVS.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
5 | latest
6 |
7 |
8 |
9 | Debug
10 | AnyCPU
11 | 2.0
12 | {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
13 | {FBFFEFBA-F117-44A7-ACA1-3ECE4CC42310}
14 | Library
15 | Properties
16 | GitHubActionsVS
17 | GitHubActionsVS
18 | v4.8
19 | true
20 | true
21 | true
22 | true
23 | false
24 | true
25 | true
26 | Program
27 | $(DevEnvDir)devenv.exe
28 | /rootsuffix Exp
29 |
30 |
31 | true
32 | full
33 | false
34 | bin\Debug\
35 | DEBUG;TRACE
36 | prompt
37 | 4
38 |
39 |
40 | pdbonly
41 | true
42 | bin\Release\
43 | TRACE
44 | prompt
45 | 4
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 | True
68 | True
69 | UIStrings.resx
70 |
71 |
72 | True
73 | True
74 | source.extension.vsixmanifest
75 |
76 |
77 | GHActionsToolWindow.xaml
78 |
79 |
80 |
81 |
82 |
83 | AddEditSecret.xaml
84 |
85 |
86 | True
87 | True
88 | VSCommandTable.vsct
89 |
90 |
91 |
92 |
93 | Always
94 | true
95 |
96 |
97 |
98 |
99 |
100 | Always
101 | true
102 |
103 |
104 | Designer
105 | VsixManifestGenerator
106 | source.extension.cs
107 |
108 |
109 | true
110 | Always
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 | PreserveNewest
119 | true
120 |
121 |
122 |
123 |
124 | Menus.ctmenu
125 | VsctGenerator
126 | VSCommandTable.cs
127 |
128 |
129 |
130 |
131 |
132 | Designer
133 | MSBuild:Compile
134 |
135 |
136 | Designer
137 | MSBuild:Compile
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 | compile; build; native; contentfiles; analyzers; buildtransitive
153 |
154 |
155 | 1.0.2
156 |
157 |
158 | 1.1.1
159 | runtime; build; native; contentfiles; analyzers; buildtransitive
160 | all
161 |
162 |
163 | 0.3.4
164 |
165 |
166 | 2.14.1
167 |
168 |
169 | 0.27.2
170 |
171 |
172 | 2.0.320
173 |
174 |
175 | runtime; build; native; contentfiles; analyzers; buildtransitive
176 | all
177 |
178 |
179 | 3.6.133
180 | runtime; build; native; contentfiles; analyzers; buildtransitive
181 | all
182 |
183 |
184 | 7.1.0
185 |
186 |
187 | 1.3.3
188 |
189 |
190 |
191 |
192 | PublicResXFileCodeGenerator
193 | UIStrings.Designer.cs
194 | Designer
195 |
196 |
197 |
198 |
199 |
206 |
--------------------------------------------------------------------------------
/src/GitHubActionsVS.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.7.33723.381
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitHubActionsVS", "GitHubActionsVS.csproj", "{FBFFEFBA-F117-44A7-ACA1-3ECE4CC42310}"
7 | EndProject
8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{87129287-A684-4E35-B65F-C425C13F07F4}"
9 | ProjectSection(SolutionItems) = preProject
10 | ..\.gitignore = ..\.gitignore
11 | ..\README.md = ..\README.md
12 | ..\version.json = ..\version.json
13 | ..\vs-publish.json = ..\vs-publish.json
14 | EndProjectSection
15 | EndProject
16 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Workflows", "Workflows", "{8C868368-D330-4780-A683-AF741C00B754}"
17 | ProjectSection(SolutionItems) = preProject
18 | ..\.github\workflows\pr.yaml = ..\.github\workflows\pr.yaml
19 | ..\.github\workflows\publish.yaml = ..\.github\workflows\publish.yaml
20 | ..\.github\workflows\_build.yaml = ..\.github\workflows\_build.yaml
21 | EndProjectSection
22 | EndProject
23 | Global
24 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
25 | Debug|Any CPU = Debug|Any CPU
26 | Debug|arm64 = Debug|arm64
27 | Debug|x86 = Debug|x86
28 | Release|Any CPU = Release|Any CPU
29 | Release|arm64 = Release|arm64
30 | Release|x86 = Release|x86
31 | EndGlobalSection
32 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
33 | {FBFFEFBA-F117-44A7-ACA1-3ECE4CC42310}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34 | {FBFFEFBA-F117-44A7-ACA1-3ECE4CC42310}.Debug|Any CPU.Build.0 = Debug|Any CPU
35 | {FBFFEFBA-F117-44A7-ACA1-3ECE4CC42310}.Debug|arm64.ActiveCfg = Debug|arm64
36 | {FBFFEFBA-F117-44A7-ACA1-3ECE4CC42310}.Debug|arm64.Build.0 = Debug|arm64
37 | {FBFFEFBA-F117-44A7-ACA1-3ECE4CC42310}.Debug|x86.ActiveCfg = Debug|x86
38 | {FBFFEFBA-F117-44A7-ACA1-3ECE4CC42310}.Debug|x86.Build.0 = Debug|x86
39 | {FBFFEFBA-F117-44A7-ACA1-3ECE4CC42310}.Release|Any CPU.ActiveCfg = Release|Any CPU
40 | {FBFFEFBA-F117-44A7-ACA1-3ECE4CC42310}.Release|Any CPU.Build.0 = Release|Any CPU
41 | {FBFFEFBA-F117-44A7-ACA1-3ECE4CC42310}.Release|arm64.ActiveCfg = Release|arm64
42 | {FBFFEFBA-F117-44A7-ACA1-3ECE4CC42310}.Release|arm64.Build.0 = Release|arm64
43 | {FBFFEFBA-F117-44A7-ACA1-3ECE4CC42310}.Release|x86.ActiveCfg = Release|x86
44 | {FBFFEFBA-F117-44A7-ACA1-3ECE4CC42310}.Release|x86.Build.0 = Release|x86
45 | EndGlobalSection
46 | GlobalSection(SolutionProperties) = preSolution
47 | HideSolutionNode = FALSE
48 | EndGlobalSection
49 | GlobalSection(ExtensibilityGlobals) = postSolution
50 | SolutionGuid = {5543C1A6-7F82-45F0-9449-3CF513D538B0}
51 | EndGlobalSection
52 | EndGlobal
53 |
--------------------------------------------------------------------------------
/src/GitHubActionsVSPackage.cs:
--------------------------------------------------------------------------------
1 | global using Community.VisualStudio.Toolkit;
2 | global using Microsoft.VisualStudio.Shell;
3 | global using System;
4 | global using Task = System.Threading.Tasks.Task;
5 | using GitHubActionsVS.ToolWindows;
6 | using Microsoft.VisualStudio;
7 | using Microsoft.VisualStudio.Shell.Interop;
8 | using System.Runtime.InteropServices;
9 | using System.Threading;
10 |
11 | namespace GitHubActionsVS;
12 | [PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
13 | [ProvideAutoLoad(VSConstants.UICONTEXT.SolutionHasSingleProject_string, PackageAutoLoadFlags.BackgroundLoad)]
14 | [ProvideAutoLoad(VSConstants.UICONTEXT.SolutionHasMultipleProjects_string, PackageAutoLoadFlags.BackgroundLoad)]
15 | [InstalledProductRegistration(Vsix.Name, Vsix.Description, Vsix.Version)]
16 | [ProvideToolWindow(typeof(ActionsToolWindow.Pane), Style = VsDockStyle.Tabbed, Window = WindowGuids.SolutionExplorer)]
17 | [ProvideOptionPage(typeof(OptionsProvider.ExtensionOptionsOptions), "GitHub", "Actions", 0, 0, true, SupportsProfiles = true)]
18 | [ProvideMenuResource("Menus.ctmenu", 1)]
19 | [Guid(PackageGuids.GitHubActionsVSString)]
20 | [ProvideBindingPath]
21 | [ProvideService(typeof(ToolWindowMessenger), IsAsyncQueryable = true)]
22 | public sealed class GitHubActionsVSPackage : ToolkitPackage, IVsSolutionEvents
23 | {
24 | private IVsSolution _solution;
25 | private uint _cookie;
26 |
27 | protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress progress)
28 | {
29 | AddService(typeof(ToolWindowMessenger), (_, _, _) => Task.FromResult