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
{{ message }}
This repository was archived by the owner on Aug 17, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+19-4Lines changed: 19 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,9 @@ The documentation for the `repos` endpoint is available on: [https://developer.g
26
26
**When** I am presented a list of my Repos
27
27
**Then** each repo should have a link to go to the Github page
28
28
29
+
> **Hint:** If you're unsure about how to create a link from JavaScript, then check [this StackOverflow post](https://stackoverflow.com/questions/37472635/javascript-dom-add-href-and-a-link) that has the answer.
30
+
31
+
29
32
### Requirement 3: Display the number of Repos
30
33
**Given** I am on the Resume site
31
34
**When** I click on `My Github` link
@@ -47,6 +50,12 @@ GET [https://api.github.com/repos/codeyourfuture/js-exercises/pulls](https://api
47
50
48
51
For the below 3 tasks, you'll need to work in: `pull-requests.html` & `pull-requests.js`
49
52
53
+
> First, you need to link the `html` and `JavaScript` together. Go to the `html` page and add a script tag `<script src="../js/pull-requests.js"></script>`
54
+
55
+
Where do I write the code for Part 2 requirements?
56
+
57
+
> The file `pull-requests.js` (that you just linked) is where you need to write the JavaScript to peform these requirements.
58
+
50
59
### Requirement 4: Show ALL Pull Requests
51
60
**Given** I am on the Resume site
52
61
**When** I click on `Pull Requests` link
@@ -67,16 +76,22 @@ Add a `Search input` on the `My Pull Requests` page. This allows the user to ent
67
76
68
77

69
78
79
+
> **Hint:** This code below listens to `keyup` event (The keyup event is fired when a key is released) and gets the last value from `event` parameter
80
+
```javascript
81
+
// input is a DOM element we already have using "querySelector"
82
+
input.addEventListener('keyup', function(event) {
83
+
constvalue=event.target.value
84
+
console.log(value)
85
+
// "value" will be the last value of the input field, and will be updated everytime the user types a new letter
86
+
})
87
+
88
+
```
70
89
For the above requirements, you need to use the API:
71
90
72
91
> GET [https://api.github.com/repos/codeyourfuture/js-exercises/pulls](https://api.github.com/repos/codeyourfuture/js-exercises/pulls)
73
92
74
93
> hint: This request lists all the pull requests against js-exercises. How can you show only the ones that related to your Github username (How can you _filter_ the list).
75
94
76
-
Where do I write the code for Part 2 requirements?
77
-
78
-
> The file `pull-requests.js` is where you need to write the JavaScript to peform these requirements.
79
-
80
95
## Part 3: Update My Github Page to show other Github user's repos
81
96
82
97
### Requirement 7: Display someone else's repos in My Github
0 commit comments