-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontrib.json
More file actions
144 lines (135 loc) · 6.43 KB
/
contrib.json
File metadata and controls
144 lines (135 loc) · 6.43 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
"project": {
"name": "PAM-test",
"repo": "https://github.com/contrib/PAM-test",
"requirements": [
{
"name": "git",
"home": "http://git-scm.com"
},
{
"name": "node.js",
"home": "http://nodejs.org"
}
]
},
"install": {
"desc": "Fork, download, and setup the project",
"steps": [
{ "confirm": "You will now be taken to Github where you will choose an account to fork the project under." },
{ "exec": "open {{project.repo}}/fork" },
{ "prompt": "Which account did you choose? (no '@')", "id": "owner" },
{ "exec": "git clone https://github.com/{{owner}}/PAM-test.git" },
{ "exec": "cd PAM-test" },
{ "include": "setup" }
]
},
"setup": {
"desc": "Set up version control and install dependencies",
"steps": [
[ "git fetch origin", "Get all git branches" ],
[ "git remote add upstream {{project.repo}}.git", "Add the upstream project as a remote for pulling changes" ],
[ "git fetch upstream", "Get all upstream branches and changes" ],
{ "include": "update" }
]
},
"update": {
"desc": "Get the latest copy of the code",
"steps":[
[ "git checkout master", "Switch to the master branch" ],
[ "git pull upstream master", "Get any changes to the main project" ],
[ "git push origin master", "Push any changes to your remote copy of the project" ],
[ "npm install", "Install any new dependencies" ],
[ "grunt", "Build and run tests" ]
]
},
"test": [ "grunt test" ],
"watch": [ "grunt watch" ],
"feature": {
"desc": "Create a new feature or general enhancement",
"start": {
"desc": "Start a new feature",
"steps": [{ "include": "code_change start" }]
},
"submit": {
"desc": "Submit a pull request for a feature when it's finished",
"steps": [{ "include": "code_change submit" }]
},
"delete": {
"desc": "Delete the current feature branch",
"steps": [{ "include": "code_change delete" }]
}
},
"patch": {
"desc": "Create a new patch or general enhancement",
"start": {
"desc": "Start a new patch",
"steps": [{ "include": "code_change start" }]
},
"submit": {
"desc": "Submit a pull request for a patch when it's finished",
"steps": [{ "include": "code_change submit" }]
},
"delete": {
"desc": "Delete the current patch branch",
"steps": [{ "include": "code_change delete" }]
}
},
"code_change": {
"private": true,
"start": {
"desc": "",
"steps": [
{ "prompt": "Name the branch", "id": "name" },
{ "include": "update" },
{ "exec": "git checkout -b {{name}} master", "desc": "Create a branch for the changes" }
]
},
"submit": {
"desc": "Submit a pull request for the changes after they are finished",
"steps": [
{ "exec": "git diff --exit-code", "desc": "Test for unadded changes {{ args.[0] }}", "fail": "Make sure all changes have been added and committed, or stashed, before switching branches" },
{ "exec": "git diff --cached --exit-code", "desc": "Test for uncommitted changes", "fail": "Make sure all changes have been added and committed, or stashed, before switching branches" },
{ "include": "test" },
{ "exec": "git rev-parse --abbrev-ref HEAD", "desc": "Get the current branch", "id": "branch" },
{ "confirm": "Are you sure {{branch}} is the branch you want to submit?" },
{ "exec": "git push -u origin {{branch}}", "desc": "Push the branch to your remote copy of the project" },
{ "prompt": "Which github user or org are you submitting from?", "id": "user" },
{ "open": "{{project.repo}}/compare/PAM-test:{{baseBranch}}...{{user}}:{{branch}}", "desc": "Open the github pull request page" }
]
},
"delete": {
"desc": "Delete the current set of changes",
"steps": [
{ "exec": "git rev-parse --abbrev-ref HEAD", "desc": "Get the current branch name", "id": "name" },
{ "confirm": "Are you sure '{{name}}' is the branch you want to delete?" },
{ "exec": "git branch -D {{name}}", "desc": "Delete the local copy of the branch" },
{ "exec": "git push origin :{{name}}", "desc": "Delete the remote copy of the branch" }
]
}
},
"report": {
"desc": "Submit a bug report",
"steps": [
{ "prompt": "text", "desc": "Create a title that is descriptive of the problem", "id": "title" },
{ "prompt": "text", "desc": "What did you do? (steps to reproduce)", "id": "reproduce" },
{ "prompt": "text", "desc": "What did you expect to happen?", "id": "expected" },
{ "prompt": "text", "desc": "What actually happened?", "id": "actual" },
{ "prompt": "text", "desc": "What platforms did you experience this in (e.g. Win 7; Mac OS 10.7)?", "id": "platforms" },
{ "prompt": "text", "desc": "Are there any other details you would like to provide?", "id": "details" },
{ "open": "{{project.repo}}/issues/new?title={{title}}&body=**Steps to reproduce:**\n> {{reproduce}}\n\n**What was expected:**\n> {{expected}}\n\n**What Happened:**\n> {{actual}}\n\n**Platforms experienced on:**\n> {{platforms}}\n\n**Other details:**\n> {{details}}" }
],
"finished": "Thanks for submitting a bug report! One of our contributors will address it as soon as possible."
},
"request": {
"desc": "Submit a feature/enhancement request",
"steps": [
{ "prompt": "text", "desc": "Create a title that is descriptive of the enhancement", "id": "title" },
{ "prompt": "text", "desc": "Describe the feature/enhancement (be as detailed as possible so it's clear who, why, and how it would be used)", "id": "describe" },
{ "prompt": "text", "desc": "Is there any existing documentation or related specifications?", "id": "docs" },
{ "prompt": "text", "desc": "Are there any existing examples?", "id": "examples" },
{ "open": "{{project.urls.repo_ui}}/issues/new?title={{ title }}&body=**Describe the feature/enhancement:**\n> {{ describe }}\n\n**Existing docs/specs:**\n> {{ docs }}\n\n**Existing examples:**\n> {{ examples }}" }
],
"finished": "Thanks for submitting a feature request! One of our contributors will address it as soon as possible."
}
}