From 05b0046071d3af003129cd61a04515b83560928d Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 26 Jan 2025 13:32:59 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Refactor=20GitHubConf?= =?UTF-8?q?ig=20and=20GitHubContext=20classes=20to=20remove=20inheritance?= =?UTF-8?q?=20and=20add=20context=20ID=20property?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/classes/public/Config/GitHubConfig.ps1 | 5 ++++- src/classes/public/Context/GitHubContext.ps1 | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/classes/public/Config/GitHubConfig.ps1 b/src/classes/public/Config/GitHubConfig.ps1 index c0bec028e..1773ef9cd 100644 --- a/src/classes/public/Config/GitHubConfig.ps1 +++ b/src/classes/public/Config/GitHubConfig.ps1 @@ -1,4 +1,7 @@ -class GitHubConfig : Context { +class GitHubConfig { + # The context ID. + [string] $ID + # The access token grace period in hours. [int] $AccessTokenGracePeriodInHours diff --git a/src/classes/public/Context/GitHubContext.ps1 b/src/classes/public/Context/GitHubContext.ps1 index f7c6df4fc..eb4701ca6 100644 --- a/src/classes/public/Context/GitHubContext.ps1 +++ b/src/classes/public/Context/GitHubContext.ps1 @@ -1,4 +1,7 @@ -class GitHubContext : Context { +class GitHubContext { + # The context ID. + [string] $ID + # The GitHub Context Name. # HostName/Username or HostName/AppSlug # github.com/Octocat