Skip to content

Commit 57c2bf6

Browse files
committed
Submitting review c3d32
Update the app and docs to reflect the code now being go-gettable This is in response to feedback in #1. I've also updated the codebase to reflect changes since the `gcloud app` command got moved out of the 'preview' component.
2 parents eb93671 + 32b3ae6 commit 57c2bf6

3 files changed

Lines changed: 7 additions & 13 deletions

File tree

Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
FROM gcr.io/google_appengine/go-compat
1616

1717
ENV 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

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,16 @@ with the `repo` scope, for it to use.
2727
Setup:
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

3634
Example Usage (after you've cloned the repo to mirror):
3735

3836
```shell
3937
git fetch origin '+refs/pull/*:refs/pull/*'
4038
git 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}
4240
git appraise pull
4341
git appraise push
4442
```
@@ -55,5 +53,5 @@ It uses the app engine datastore to store its configuration.
5553
To deploy:
5654

5755
```shell
58-
gcloud preview app deploy ./app.yaml
56+
gcloud app deploy ./app.yaml
5957
```

app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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
1616
runtime: custom
1717
vm: true
1818
api_version: 1

0 commit comments

Comments
 (0)