You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-4Lines changed: 1 addition & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ Like the command-line better? *As an alternative, you can utilize git's native c
37
37
38
38
## Use Branches When Creating New Patterns
39
39
We develop new patterns in branches with the naming convention:
40
-
`pattern/[title-of-pattern-here]`.
40
+
`pattern/<title-of-pattern-here>`.
41
41
42
42
If you are asked to 'Commit directly...' vs 'Create a new branch...'
43
43
@@ -67,9 +67,6 @@ After this process, it is our turn to drive you through the pattern creation pro
67
67
68
68
FIXME: The below content is wrong for this section. Content for this section needs to be written, and the below content needs to be integrated elsewhere (it has some useful info).
# Command-line git steps for creating a new Pattern
2
2
3
-
If you want to contribute, the workflow is done through branches. You can see the
4
-
available branches of this repository at [the branches URL](https://github.com/paypal/InnerSourcePatterns/branches)
5
-
or by clicking on the 'branches' button on the main page.
6
-
7
-
Branches and Pull Requests (PR's) are used to bring discussion/review about a specific inner source pattern.
8
-
New patterns should use, as a first approach, the
9
-
[pattern template](meta/pattern-template.md). There are indeed multiple ways to start a discussion:
10
-
* Pull request your branch and the maintainers will receive a notification.
11
-
* Ask directly for comments to some of the maintainers. You can mention them
12
-
using the symbol '@' prior their nickname.
3
+
If you want to contribute a new pattern, the workflow is done through Branches and Pull Requests (PR's). You can see the available branches on [the branches URL](https://github.com/paypal/InnerSourcePatterns/branches/all) and existing PR's on the [Pull Request page](https://github.com/paypal/InnerSourcePatterns/pulls). Branches are meant to separate content, so that multiple people can work all at once. Pull Requests (PR's) are used to bring discussion/review about a specific inner source pattern.
4
+
5
+
There are indeed multiple ways to start a discussion:
6
+
7
+
* Send a Pull Request for your branch and the maintainers will receive a notification.
8
+
* Create an Issue and ask for comments from some of the maintainers. You can mention them using the '@' symbol prior to their github nickname.
13
9
* Add reviewers to the Pull Request on the website - this sends requests to review your work
14
10
15
-
Please, when starting a new pattern, be aware that this does not exist. You can
16
-
have a look at some of the existing patterns in this repository.
11
+
New patterns should use, as their base, the [pattern template file](https://raw.githubusercontent.com/paypal/InnerSourcePatterns/master/meta/pattern-template.md).
12
+
13
+
Please, when starting a new pattern, make sure that it does not already exist. Take a look at some of the [existing patterns in this repository](https://github.com/paypal/InnerSourcePatterns#reviewed-patterns-proven-and-reviewed).
This means that you successfully cloned the repository. Then we need to access
39
-
the directory and check that everything is as expected.
41
+
This means that you successfully cloned the repository. Then we need to access the directory and check that everything is as expected.
40
42
41
43
```
42
44
$ cd InnerSourcePatterns/
@@ -55,38 +57,38 @@ $ git branch -a
55
57
```
56
58
57
59
The command 'git branch' shows you which branch you are currently working within.
58
-
And with 'git branch -a' you see additional branches which are local and remote (on the web).
60
+
And with 'git branch -a' you see additional branches which are local (on desktop) and remote (on the web).
59
61
There is extra information using the command '$ man git branch' in linux based systems.
60
62
61
63
Next, in order to create a new branch as a way to start creating a new pattern,
62
64
you need to 'checkout' that branch. As a common nomenclature, all of the
63
-
pattern-related branches should start with the keyword 'pattern/'. Thus, a new
65
+
pattern-related branches should start with the keyword `pattern/`. Thus, a new
64
66
branch with a new pattern named as foo should be as follows:
65
67
66
68
```
67
69
$ git checkout -b pattern/foo
68
70
```
69
71
70
72
You are now in the 'pattern/foo' branch. When you create a new branch, the files
71
-
in the directory might appear change. Each branch can have slightly different content,
72
-
and that is intentional. If you need to go again to the 'master' branch or another
73
-
branch, you can easily 'checkout' to those as follows:
73
+
in the directory might appear to have changed. Each branch can have slightly different content, and that is intentional. If you need to go back to the 'master' branch or another branch, you can easily 'checkout' to those as follows:
74
74
75
75
```
76
76
$ git checkout <branchname>
77
77
```
78
78
79
79
## Adding a new pattern
80
80
81
-
Let's imagine we want to work a new pattern related to the activities of the
82
-
Ewoks that for some reason gave up hunting. We should choose some initial
83
-
name for this pattern file that could be 'ewoks-do-not-hunt.md'.
81
+
Let's imagine we want to create a new pattern related to the activities of the
82
+
Ewoks - they gave up hunting for some reason. We should choose some initial
83
+
name for this pattern file. We will use 'ewoks-do-not-hunt.md'.
84
84
85
85
```
86
86
$ git checkout -b pattern/ewoks-do-not-hunt
87
87
$ touch ewoks-do-not-hunt.md
88
88
```
89
89
90
+
You can fill your [markdown](meta/markdown-info.md) file with the [pattern template text](https://raw.githubusercontent.com/paypal/InnerSourcePatterns/master/meta/pattern-template.md) and begin to fill it in with your pattern.
91
+
90
92
Once our pattern file is ready to go, we need to add the file to the repo and
91
93
commit that change to our new branch.
92
94
@@ -101,6 +103,6 @@ And we should finally upload that branch and file to the server.
101
103
$ git push origin pattern/ewoks-do-not-hunt
102
104
```
103
105
104
-
Then, if you feel the pattern is ready to review, you can start a Pull Request (PR) asking
105
-
to join your new branch to the master branch. To do this, navigate to the github web repo
106
-
and get into your new branch. You should see a 'Create pull request' button while in your branch.
106
+
Then, if you feel the pattern is ready to be reviewed, you can start a Pull Request (PR) asking to join your new branch to the github master branch. To do this, navigate to the github web repo and get into your new branch. You should see a 'Create pull request' button while in your branch.
107
+
108
+
PR's are the mechanism we use for our multi-step Review process. See next steps in [Interacting with Pattern Reviews](CONTRIBUTING.md#c-interacting-with-patterns-reviews).
0 commit comments