ssb22 / jianpu-ly

Jianpu in Lilypond
http://ssb22.user.srcf.net/mwrhome/jianpu-ly.html
Apache License 2.0
70 stars 18 forks source link

In promoting jianpu-ly #26

Closed suntong closed 1 year ago

suntong commented 1 year ago

Hi @ssb22,

I had been thinking of different ways I can help promoting the wider-adoption of jianpu-ly, and here are my two thoughts:

ssb22 commented 1 year ago

Thanks. I'm not 100% sure how GitHub organisations & wikis work, but we can look at it. Moving a project worries me: does it mean the URL will change, and will everybody who's already git cloned from the old URL still be able to git pull? If a move could be disruptive, I wonder if the organisation could just link back to the original repo instead....

suntong commented 1 year ago

Moving a project does change its url (and git clone/pull url too), however, if you don't create another repo with the same name, then people who's already git cloned from the old URL can still be able to git pull, as GH will do the redirect automatically. You can try creating a small test repo under github.com/ssb22 then moved it to under jianpu-ly, then try doing the git pull and git push.

If you feel comfortable about it, then we can talk about moving the main repo over, just that its url does get changed. Give it a try and then we can decide...

BTW, the wiki is working for me, and I've already put into one TIP note.

thanks

ssb22 commented 1 year ago

Testing with https://github.com/jianpu-ly/jianpu-test - see readme there - old URLs work, but old list of "my repositories" no longer lists it, which could be a minor hassle. If I can fix git2gmi then I might at least be able to use that. Or maybe I'm just navigating GitHub wrongly....

suntong commented 1 year ago

Yep, I checked the items you put in https://github.com/jianpu-ly/jianpu-test, and apparently the impact is more than I anticipated.

So let's park this idea for now until another person would like to contribute into jianpu-ly collection, so that we can "group multiple repositories under the project" by then.

suntong commented 1 year ago

So let's park this idea for now until ...

Ah, I now have a perfect solution -- mirror, instead of move!

I know you have a few more git repos than this, and when you push, you push them altogether. So,

If AOK, add me as the admin to the forked repo under jianpu-ly, I'll co-maintain it with you.

How is that?

ssb22 commented 1 year ago

This could work, although apparently it's difficult to sync issues and pull requests between forks—don’t know if that’s important.

There are a few mirrors already: when GitHub was taken over by Microsoft, I got nervous and set up mirrors of all my public repositories on other platforms “just in case”. The nice thing about Git is you can do that—it’s just a matter of adding extra push URLs to my local copy of the repo, which I scripted—so we’re not tied to one platform. (That's why I always write commit messages saying "#26 on GitHub" instead of just "#26".) Only trouble is, the mirrors share the Git history but they don't share the issues history.

suntong commented 1 year ago

apparently it's difficult to sync issues and pull requests between forks

Yep, that's actually my next question -- we cannot keep both so we need to stick to one place for issues and pull requests. If you want to keep them here then it is simple, I can turn off the issues and pull requests feature at the fork (and make a note in its wiki) so people will not be confused.

suntong commented 1 year ago

Any progress, blockage, or concerns?

ssb22 commented 1 year ago

Sorry I've not yet tried this. I need to figure out how to fork my own repository. I can create a new repository (not a fork) and push to both, but that would make the relationship less obvious. It's not clear how to create a fork if I myself am the owner of the repo being forked; I'm not sure if GitHub even allows this. Maybe you'll have to be the one to create the fork.

suntong commented 1 year ago

Maybe you'll have to be the one to create the fork.

Oh, sure, I didn't realized that this could be an issue. Glad that I can help.

suntong commented 1 year ago

Done.

I've turned off the issues and added a note not to do pull requests.

All set, and all your now.

ssb22 commented 1 year ago

Thanks. OK seeing as there's a new commit I'm going to see what happens if I try to git push directly to the new fork....

ssb22 commented 1 year ago

... it doesn't work :-(

git remote set-url origin --push --add git@github.com:jianpu-ly/jianpu-ly.git
git push
...
ERROR: Permission to jianpu-ly/jianpu-ly.git denied to ssb22.

Maybe it doesn't automatically give me permission just because I'm in the same organisation, and you have to explicitly set it on every repository you create.

suntong commented 1 year ago

Aha, you're right. (I'm doing this for the first time as well)

Try again pls.

ssb22 commented 1 year ago

Thanks, it worked that time, and the GitHub Web interface correctly recognised it as the same commit and now says "This branch is up to date with ssb22/jianpu-ly:master" (not "1 commit ahead, 1 commit behind" as it would have said if it hadn't recognised it as the same commit). Good.

Interestingly, when I did the git push --tags, it said all version tags right back to v1.145 (when I started doing version tags) were pushed to the fork. That suggests creating a fork on GitHub does not by default copy the version tags, which is an oversight on their part. Not to worry though if we're going to be pushing them anyway.

suntong commented 1 year ago

Bravo!!! Thanks!!!