Skip to content

Commit 6cc2950

Browse files
Updating module to 0.4.0 (#51)
* Updates the module version in the `.psd1` file * Updates CHANGELOG and CONTRIBUTING * Renamed `GitHubTraffic.ps1` -> `GitHubRepositoryTraffic.ps1` (and similar change for the test file) to follow the API hierarchy * Minor change to get param passing based on post-commit PR feedback
1 parent 8d2e76f commit 6cc2950

File tree

5 files changed

+29
-13
lines changed

5 files changed

+29
-13
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,29 @@
11
# PowerShellForGitHub PowerShell Module
22
## Changelog
33

4+
## [0.4.0](https://github.com/PowerShell/PowerShellForGitHub/tree/0.4.0) - (2018/11/16)
5+
### Features:
6+
+ Added support for the [Repository Traffic API's](https://developer.github.com/v3/repos/traffic/).
7+
8+
### Fixes:
9+
* Made NuGet dll retrieval more robust by preventing potential file access problems from being
10+
written to the error stream.
11+
* Prevented the possibility of Access Tokens from being written into the log file in plain text
12+
if explicitly passed-in
13+
14+
More Info:
15+
* [[pr]](https://github.com/PowerShell/PowerShellForGitHub/pull/48) | [[cl]](https://github.com/PowerShell/PowerHellForGitHub/commit/b614f4a0fbcb570ef462fea64f776ca85480de86)
16+
17+
* [[pr]](https://github.com/PowerShell/PowerShellForGitHub/pull/49) | [[cl]](https://github.com/PowerShell/PowerHellForGitHub/commit/8d2e76f9059f0939b892d08386fe43f0e2722bb0)
18+
19+
* [[pr]](https://github.com/PowerShell/PowerShellForGitHub/pull/50) | [[cl]](https://github.com/PowerShell/PowerHellForGitHub/commit/c6835f4cb1ef0e78e23a8195949eb9ad2555fd4a)
20+
21+
Authors:
22+
* [**@HowardWolosky**](https://github.com/HowardWolosky)
23+
* [**@joseartrivera**](https://github.com/joseartrivera)
24+
25+
------
26+
427
## [0.3.1](https://github.com/PowerShell/PowerShellForGitHub/tree/0.3.1) - (2018/11/13)
528
### Fixes:
629
* Minor static analysis issues fixed.

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ Thank you to all of our contributors, no matter how big or small the contributio
432432
- **[Josh Rolstad (@jrolstad)](https://github.com/jrolstad)**
433433
- **[Zachary Alexander (@zjalexander)](http://github.com/zjalexander)**
434434
- **[Andrew Dahl (@aedahl)](http://github.com/aedahl)**
435+
- **[Pepe Rivera (@joseartrivera)](https://github.com/joseartrivera)**
435436

436437
----------
437438

GitHubTraffic.ps1 renamed to GitHubRepositoryTraffic.ps1

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,8 @@ function Get-GitHubViewTraffic
248248
'Per' = $Per
249249
}
250250

251-
$getParams = @(
252-
"per=$Per"
253-
)
254-
255251
$params = @{
256-
'UriFragment' = "repos/$OwnerName/$RepositoryName/traffic/views`?" + ($getParams -join '&')
252+
'UriFragment' = "repos/$OwnerName/$RepositoryName/traffic/views`?per=$Per"
257253
'Method' = 'Get'
258254
'Description' = "Getting views for $RepositoryName"
259255
'AccessToken' = $AccessToken
@@ -344,12 +340,8 @@ function Get-GitHubCloneTraffic
344340
'Per' = $Per
345341
}
346342

347-
$getParams = @(
348-
"per=$Per"
349-
)
350-
351343
$params = @{
352-
'UriFragment' = "repos/$OwnerName/$RepositoryName/traffic/clones`?" + ($getParams -join '&')
344+
'UriFragment' = "repos/$OwnerName/$RepositoryName/traffic/clones`?per=$Per"
353345
'Method' = 'Get'
354346
'Description' = "Getting number of clones for $RepositoryName"
355347
'AccessToken' = $AccessToken

PowerShellForGitHub.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
CompanyName = 'Microsoft Corporation'
88
Copyright = 'Copyright (C) Microsoft Corporation. All rights reserved.'
99

10-
ModuleVersion = '0.3.1'
10+
ModuleVersion = '0.4.0'
1111
Description = 'PowerShell wrapper for GitHub API'
1212

1313
# Script module or binary module file associated with this manifest.
@@ -29,8 +29,8 @@
2929
'GitHubPullRequests.ps1',
3030
'GitHubRepositories.ps1',
3131
'GitHubRepositoryForks.ps1',
32+
'GitHubRepositoryTraffic.ps1',
3233
'GitHubTeams.ps1',
33-
'GitHubTraffic.ps1',
3434
'GitHubUsers.ps1',
3535
'NugetTools.ps1',
3636
'Telemetry.ps1')

Tests/GitHubTraffic.tests.ps1 renamed to Tests/GitHubRepositoryTraffic.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<#
55
.Synopsis
6-
Tests for GitHubRepositoryForks.ps1 module
6+
Tests for GitHubRepositoryTraffic.ps1 module
77
#>
88

99
[String] $root = Split-Path -Parent (Split-Path -Parent $Script:MyInvocation.MyCommand.Path)

0 commit comments

Comments
 (0)