Skip to content

Commit

Permalink
Fix build status
Browse files Browse the repository at this point in the history
  • Loading branch information
azz committed Feb 25, 2018
1 parent ca4b9ba commit c5cf5b3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/danger.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ declare module "danger" {
*/

interface BitBucketServerPRDSL {
id: string
id: number
version: number
title: string
description: string
Expand Down
2 changes: 1 addition & 1 deletion source/platforms/BitBucketServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class BitBucketServer implements Platform {

updateStatus = async (passed: boolean, message: string, url?: string): Promise<boolean> => {
const pr = await this.api.getPullRequestInfo()
const { latestCommit } = pr.toRef
const { latestCommit } = pr.fromRef
try {
await this.api.postBuildStatus(latestCommit, {
state: passed ? "SUCCESSFUL" : "FAILED",
Expand Down
1 change: 1 addition & 0 deletions source/platforms/bitbucket_server/BitBucketServerAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export class BitBucketServerAPI {
}
) => {
const res = await this.post(`rest/build-status/1.0/commits/${commitId}`, {}, payload)
throwIfNotOk(res)
return await res.json()
}

Expand Down
2 changes: 1 addition & 1 deletion source/runner/templates/bitbucketServerTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const dangerSignaturePostfix = `_Generated by 🚫 [dangerJS](http://gith
export function template(dangerID: string, results: DangerResults): string {
return `
${resultsSection("Fails", "🚫", results.fails)}
${resultsSection("Warnings", "⚠", results.warnings)}
${resultsSection("Warnings", "⚠", results.warnings)}
${resultsSection("Messages", "📖", results.messages)}
---
Expand Down

0 comments on commit c5cf5b3

Please sign in to comment.