forked from pascalgn/automerge-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.js
37 lines (36 loc) · 796 Bytes
/
common.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
function pullRequest() {
return {
number: 1,
title: "Update README",
body: "This PR updates the README",
state: "open",
locked: false,
merged: false,
mergeable: true,
rebaseable: true,
mergeable_state: "clean",
commits: 2,
labels: [{ name: "automerge" }],
head: {
ref: "patch-1",
sha: "2c3b4d5",
user: { login: "username" },
repo: {
name: "repository",
full_name: "username/repository",
owner: { login: "username" }
}
},
base: {
ref: "master",
sha: "45600fe",
user: { login: "username" },
repo: {
name: "repository",
full_name: "username/repository",
owner: { login: "username" }
}
}
};
}
module.exports = { pullRequest };