-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy path06-milestones.js
More file actions
48 lines (41 loc) · 1.58 KB
/
06-milestones.js
File metadata and controls
48 lines (41 loc) · 1.58 KB
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
38
39
40
41
42
43
44
45
46
47
/**
* Milestones
*/
const GitHubClient = require('../libs/GitHubClient.js').GitHubClient;
const milestones = require('../libs/features/milestones');
let githubCli = new GitHubClient({
baseUri:"http://github.at.home/api/v3",
token:process.env.TOKEN_GHITHUB_ENTERPRISE
}, milestones);
githubCli.createMilestone({
title: 'Inception',
state: 'open',
description: 'A discover phase, where an initial problem statement and functional requirements are created.',
due_on: '2016-11-01T09:00:00Z',
owner: 'ZeiraCorp', // organization in this case
repository: 'toys'
}).then(milestone => console.log(milestone));
githubCli.createMilestone({
title: 'Elaboration',
state: 'open',
description: 'The product vision and architecture are defined, construction cycles are planned.',
due_on: '2016-12-01T09:00:00Z',
owner: 'ZeiraCorp', // organization in this case
repository: 'toys'
}).then(milestone => console.log(milestone));
githubCli.createMilestone({
title: 'Construction',
state: 'open',
description: 'The software is taken from an architectural baseline to the point where it is ready to make the transition to the user community.',
due_on: '2017-01-01T09:00:00Z',
owner: 'ZeiraCorp', // organization in this case
repository: 'toys'
}).then(milestone => console.log(milestone));
githubCli.createMilestone({
title: 'Transition',
state: 'open',
description: "The software is turned into the hands of the user's community.",
due_on: '2017-02-01T09:00:00Z',
owner: 'ZeiraCorp', // organization in this case
repository: 'toys'
}).then(milestone => console.log(milestone));