Fix leftover instances and refactor

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2025-04-27 19:34:44 +00:00
parent 004ad1f124
commit f2ad7a3481
13 changed files with 178 additions and 81 deletions

View file

@ -381,7 +381,7 @@ func (p Pool) MaxRunnersAsInt() int {
return int(p.MaxRunners)
}
func (p Pool) GithubEntity() (GithubEntity, error) {
func (p Pool) GetEntity() (GithubEntity, error) {
switch p.PoolType() {
case GithubEntityTypeRepository:
return GithubEntity{
@ -489,7 +489,7 @@ type ScaleSet struct {
LastMessageID int64 `json:"-"`
}
func (p ScaleSet) GithubEntity() (GithubEntity, error) {
func (p ScaleSet) GetEntity() (GithubEntity, error) {
switch p.ScaleSetType() {
case GithubEntityTypeRepository:
return GithubEntity{