pear / pear-svn-git

tool to move pear svn repositories to git
5 stars 8 forks source link

Create github repository #3

Closed CloCkWeRX closed 12 years ago

CloCkWeRX commented 12 years ago

There's an API and examples with curl for creating repos - http://develop.github.com/p/repo.html

If we are going to eventually migrate all 400 pear packages; this would be time saving

CloCkWeRX commented 12 years ago

(and automatically deactivating the 'issues' and 'wiki' features)

convissor commented 12 years ago

Dude! We are on the same wavelength. I started working on this yesterday (that's what the "test" ... "test4" packages are about) and was about to commit stuff a few minutes before you created this issue. But then my cat took ill and had to run out to the vet (doctor). I pushed my changes up a few minutes ago. Then I saw you opened this issue!

Still to be done:

1) GitHub's API does not currently permit creating a project in a team's context. So regular users can't use the shell scripts / API to create the package. I've emailed GitHub's support about this. We'll see.

2) Adjust 2-to-github.sh to check/add the hook to email pear-cvs@php.net.

convissor commented 12 years ago

I got an email back from GitHub regarding the request to add a team parameter to the repo create API. They are going to "take a look at how we want to tackle this."

convissor commented 12 years ago

The pear-cvs email hook has been implemented.

CloCkWeRX commented 12 years ago

This is functional at the moment, I'll open other specific issues for tiny bugs

CloCkWeRX commented 12 years ago

Hmm - http://developer.github.com/v3/repos/ seems to have the ability to specify a team id

convissor commented 12 years ago

Yeah, they added team id today in response to my request. I'll implement it shortly.

CloCkWeRX commented 12 years ago

... and sadly the post doesn't seem to create the repo atm

CloCkWeRX commented 12 years ago

Neat :) It seems to be working well; barring my stupid windows setup.

convissor commented 12 years ago

I still need to implement the team id.

convissor commented 12 years ago

Done!