Repository navigation
Conversation
|
I think the menu title should be |
|
On the PR tab, it says |
Pull Requests
|
@bfred-it & @sindresorhus I addressed all feedback; thank you. A lot is changed, so maybe another feedback round... |
|
#1738 (comment) is not fixed. |
|
@bfred-it & @sindresorhus I addressed all feedback again. Let me know if I need to change anything. |
- Also apply to global search - Use native and lightweight count-getter - Correctly drop existing counters - Avoid innerHTML - Use URLSearchParams - Simplify and shorten code
|
@bfred-it commented on Jan 23, 2019, 12:51 PM GMT+1:
Yes, intentionally. I learn so much more from the feedback from the reviewers, then that someone completely rewrites the code that I contributed to this project. I understand that there are some code styling differences (open to any feedback), but there are multiple ways to get to end-goal (if it doesn't contain any bugs). Anyways, I recognize your contributions and checked the "allow edits from maintainers" again. Feel free to push. |
|
Right, but multiple rounds of reviews take longer and are less effective for the reviewer, especially when the whole approach can be modified. Even with our reviews, some pieces fell through so it’s easier to commit directly. GitHub doesn’t show that maintainers aren’t allowed to push until they try, so I almost opened a new PR to do so. Also code reviews can only get us so far. Until a reviewer tries to run it and write code they're just shooting in the dark ("try this and that, maybe"). Once the code is written it might as well be committed. |
fregante
left a comment
There was a problem hiding this comment.
This feature should probably be renamed into something like split-issue-pr-search-results
…s or PRs), without reloading the page
|
I think we tackled every situation. 👍 |
| } else if (/\btype=Issues\b/.test(location.search) && !/\bis:issue\b/.test(getSearchQuery())) { | ||
| title.textContent = title.textContent | ||
| .replace(/issue\b/, 'issue or pull request') | ||
| .replace(/issues/, 'issues and pull requests'); |
There was a problem hiding this comment.
There was a problem hiding this comment.
'issues and/or pull requests' ...
There was a problem hiding this comment.
lol the link was supposed to only show one result, but pasting the link here created a second result. Fixed now
There was a problem hiding this comment.
Oh lol, I was actually suggesting an sentence change. That previous link (https://github.com/search?q=alsdka&type=Issues) showed two results, both of them in pull requests. That's why I suggested to reword it to 'issues and/or pull requests', because there were zero (0) issues.
There was a problem hiding this comment.
Nah I think it’s ok with “and” since the search contains both types. Also easier to read
…earch-results-filter-2
Pull Requests|
Finally merged! Thanks @jerone 🌝 |

Repository search results are currently categorized in 4 types: Code, Commits, Issues and Wikis (if available).
Where issues is a combination of issues and PR. This PR will make another type for all PR's and separate them out of the issues type.
Test
https://github.com/sindresorhus/refined-github/search?q=test+is%3Apr&type=Issues
Screenshot
Ref