Skip to content

Commit 22e0ff7

Browse files
Merge pull request #87
Add `await` to Octokit method calls for consistent async behavior
2 parents 1ab3566 + 64c9dea commit 22e0ff7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils/repository.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export class Repository {
136136
`git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5`,
137137
);
138138

139-
return this._octokit.rest.pulls.create(<
139+
return await this._octokit.rest.pulls.create(<
140140
RestEndpointMethodTypes["pulls"]["create"]["parameters"]
141141
>{
142142
owner: this._config.repository?.owner,
@@ -165,7 +165,7 @@ export class Repository {
165165
return;
166166
}
167167

168-
return this._octokit.rest.issues.addAssignees(<
168+
return await this._octokit.rest.issues.addAssignees(<
169169
RestEndpointMethodTypes["issues"]["addAssignees"]["parameters"]
170170
>{
171171
owner: this._config.repository?.owner,
@@ -187,7 +187,7 @@ export class Repository {
187187
return;
188188
}
189189

190-
return this._octokit.rest.issues.addLabels(<
190+
return await this._octokit.rest.issues.addLabels(<
191191
RestEndpointMethodTypes["issues"]["addLabels"]["parameters"]
192192
>{
193193
owner: this._config.repository?.owner,

0 commit comments

Comments
 (0)