Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pin Repositories on user page (Fixes #10375) #19831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pin Repositories on user page (Fixes #10375) #19831
Changes from all commits
e3fe53f
fa46bfd
11faab0
9f87fd6
5c22473
8464a09
0140a49
30a2076
cf5ef19
33c5db9
a0f3148
bfc0a3b
b6d4403
0cfd468
ef80b11
ca30e0c
4e2e304
d7cc870
2e94d4e
65c1c26
3bcfaa2
f0e8a25
8be963a
f489c68
6cbdb44
0d11561
94396a6
3ee1ade
22f2956
332c8fa
9eeb53b
16a9906
5655553
d8d7a40
70274d5
791122a
3e566e0
6e65d34
0e50a7c
58f5754
cb10529
826d921
b2a7270
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the function should be
IsPinned(userID int64)
. One could pin another public repository?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A repo is either pinned to its owner's profile, or not at all.
This is maybe the same confusion I had with @delvh ? This is not an implementation for pinning any repo you have access to to your profile - it's an implementation for pinning a repo to its owner's profile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, the most interesting thing I happen to work on is in an org I own, not in my user namespace. So I couldn't pin that then? I'd assume that's a common use case, but maybe that's just me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It sounds like that's everyone's else's view too. This may need reimplementing with that in mind.