Skip to content
Permalink
Browse files

Checkpoint-GithubIssue: Format commits as bullet list

  • Loading branch information...
apobekiaris committed Jun 11, 2019
1 parent ba91e6b commit 2ccfae4b4eae4e627fd1bd4dfa62ecb2e9be96d7
@@ -22,8 +22,8 @@ if ($needNewVersion) {
$data = Get-Content $file -Raw
$manifest = Invoke-Expression $data
$moduleVersion = New-Object System.Version($manifest.ModuleVersion)
"moduleVersion=$moduleVersion"
$c = New-Object System.Net.WebClient
"moduleVersion=$moduleVersion"
$readme = $c.DownloadString("https://raw.githubusercontent.com/$GitHubUser/XpandPwsh/master/ReadMe.md")
$needNewMinor = (Get-Command -Module XpandPwsh) | Where-Object { $readme -notmatch $_.Name } | Select-Object -First 1
"needNewMinor=$needNewMinor"
@@ -84,9 +84,9 @@ public class CheckpointGitHubIssue : GitHubCmdlet{
var objects = new object[] {
new{
Options = this,
Commits = string.Join(",",
Commits = string.Join(Environment.NewLine,
_.commits.Select(commit =>
$@"[{commit.Commit.Message}](https://github.com/{Organization}/{repositoryName}/commit/{commit.Sha})"))
$@"* [{commit.Commit.Message}](https://github.com/{Organization}/{repositoryName}/commit/{commit.Sha})"))
}
};
var comment = Smart.Format(Message, objects);

0 comments on commit 2ccfae4

Please sign in to comment.
You can’t perform that action at this time.