File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515FROM gcr.io/google_appengine/go-compat
1616
1717ENV GOPATH "/app/"
18- RUN go get github.com/google/git-appraise/git-appraise && \
19- go get github.com/google/go-github/github && \
20- go get google.golang.org/appengine && \
21- go get golang.org/x/oauth2
18+ RUN go get github.com/google/git-pull-request-mirror/app
2219
23- ADD . /app/src/github-mirror
24- RUN go build -tags appenginevm -o /app/_ah/exe github-mirror/app
20+ RUN go build -tags appenginevm -o /app/_ah/exe github.com/google/git-pull-request-mirror/app
Original file line number Diff line number Diff line change @@ -27,18 +27,16 @@ with the `repo` scope, for it to use.
2727Setup:
2828
2929``` shell
30- go get github.com/google/git-appraise/git-appraise
31- go get github.com/google/go-github/github
32- go get golang.org/x/oauth2
33- go build -o ~ /bin/mirror batch/batch.go
30+ go get github.com/google/git-pull-request-mirror/batch
31+ go build -o ~ /bin/pr-mirror " ${GOPATH} /src/github.com/google/git-pull-request-mirror/batch/batch.go"
3432```
3533
3634Example Usage (after you've cloned the repo to mirror):
3735
3836``` shell
3937git fetch origin ' +refs/pull/*:refs/pull/*'
4038git appraise pull
41- ~ /bin/mirror --target ${GITHUB_USER} /${GITHUB_REPO} --local ./ -auth-token ${YOUR_AUTH_TOKEN}
39+ ~ /bin/pr- mirror --target ${GITHUB_USER} /${GITHUB_REPO} --local ./ -auth-token ${YOUR_AUTH_TOKEN}
4240git appraise pull
4341git appraise push
4442```
@@ -55,5 +53,5 @@ It uses the app engine datastore to store its configuration.
5553To deploy:
5654
5755``` shell
58- gcloud preview app deploy ./app.yaml
56+ gcloud app deploy ./app.yaml
5957```
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- module : github-mirror
15+ service : github-mirror
1616runtime : custom
1717vm : true
1818api_version : 1
You can’t perform that action at this time.
0 commit comments