10
10
* [ Querying Pull Requests] ( #querying-pull-requests )
11
11
* [ Querying Collaborators] ( #querying-collaborators )
12
12
* [ Querying Contributors] ( #querying-contributors )
13
- * [ Quering Team and Organization Membership] ( #querying-team-and-organization-membership )
13
+ * [ Querying Team and Organization Membership] ( #querying-team-and-organization-membership )
14
14
* [ Labels] ( #labels )
15
15
* [ Getting Labels for a Repository] ( #getting-labels-for-a-repository )
16
16
* [ Getting Labels for an issue] ( #getting-labels-for-an-issue )
56
56
* [ Get events from a repository] ( #get-events-from-a-repository )
57
57
* [ Get events from an issue] ( #get-events-from-an-issue )
58
58
* [ Get a single event] ( #get-a-single-event] )
59
+ * [ Projects] ( #Projects )
60
+ * [ Get projects for a repository] ( #get-projects-for-a-repository )
61
+ * [ Get projects for a user] ( #get-projects-for-a-user )
62
+ * [ Create a project] ( #create-a-project )
63
+ * [ Add a column to a project] ( #add-a-column-to-a-project )
64
+ * [ Add a card to a column] ( #add-a-card-to-a-column )
65
+ * [ Add an existing issue as a card to a column] ( #add-an-existing-issue-as-a-card-to-a-column )
66
+ * [ Move a card to be after a certain card in the same column] ( Move-a-card-to-be-after-a-certain-card-in-the-same-column )
67
+ * [ Move a card to the bottom of another column] ( Move-a-card-to-the-bottom-of-another-column )
59
68
* [ Advanced] ( #advanced )
60
69
* [ Migrating blog comments to GitHub issues] ( #migrating-blog-comments-to-github-issues )
61
70
@@ -271,7 +280,7 @@ Get-GitHubRepositoryContributor -OwnerName 'PowerShell' -RepositoryName 'PowerSh
271
280
Sort-Object
272
281
```
273
282
274
- #### Quering Team and Organization Membership
283
+ #### Querying Team and Organization Membership
275
284
276
285
``` powershell
277
286
$organizationMembers = Get-GitHubOrganizationMembers -OrganizationName 'OrganizationName'
@@ -304,7 +313,7 @@ New-GitHubLabel -OwnerName PowerShell -RepositoryName DesiredStateConfiguration
304
313
305
314
#### Removing a Label From a Repository
306
315
``` powershell
307
- Remove-GitHubLabel -OwnerName PowerShell -RepositoryName desiredstateconfiguration -Name TestLabel
316
+ Remove-GitHubLabel -OwnerName PowerShell -RepositoryName DesiredStateConfiguration -Name TestLabel
308
317
```
309
318
310
319
#### Adding Labels to an Issue
@@ -315,7 +324,7 @@ Add-GitHubIssueLabel -OwnerName $script:ownerName -RepositoryName $repositoryNam
315
324
316
325
#### Removing a Label From an Issue
317
326
``` powershell
318
- Remove-GitHubIssueLabel -OwnerName Microsoft -RepositoryName desiredstateconfiguration -Name TestLabel -Issue 1
327
+ Remove-GitHubIssueLabel -OwnerName Microsoft -RepositoryName DesiredStateConfiguration -Name TestLabel -Issue 1
319
328
```
320
329
321
330
#### Updating a Label With a New Name and Color
@@ -398,7 +407,7 @@ Get-GitHubCloneTraffic -OwnerName Microsoft -RepositoryName PowerShellForGitHub
398
407
399
408
#### Get assignees
400
409
``` powershell
401
- Get-GitHubAsignee -OwnerName Microsoft -RepositoryName PowerShellForGitHub
410
+ Get-GitHubAssignee -OwnerName Microsoft -RepositoryName PowerShellForGitHub
402
411
```
403
412
404
413
#### Check assignee permission
@@ -501,6 +510,50 @@ Get-GitHubEvent -OwnerName Microsoft -RepositoryName PowerShellForGitHub -EventI
501
510
502
511
----------
503
512
513
+ ### Projects
514
+
515
+ #### Get projects for a repository
516
+ ``` powershell
517
+ Get-GitHubProject -OwnerName Microsoft -RepositoryName PowerShellForGitHub
518
+ ```
519
+
520
+ #### Get projects for a user
521
+ ``` powershell
522
+ Get-GitHubProject -UserName octocat
523
+ ```
524
+
525
+ #### Create a project
526
+ ``` powershell
527
+ New-GitHubProject -OwnerName octocat -RepositoryName PowerShellForGitHub -Name TestProject
528
+ ```
529
+
530
+ #### Add a column to a project
531
+ ``` powershell
532
+ New-GitHubProjectColumn -Project 1 -Name 'To Do'
533
+ ```
534
+
535
+ #### Add a card to a column
536
+ ``` powershell
537
+ New-GitHubProjectCard -Column 2 -Note 'Fix this bug'
538
+ ```
539
+
540
+ #### Add an existing issue as a card to a column
541
+ ``` powershell
542
+ New-GitHubProjectCard -Column 2 -ContentId 3 -ContentType Issue
543
+ ```
544
+
545
+ #### Move a card to be after a certain card in the same column
546
+ ``` powershell
547
+ Move-GitHubProjectCard -Card 4 -After 5
548
+ ```
549
+
550
+ #### Move a card to the bottom of another column
551
+ ``` powershell
552
+ Move-GitHubProjectCard -Card 4 -ColumnId 6 -Bottom
553
+ ```
554
+
555
+ ----------
556
+
504
557
### Advanced
505
558
506
559
#### Migrating blog comments to GitHub issues
0 commit comments