Skip to content

Commit

Permalink
fix: update pull request metadata when creating comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Apr 17, 2023
1 parent 315cc82 commit 444aedd
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 10 deletions.
5 changes: 3 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/metadata.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/metadata.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/pull-request.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion dist/pull-request.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/pull-request.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class Metadata {
'advanced-commit-linter',
context.repo({
headers: {
authorization: getInput('token', { required: true }),
authorization: `Bearer ${getInput('token', { required: true })}`,
},
})
);
Expand Down
3 changes: 2 additions & 1 deletion src/pull-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export class PullRequest {
return;
}

return commentPayload.id;
this.metadata.commentID = commentPayload.id.toString();
await this.metadata.setMetadata();
}

private async createComment(
Expand Down

0 comments on commit 444aedd

Please sign in to comment.