Commit 3f4d7e94 authored by leadream's avatar leadream

fix webhook variables missing

parent bd208eda
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -109,6 +109,8 @@ export default class Settings extends React.Component<Props> {
await this.changeVersion(branchName)
const { html_url } = await this.createCommitAndPR(branchName)
const { version, message, webhookData } = this.state
this.setState({
version: '',
message: '',
......@@ -117,7 +119,7 @@ export default class Settings extends React.Component<Props> {
prUrl: html_url
})
const { version, message, webhookData } = this.state
console.log(version, message)
if (webhookData) {
this.setState({isSending: true})
await sendNotification(webhookData, html_url, version, message)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment