Skip to content

feat(database): implement project and repository management functions#4

Merged
rulasg merged 11 commits into
mainfrom
improvements
Mar 13, 2026
Merged

feat(database): implement project and repository management functions#4
rulasg merged 11 commits into
mainfrom
improvements

Conversation

@rulasg

@rulasg rulasg commented Mar 13, 2026

Copy link
Copy Markdown
Owner

Introduce functions for managing GitHub projects and repositories, including creating issues, retrieving collaborators, and caching database results. Refactor existing code to utilize new functions for improved organization and maintainability.

return $dbstore
}

function Reset-DatabaseStore{

Check warning

Code scanning / PSScriptAnalyzer

Function 'Reset-DatabaseStore' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. Warning

Function 'Reset-DatabaseStore' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'.
Comment thread include/databaseV2.ps1
# Extra functions not needed by INCLUDE DATABASE V2
$function = "Reset-$($MODULE_NAME)DatabaseStore"
if(-not (Test-Path -Path function:$function)){
function Reset-MyModuleDatabaseStore{

Check warning

Code scanning / PSScriptAnalyzer

Function 'Reset-MyModuleDatabaseStore' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. Warning

Function 'Reset-MyModuleDatabaseStore' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'.
Comment thread include/databaseV2.ps1
return $ret
}

function Reset-DatabaseKey{

Check warning

Code scanning / PSScriptAnalyzer

Function 'Reset-DatabaseKey' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. Warning

Function 'Reset-DatabaseKey' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'.
@@ -0,0 +1,39 @@
function Get-GcDatabaseProjects{

Check warning

Code scanning / PSScriptAnalyzer

The cmdlet 'Get-GcDatabaseProjects' uses a plural noun. A singular noun should be used instead. Warning

The cmdlet 'Get-GcDatabaseProjects' uses a plural noun. A singular noun should be used instead.
return $db
}

function Save-GcDatabaseProjects{

Check warning

Code scanning / PSScriptAnalyzer

The cmdlet 'Save-GcDatabaseProjects' uses a plural noun. A singular noun should be used instead. Warning

The cmdlet 'Save-GcDatabaseProjects' uses a plural noun. A singular noun should be used instead.
return $all
} else {
$item = $all.$ItemId

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
if(-Not $item){
throw ("Item not found: "+$ItemId)
}

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
@@ -0,0 +1,30 @@
class ValidRepoNames : System.Management.Automation.IValidateSetValuesGenerator { [String[]] GetValidValues() { return GetValidRepoNames}}

function New-GcProjectItemIssue{

Check notice

Code scanning / PSScriptAnalyzer

The cmdlet 'New-GcProjectItemIssue' does not have a help comment. Note

The cmdlet 'New-GcProjectItemIssue' does not have a help comment.
Owner = $owner
ProjectNumber = $p.number
Url = $p.url

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
Url = $p.url

$result = Invoke-MyCommand -Command FindProjectByCreator -Parameters $params

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
@rulasg rulasg merged commit 62b801b into main Mar 13, 2026
3 checks passed
@rulasg rulasg deleted the improvements branch March 13, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants