Skip to content

Commit 8a6578b

Browse files
committed
change to lowercase
1 parent 0ab7f98 commit 8a6578b

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/github.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {graphql} from '@octokit/graphql'
22
import shell from 'shelljs'
3-
import * as core from '@actions/core'
43

54
// Regexes to find the changelog contents within a PR.
65
const FIXES_REGEX = /^CHANGELOG-FIXES:(.*)/gm
@@ -43,7 +42,7 @@ export async function generateChangelog(
4342
for (const release of releases) {
4443
// Only consider releases of the same type as the current channel.
4544
if (
46-
release.name.startsWith(channel) &&
45+
release.name.toLowerCase().startsWith(channel) &&
4746
!release.version.startsWith(
4847
currentVersion.substring(0, currentVersion.length - 1 - 2)
4948
)
@@ -67,9 +66,7 @@ export async function generateChangelog(
6766
`git --no-pager log ${lastReleaseVersion}...${currentVersion} --pretty=format:%H`,
6867
{silent: true}
6968
)
70-
core.info(`Executed git log with output ${command}`)
7169

72-
core.info(`Executed git log with output ${command.stderr}`)
7370
const commits = command.stdout.trim().split('\n')
7471
const pullRequestMetadata = await fetchPullRequestBodyFromCommits(
7572
commits,
@@ -88,8 +85,6 @@ async function fetchPullRequestBodyFromCommits(
8885
commits: string[],
8986
graphqlWithAuth: Function
9087
): Promise<string[]> {
91-
core.info(`generated commits ${commits}`)
92-
9388
let commitsSubQuery = ''
9489
for (const oid of commits) {
9590
commitsSubQuery += `
@@ -109,8 +104,6 @@ async function fetchPullRequestBodyFromCommits(
109104
`
110105
}
111106

112-
core.info(`Final subqery is ${commitsSubQuery}`)
113-
114107
const response = await graphqlWithAuth(`
115108
{
116109
repository(owner: "warpdotdev", name: "warp-internal") {
@@ -119,8 +112,6 @@ async function fetchPullRequestBodyFromCommits(
119112
}
120113
`)
121114

122-
core.info(`response is ${response}`)
123-
124115
const commitsInfo: string[] = []
125116
for (const oid of commits) {
126117
const commitResponse = response.repository[`commit_${oid}`]

src/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ async function run(): Promise<void> {
88
})
99
const current_version: string = core.getInput('version', {required: true})
1010
const channel: string = core.getInput('channel', {required: true})
11-
core.info(`Debug message`)
1211

1312
const changelog = await generateChangelog(
1413
github_auth_token,

0 commit comments

Comments
 (0)