Skip to content
This repository was archived by the owner on Apr 1, 2020. It is now read-only.

Commit 0e9a7e3

Browse files
committed
test: add payload files
1 parent ac7cd75 commit 0e9a7e3

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

test/payload/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const opened = require('./pull_request.opened.json')
2+
const sync = require('./pull_request.synchronize.json')
3+
4+
module.exports = { opened, sync }

test/payload/pull_request.opened.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"action": "opened",
3+
"pull_request": {
4+
"number": 1,
5+
"head": {
6+
"sha": "eb4f337feefe6f97b574b646a1647b6305512c37"
7+
}
8+
},
9+
"repository": {
10+
"name": "test-commitlint-bot",
11+
"owner": {
12+
"login": "ahmed-taj"
13+
}
14+
}
15+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"action": "synchronize",
3+
"pull_request": {
4+
"number": 17,
5+
"head": {
6+
"sha": "2c0c413a3a39364306c667101947ec175cf3c941"
7+
}
8+
},
9+
"repository": {
10+
"name": "test-commitlint-bot",
11+
"owner": {
12+
"login": "ahmed-taj"
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)