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: src/components/Onboarding/CreateForkStatic.jsx
+41-92Lines changed: 41 additions & 92 deletions
Original file line number
Diff line number
Diff line change
@@ -19,20 +19,21 @@ const steps = [
19
19
subtitle: "Create your personal copy on GitHub",
20
20
commands: [
21
21
{
22
-
command: "# 1. Go to the repository on GitHub",
23
-
description: "Navigate to the project's GitHub page",
22
+
command:
23
+
"# 1. Open the repo: https://github.com/devclub-nstru/DCODE-Smaple-Repo",
24
+
description: "Go to the GitHub repository",
24
25
},
25
26
{
26
27
command: "# 2. Click the 'Fork' button (top-right)",
27
-
description: "This creates a copy under your account",
28
+
description: "This creates a copy under your GitHub account",
28
29
},
29
30
{
30
31
command: "# 3. Choose your account as destination",
31
-
description: "Select where to create the fork",
32
+
description: "Select your GitHub account",
32
33
},
33
34
{
34
35
command: "# 4. Wait for GitHub to create the fork",
35
-
description: "GitHub will redirect you to your fork",
36
+
description: "GitHub will redirect you to your forked repo",
36
37
},
37
38
],
38
39
},
@@ -42,7 +43,7 @@ const steps = [
42
43
title: "Clone your",
43
44
highlight: "fork",
44
45
blurb: "Bring your fork down to your machine.",
45
-
body: "Cloning downloads your forked repository to your local computer so you can make changes. Use git to clone your fork and set up the connection to the original repository for future updates.",
46
+
body: "Cloning downloads your forked repository to your local computer so you can make changes. Use git to clone your fork and move into the directory.",
description: "Add the original repository as upstream remote",
65
-
},
66
-
{
67
-
command: "git remote -v",
68
-
description: "Verify your remote repositories are set up correctly",
63
+
command: "# Open VS Code",
64
+
description: "Open the project in VS Code",
69
65
},
70
66
],
71
67
},
72
68
},
73
69
{
74
70
id: 3,
75
-
title: "Create a",
76
-
highlight: "branch",
77
-
blurb: "Keep your changes isolated and easy to review.",
78
-
body: "Creating a new branch keeps your changes separate from the main code. This makes it easier to manage multiple contributions and allows maintainers to review your changes without conflicts.",
79
-
icon: "🌿",
80
-
color: "#BCDD19",
81
-
snippet: {
82
-
label: "Create Branch",
83
-
subtitle: "Create a new branch for your feature or bug fix",
description: "Use descriptive names for your branches",
92
-
},
93
-
{
94
-
command: "git status",
95
-
description: "Confirm you're on the new branch",
96
-
},
97
-
{
98
-
command: "# Now make your changes to the code",
99
-
description: "Edit files using your preferred code editor",
100
-
},
101
-
],
102
-
},
103
-
},
104
-
{
105
-
id: 4,
106
71
title: "Make your",
107
72
highlight: "changes",
108
-
blurb: "Implement your feature or fix the issue.",
109
-
body: "Now comes the actual coding! Make your changes carefully, following the project's coding standards and guidelines. Test your changes thoroughly to ensure they work as expected and don't break existing functionality.",
73
+
blurb: "Add your name to the README file.",
74
+
body: "Now, edit the README file in VS Code and add your name under the contributors section. This is the task for contributing to this repository.",
110
75
icon: "✏️",
111
76
color: "#BCDD19",
112
77
snippet: {
113
-
label: "Making Changes",
114
-
subtitle: "Best practices for implementing your contribution",
78
+
label: "Update README",
79
+
subtitle: "Add your name to the README file",
115
80
commands: [
116
81
{
117
-
command: "# 1. Read the CONTRIBUTING.md file",
118
-
description: "Understand the project's contribution guidelines",
description: "Use the Explorer panel to open README.md",
123
84
},
124
85
{
125
-
command: "# 3. Make your changes",
126
-
description: "Edit the necessary files",
127
-
},
128
-
{
129
-
command: "# 4. Test your changes locally",
130
-
description: "Run tests and verify functionality",
86
+
command: "# Add your name under the contributors section",
87
+
description: "Save the file after editing",
131
88
},
132
89
],
133
90
},
134
91
},
135
92
{
136
-
id: 5,
93
+
id: 4,
137
94
title: "Commit your",
138
95
highlight: "changes",
139
96
blurb: "Save your work with a clear message.",
140
-
body: "Commits create snapshots of your changes. Write clear, descriptive commit messages that explain what you changed and why. Follow conventional commit format if the project uses it.",
97
+
body: "Commits create snapshots of your changes. Write a clear, descriptive commit message explaining what you did.",
141
98
icon: "💾",
142
99
color: "#BCDD19",
143
100
snippet: {
144
101
label: "Commit Changes",
145
102
subtitle: "Save your work with descriptive commit messages",
146
103
commands: [
147
104
{
148
-
command: "git add .",
149
-
description: "Stage all your changes",
105
+
command: "git add README.md",
106
+
description: "Stage the README file changes",
150
107
},
151
108
{
152
-
command: "git commit -m 'feat: add user authentication feature'",
153
-
description: "Commit with a clear, descriptive message",
description: "Stage only specific files if preferred",
109
+
command:
110
+
"git commit -m 'chore: add <your-name> to contributors list'",
111
+
description:
112
+
"Commit with a clear, descriptive message (replace <your-name>)",
158
113
},
159
114
{
160
115
command: "git log --oneline",
@@ -164,28 +119,20 @@ const steps = [
164
119
},
165
120
},
166
121
{
167
-
id: 6,
122
+
id: 5,
168
123
title: "Push to",
169
124
highlight: "GitHub",
170
125
blurb: "Upload your changes to your fork.",
171
-
body: "Pushing uploads your local commits to your GitHub fork. This makes your changes visible on GitHub and prepares them for creating a pull request to the original repository.",
172
-
icon: "�",
126
+
body: "Pushing uploads your local commits to your GitHub fork. This makes your changes visible on GitHub.",
127
+
icon: "🚀",
173
128
color: "#BCDD19",
174
129
snippet: {
175
130
label: "Push Changes",
176
131
subtitle: "Upload your commits to your GitHub fork",
177
132
commands: [
178
133
{
179
-
command: "git push origin <your-branch-name>",
180
-
description: "Push your branch to your GitHub fork",
command: "# For first push: git push -u origin <branch-name>",
188
-
description: "Set upstream tracking for future pushes",
134
+
command: "git push origin main",
135
+
description: "Push your commit to your fork’s main branch",
189
136
},
190
137
{
191
138
command: "git status",
@@ -195,28 +142,29 @@ const steps = [
195
142
},
196
143
},
197
144
{
198
-
id: 7,
145
+
id: 6,
199
146
title: "Create a",
200
147
highlight: "Pull Request",
201
148
blurb: "Propose your changes to the original project.",
202
-
body: "A Pull Request (PR) is how you propose your changes to be merged into the original project. Write a clear description of what you changed, why you changed it, and any relevant information for reviewers.",
203
-
icon: "�",
149
+
body: "A Pull Request (PR) is how you propose your changes to be merged into the original project. Write a clear description of what you changedand why.",
150
+
icon: "🔀",
204
151
color: "#BCDD19",
205
152
snippet: {
206
153
label: "Create Pull Request",
207
154
subtitle: "Submit your contribution for review",
208
155
commands: [
209
156
{
210
157
command: "# 1. Go to your fork on GitHub",
211
-
description: "Navigate to your repository on GitHub",
158
+
description: "Navigate to your forked repository",
212
159
},
213
160
{
214
161
command: "# 2. Click 'Compare & pull request'",
215
162
description: "GitHub will show this button after pushing",
216
163
},
217
164
{
218
165
command: "# 3. Write a clear title and description",
219
-
description: "Explain what your changes do and why",
166
+
description:
167
+
"E.g., 'Added Aditya Kumar to contributors list in README'",
220
168
},
221
169
{
222
170
command: "# 4. Click 'Create pull request'",
@@ -298,7 +246,8 @@ export default function CreateFork() {
298
246
<>
299
247
<divclassName="mb-[1.5rem] bg-transparent">
300
248
<h1className="text-4xl font-bold text-center">
301
-
Let's start with your first <spanclassName="text-[#BCDD19]">PR</span>{" "}
0 commit comments