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
Merge pull request #21 from OSSPhilippines/copilot/fix-84425943-167b-4f9e-90cc-0ca158317c8d
I need to refactor this first-contribution repository to eliminate merge conflicts. Currently, all contributors edit a single data.json file, causing conflicts when multiple PRs are open.
Required Changes:
Create new directory structure:
Create a con...
Copy file name to clipboardExpand all lines: README.md
+19-17Lines changed: 19 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,9 @@ Replace `your-name` with your actual name or GitHub username.
37
37
38
38
### Step 4: Add Your Information
39
39
40
-
Open the `data.json` file and add your information to the array. Here's the format:
40
+
Create a new JSON file in the `contributors/` directory with your GitHub username as the filename. For example, if your username is `johndoe`, create `contributors/johndoe.json`.
41
+
42
+
**Template:**
41
43
42
44
```json
43
45
{
@@ -48,37 +50,36 @@ Open the `data.json` file and add your information to the array. Here's the form
48
50
```
49
51
50
52
**Important:**
51
-
-**Always add your entry at the end of the JSON array**(before the closing `]`). It's first come, first serve!
52
-
-Add a comma after the previous entry before adding yours
53
+
-**Create a new file**named `contributors/{your-github-username}.json`
54
+
-Replace `your-github-username` with your actual GitHub username
53
55
- The `photo` field is optional. If you don't provide it, your GitHub avatar will be used automatically
54
-
- Make sure your JSON is properly formatted
56
+
- Make sure your JSON is properly formatted (use the template above)
55
57
56
58
**Example:**
57
59
60
+
If your username is `johndoe`, create `contributors/johndoe.json`:
61
+
58
62
```json
59
-
[
60
-
{
61
-
"github": "exampleuser",
62
-
"photo": "https://github.com/exampleuser.png",
63
-
"quote": "The best way to predict the future is to invent it."
0 commit comments