Skip to content

feat(item): Invoke-CreateDraftItem - #165

Merged
rulasg merged 1 commit into
mainfrom
new-projectdraftissue
Oct 19, 2025
Merged

feat(item): Invoke-CreateDraftItem#165
rulasg merged 1 commit into
mainfrom
new-projectdraftissue

Conversation

@rulasg

@rulasg rulasg commented Oct 19, 2025

Copy link
Copy Markdown
Owner

Introduce a GraphQL mutation to create draft items within a project, enhancing project management capabilities. This includes the implementation of necessary functions and tests to ensure functionality.

@@ -0,0 +1,52 @@
function Invoke-CreateDraftItem{

Check notice

Code scanning / PSScriptAnalyzer

The cmdlet 'Invoke-CreateDraftItem' does not have a help comment. Note

The cmdlet 'Invoke-CreateDraftItem' does not have a help comment.
Set-MyInvokeCommandAlias -Alias createDraftItem -Command 'Invoke-CreateDraftItem -ProjectId {projectid} -Title "{title}" -Body "{body}"'


function New-ProjectDraftIssue {

Check notice

Code scanning / PSScriptAnalyzer

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

The cmdlet 'New-ProjectDraftIssue' does not have a help comment.
Set-MyInvokeCommandAlias -Alias createDraftItem -Command 'Invoke-CreateDraftItem -ProjectId {projectid} -Title "{title}" -Body "{body}"'


function New-ProjectDraftIssue {

Check warning

Code scanning / PSScriptAnalyzer

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

Function 'New-ProjectDraftIssue' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'.
[Parameter(Mandatory,Position=0)][string]$Title,
[Parameter(Position=1)][string]$Body,
[Parameter()][switch]$NoCache,
[Parameter()][switch]$OpenOnCreation

Check warning

Code scanning / PSScriptAnalyzer

The parameter 'OpenOnCreation' has been declared but not used. Warning

The parameter 'OpenOnCreation' has been declared but not used.
@rulasg rulasg changed the title feat(graphql): add mutation for creating draft items with project details feat(item): Invoke-CreateDraftItem Oct 19, 2025
@rulasg
rulasg merged commit 5c5a632 into main Oct 19, 2025
3 checks passed
@rulasg
rulasg deleted the new-projectdraftissue branch October 19, 2025 11:10
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