Skip to content

New GitHubProjectCard

Howard Wolosky edited this page Oct 5, 2020 · 2 revisions

New-GitHubProjectCard

SYNOPSIS

Creates a new card for a GitHub project.

SYNTAX

Note (Default)

New-GitHubProjectCard -Column <Int64> -Note <String> [-AccessToken <String>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

Issue

New-GitHubProjectCard -Column <Int64> -IssueId <Int64> [-AccessToken <String>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

PullRequest

New-GitHubProjectCard -Column <Int64> -PullRequestId <Int64> [-AccessToken <String>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

Creates a new card for a GitHub project.

The Git repo for this module can be found here: http://aka.ms/PowerShellForGitHub

EXAMPLES

EXAMPLE 1

New-GitHubProjectCard -Column 999999 -Note 'Note on card'

Creates a card on column 999999 with the note 'Note on card'.

EXAMPLE 2

New-GitHubProjectCard -Column 999999 -IssueId 888888

Creates a card on column 999999 for the issue with ID 888888.

EXAMPLE 3

New-GitHubProjectCard -Column 999999 -PullRequestId 888888

Creates a card on column 999999 for the pull request with ID 888888.

PARAMETERS

-AccessToken

If provided, this will be used as the AccessToken for authentication with the REST Api. Otherwise, will attempt to use the configured value or will run unauthenticated.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Column

ID of the column to create a card for.

Type: System.Int64
Parameter Sets: (All)
Aliases: ColumnId

Required: True
Position: Named
Default value: 0
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-IssueId

The ID of the issue you want to associate with this card (not to be confused with the Issue number which you see in the URL and can refer to with a hashtag).

Type: System.Int64
Parameter Sets: Issue
Aliases:

Required: True
Position: Named
Default value: 0
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Note

The name of the column to create.

Type: System.String
Parameter Sets: Note
Aliases: Content

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PullRequestId

The ID of the pull request you want to associate with this card (not to be confused with the Pull Request number which you see in the URL and can refer to with a hashtag).

Type: System.Int64
Parameter Sets: PullRequest
Aliases:

Required: True
Position: Named
Default value: 0
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

GitHub.IssueComment

GitHub.Issue

GitHub.PullRequest

GitHub.ProjectCard

GitHub.ProjectColumn

OUTPUTS

GitHub.ProjectCard

NOTES

RELATED LINKS

PowerShellForGitHub

Docs

PowerShellForGitHub

Functions

Clone this wiki locally