Commit 09be1b5
authored
## Description
This pull request refactors PowerShell scripts for managing GitHub apps
and updates a property name in the `GitHubWorkflowRun` class for
consistency. The changes focus on improving code clarity, standardizing
naming conventions, and enhancing maintainability.
### 🌟 Updates to `GitHubWorkflowRun` class:
* Renamed the `RunStartedAt` property to `StartedAt` for consistency
with other properties.
* Updated the constructor to reflect the property name change from
`RunStartedAt` to `StartedAt`.
### Refactoring of GitHub app management scripts:
* Removed the `examples/Apps/AppManagement.ps1` example entirely,
consolidating its functionality into `examples/Apps/EnterpriseApps.ps1`
for better organization.
* Updated `examples/Apps/EnterpriseApps.ps1` to:
- Replace hardcoded app IDs with a more flexible `$ClientIDs` array.
- Introduce parameters for private key and client ID authentication
(`$PrivateKey` and `$ClientID`).
- Simplify organization filtering by using `$org.Name` instead of
`$org.login`.
## Type of change
<!-- Use the check-boxes [x] on the options that are relevant. -->
- [ ] 📖 [Docs]
- [ ] 🪲 [Fix]
- [ ] 🩹 [Patch]
- [ ] ⚠️ [Security fix]
- [x] 🚀 [Feature]
- [ ] 🌟 [Breaking change]
## Checklist
<!-- Use the check-boxes [x] on the options that are relevant. -->
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
1 parent 67650ba commit 09be1b5
File tree
3 files changed
+20
-47
lines changed- examples/Apps
- src/classes/public/Workflows
3 files changed
+20
-47
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
11 | 4 | | |
12 | | - | |
13 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
14 | 9 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
21 | 16 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
35 | 22 | | |
36 | 23 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
0 commit comments