-
-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,266 additions
and
0 deletions.
There are no files selected for viewing
274 changes: 274 additions & 0 deletions
274
source/platforms/_tests/fixtures/bitbucket_server_activities.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,274 @@ | ||
[ | ||
{ | ||
"id": 61, | ||
"createdDate": 1519442356495, | ||
"user": { | ||
"name": "test", | ||
"emailAddress": "foo@bar.com", | ||
"id": 1, | ||
"displayName": "test", | ||
"active": true, | ||
"slug": "test", | ||
"type": "NORMAL", | ||
"links": { "self": [{ "href": "http://localhost:7990/users/test" }] } | ||
}, | ||
"action": "RESCOPED", | ||
"fromHash": "d6725486c38d46a33e76f622cf24b9a388c8d13d", | ||
"previousFromHash": "c62ada76533a2de045d4c6062988ba84df140729", | ||
"previousToHash": "8942a1f75e4c95df836f19ef681d20a87da2ee20", | ||
"toHash": "8942a1f75e4c95df836f19ef681d20a87da2ee20", | ||
"added": { | ||
"commits": [ | ||
{ | ||
"id": "d6725486c38d46a33e76f622cf24b9a388c8d13d", | ||
"displayId": "d6725486c38", | ||
"author": { | ||
"name": "danger", | ||
"emailAddress": "foo@bar.com", | ||
"id": 2, | ||
"displayName": "DangerCI", | ||
"active": true, | ||
"slug": "danger", | ||
"type": "NORMAL", | ||
"links": { "self": [{ "href": "http://localhost:7990/users/danger" }] } | ||
}, | ||
"authorTimestamp": 1519442341000, | ||
"committer": { | ||
"name": "danger", | ||
"emailAddress": "foo@bar.com", | ||
"id": 2, | ||
"displayName": "DangerCI", | ||
"active": true, | ||
"slug": "danger", | ||
"type": "NORMAL", | ||
"links": { "self": [{ "href": "http://localhost:7990/users/danger" }] } | ||
}, | ||
"committerTimestamp": 1519442341000, | ||
"message": "Modify and remove files", | ||
"parents": [{ "id": "c62ada76533a2de045d4c6062988ba84df140729", "displayId": "c62ada76533" }] | ||
} | ||
], | ||
"total": 1 | ||
}, | ||
"removed": { "commits": [], "total": 0 } | ||
}, | ||
{ | ||
"id": 52, | ||
"createdDate": 1518939353345, | ||
"user": { | ||
"name": "danger", | ||
"emailAddress": "foo@bar.com", | ||
"id": 2, | ||
"displayName": "DangerCI", | ||
"active": true, | ||
"slug": "danger", | ||
"type": "NORMAL", | ||
"links": { "self": [{ "href": "http://localhost:7990/users/danger" }] } | ||
}, | ||
"action": "COMMENTED", | ||
"commentAction": "ADDED", | ||
"comment": { | ||
"properties": { "repositoryId": 1 }, | ||
"id": 10, | ||
"version": 23, | ||
"text": | ||
"\n\n| \uD83D\uDEAB | Fails\n| --- | --- |\n\n> node` failed.\n\n\n| ⚠️ | Warnings\n| --- | --- |\n\n> Please add a changelog entry for your changes. You can find it in `CHANGELOG.md` \n> \n> Please add your change and name to the master section.\n\n> 0\n\n> \"use strict\";\n> \n> module.exports = {\n> runner: \"jest-runner-eslint\",\n> displayName: \"lint\",\n> testMatch: [\"<rootDir>/**/*.js\"],\n> testPathIgnorePatterns: [\"node_modules/\"]\n> };\n\n\n\n### Log\n\n\n```sh\nJest tests passed :+1:\nError: SyntaxError: Unexpected token o in JSON at position 1\n at JSON.parse (<anonymous>)\n at Object.<anonymous> (/Users/azz/code/danger-js/distribution/platforms/git/gitJSONToGitDSL.js:72:60)\n at step (/Users/azz/code/danger-js/distribution/platforms/git/gitJSONToGitDSL.js:32:23)\n at Object.next (/Users/azz/code/danger-js/distribution/platforms/git/gitJSONToGitDSL.js:13:53)\n at fulfilled (/Users/azz/code/danger-js/distribution/platforms/git/gitJSONToGitDSL.js:4:58)\n at <anonymous>\n at process._tickCallback (internal/process/next_tick.js:188:7)\n\n```\n\n\n\n| |\n|---:|\n| _Generated by \uD83D\uDEAB [dangerJS](http://github.com/danger/danger-js/)_ |\n\n\n[](http://danger-id-default;)\n", | ||
"author": { | ||
"name": "danger", | ||
"emailAddress": "foo@bar.com", | ||
"id": 2, | ||
"displayName": "DangerCI", | ||
"active": true, | ||
"slug": "danger", | ||
"type": "NORMAL", | ||
"links": { "self": [{ "href": "http://localhost:7990/users/danger" }] } | ||
}, | ||
"createdDate": 1518939353345, | ||
"updatedDate": 1519449132488, | ||
"comments": [], | ||
"tasks": [], | ||
"permittedOperations": { "editable": false, "deletable": true } | ||
} | ||
}, | ||
{ | ||
"id": 43, | ||
"createdDate": 1518937747368, | ||
"user": { | ||
"name": "danger", | ||
"emailAddress": "foo@bar.com", | ||
"id": 2, | ||
"displayName": "DangerCI", | ||
"active": true, | ||
"slug": "danger", | ||
"type": "NORMAL", | ||
"links": { "self": [{ "href": "http://localhost:7990/users/danger" }] } | ||
}, | ||
"action": "UPDATED", | ||
"addedReviewers": [], | ||
"removedReviewers": [ | ||
{ | ||
"name": "danger", | ||
"emailAddress": "foo@bar.com", | ||
"id": 2, | ||
"displayName": "DangerCI", | ||
"active": true, | ||
"slug": "danger", | ||
"type": "NORMAL", | ||
"links": { "self": [{ "href": "http://localhost:7990/users/danger" }] } | ||
} | ||
] | ||
}, | ||
{ | ||
"id": 42, | ||
"createdDate": 1518929751675, | ||
"user": { | ||
"name": "danger", | ||
"emailAddress": "foo@bar.com", | ||
"id": 2, | ||
"displayName": "DangerCI", | ||
"active": true, | ||
"slug": "danger", | ||
"type": "NORMAL", | ||
"links": { "self": [{ "href": "http://localhost:7990/users/danger" }] } | ||
}, | ||
"action": "UPDATED", | ||
"addedReviewers": [ | ||
{ | ||
"name": "danger", | ||
"emailAddress": "foo@bar.com", | ||
"id": 2, | ||
"displayName": "DangerCI", | ||
"active": true, | ||
"slug": "danger", | ||
"type": "NORMAL", | ||
"links": { "self": [{ "href": "http://localhost:7990/users/danger" }] } | ||
} | ||
], | ||
"removedReviewers": [] | ||
}, | ||
{ | ||
"id": 5, | ||
"createdDate": 1518870689956, | ||
"user": { | ||
"name": "test", | ||
"emailAddress": "foo@bar.com", | ||
"id": 1, | ||
"displayName": "test", | ||
"active": true, | ||
"slug": "test", | ||
"type": "NORMAL", | ||
"links": { "self": [{ "href": "http://localhost:7990/users/test" }] } | ||
}, | ||
"action": "COMMENTED", | ||
"commentAction": "ADDED", | ||
"comment": { | ||
"properties": { "repositoryId": 1 }, | ||
"id": 2, | ||
"version": 0, | ||
"text": "wow", | ||
"author": { | ||
"name": "test", | ||
"emailAddress": "foo@bar.com", | ||
"id": 1, | ||
"displayName": "test", | ||
"active": true, | ||
"slug": "test", | ||
"type": "NORMAL", | ||
"links": { "self": [{ "href": "http://localhost:7990/users/test" }] } | ||
}, | ||
"createdDate": 1518870689956, | ||
"updatedDate": 1518870689956, | ||
"comments": [], | ||
"tasks": [], | ||
"permittedOperations": { "editable": true, "deletable": true } | ||
}, | ||
"commentAnchor": { | ||
"fromHash": "8942a1f75e4c95df836f19ef681d20a87da2ee20", | ||
"toHash": "7fe85eb2a4dbaa70414155022abc7e5465f09547", | ||
"line": 1, | ||
"lineType": "ADDED", | ||
"fileType": "TO", | ||
"path": "banana", | ||
"diffType": "EFFECTIVE", | ||
"orphaned": false | ||
}, | ||
"diff": { | ||
"source": null, | ||
"destination": { "components": ["banana"], "parent": "", "name": "banana", "toString": "banana" }, | ||
"hunks": [ | ||
{ | ||
"sourceLine": 0, | ||
"sourceSpan": 0, | ||
"destinationLine": 1, | ||
"destinationSpan": 1, | ||
"segments": [ | ||
{ | ||
"type": "ADDED", | ||
"lines": [{ "destination": 1, "source": 0, "line": "bar", "truncated": false, "commentIds": [2] }], | ||
"truncated": false | ||
} | ||
], | ||
"truncated": false | ||
} | ||
], | ||
"truncated": false, | ||
"properties": { | ||
"toHash": "7fe85eb2a4dbaa70414155022abc7e5465f09547", | ||
"current": true, | ||
"fromHash": "8942a1f75e4c95df836f19ef681d20a87da2ee20" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": 4, | ||
"createdDate": 1518870515570, | ||
"user": { | ||
"name": "test", | ||
"emailAddress": "foo@bar.com", | ||
"id": 1, | ||
"displayName": "test", | ||
"active": true, | ||
"slug": "test", | ||
"type": "NORMAL", | ||
"links": { "self": [{ "href": "http://localhost:7990/users/test" }] } | ||
}, | ||
"action": "COMMENTED", | ||
"commentAction": "ADDED", | ||
"comment": { | ||
"properties": { "repositoryId": 1 }, | ||
"id": 1, | ||
"version": 0, | ||
"text": "heyo", | ||
"author": { | ||
"name": "test", | ||
"emailAddress": "foo@bar.com", | ||
"id": 1, | ||
"displayName": "test", | ||
"active": true, | ||
"slug": "test", | ||
"type": "NORMAL", | ||
"links": { "self": [{ "href": "http://localhost:7990/users/test" }] } | ||
}, | ||
"createdDate": 1518870515570, | ||
"updatedDate": 1518870515570, | ||
"comments": [], | ||
"tasks": [], | ||
"permittedOperations": { "editable": true, "deletable": true } | ||
} | ||
}, | ||
{ | ||
"id": 3, | ||
"createdDate": 1518863923424, | ||
"user": { | ||
"name": "test", | ||
"emailAddress": "foo@bar.com", | ||
"id": 1, | ||
"displayName": "test", | ||
"active": true, | ||
"slug": "test", | ||
"type": "NORMAL", | ||
"links": { "self": [{ "href": "http://localhost:7990/users/test" }] } | ||
}, | ||
"action": "OPENED" | ||
} | ||
] |
Oops, something went wrong.