We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49c2c63 commit 66f05feCopy full SHA for 66f05fe
src/generate-changelog.ts
@@ -117,21 +117,23 @@ async function fetchPullRequestBodyFromCommits(
117
): Promise<string[]> {
118
let commitsSubQuery = ''
119
for (const oid of commits) {
120
- commitsSubQuery += `
121
- commit_${oid}: object(oid: "${oid}") {
122
- ... on Commit {
123
- oid
124
- author {
125
- name
126
- }
127
- associatedPullRequests(first: 1) {
128
- nodes {
129
- body
130
+ if (oid) {
+ commitsSubQuery += `
+ commit_${oid}: object(oid: "${oid}") {
+ ... on Commit {
+ oid
+ author {
+ name
+ }
+ associatedPullRequests(first: 1) {
+ nodes {
+ body
131
}
132
133
134
- `
135
+ `
136
137
138
139
const response = await graphqlWithAuth(`
0 commit comments