Skip to content

Commit

Permalink
Merge pull request #458 from danger/this_pr
Browse files Browse the repository at this point in the history
Fixes to github.thisPR
  • Loading branch information
orta committed Dec 27, 2017
2 parents 9772aac + 53a1968 commit 46b7716
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ developers, so please limit technical // terminology to in here.

// ### Master

<<<<<<< HEAD

### 2.1.7

* Fix Codeship integration - [@caffodian][]
* Updates documentation dependencies - [@orta][]
* Fixes to running `danger` with params - [@orta][]
* Fixes for `danger pr` not acting like `danger` WRT async code - [@orta][]
* Fixes `tsconfig.json` parse to be JSON5 friendly - [@gantman][]
* Fixes for `danger.github.thisPR` to use the base metadata for a PR, I'm too used to branch workflows - [@orta][]

### 2.1.6

Expand Down
4 changes: 2 additions & 2 deletions source/platforms/GitHub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ export class GitHub {
APIMetadataForPR(pr: GitHubPRDSL): GitHubAPIPR {
return {
number: pr.number,
repo: pr.head.repo.name,
owner: pr.head.repo.owner.login,
repo: pr.base.repo.name,
owner: pr.base.repo.owner.login,
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion source/platforms/_tests/_github.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe("getPlatformDSLRepresentation", () => {

expect(dsl.thisPR).toEqual({
number: 327,
owner: "orta",
owner: "artsy",
repo: "emission",
})
})
Expand Down

0 comments on commit 46b7716

Please sign in to comment.