diff --git a/Dockerfile b/Dockerfile index 9da7140e..9a867410 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,15 @@ FROM golang:1.10 as builder -MAINTAINER itsdalmo -ADD . /go/src/github.com/itsdalmo/github-pr-resource -WORKDIR /go/src/github.com/itsdalmo/github-pr-resource +MAINTAINER telia-oss +ADD . /go/src/github.com/telia-oss/github-pr-resource +WORKDIR /go/src/github.com/telia-oss/github-pr-resource ENV TARGET linux ENV ARCH amd64 RUN make build FROM alpine/git:latest as resource -COPY --from=builder /go/src/github.com/itsdalmo/github-pr-resource/check /opt/resource/check -COPY --from=builder /go/src/github.com/itsdalmo/github-pr-resource/in /opt/resource/in -COPY --from=builder /go/src/github.com/itsdalmo/github-pr-resource/out /opt/resource/out +COPY --from=builder /go/src/github.com/telia-oss/github-pr-resource/check /opt/resource/check +COPY --from=builder /go/src/github.com/telia-oss/github-pr-resource/in /opt/resource/in +COPY --from=builder /go/src/github.com/telia-oss/github-pr-resource/out /opt/resource/out RUN chmod +x /opt/resource/* FROM resource diff --git a/Makefile b/Makefile index 344f1781..6fd1ff5a 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ TARGET ?= darwin ARCH ?= amd64 -DOCKER_REPO=itsdalmo/github-pr-resource +DOCKER_REPO=telia-oss/github-pr-resource SRC=$(shell find . -type f -name '*.go' -not -path "./vendor/*") default: test diff --git a/README.md b/README.md index a8296023..c783ef0c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ## Github PR resource -[![Build Status](https://travis-ci.org/itsdalmo/github-pr-resource.svg?branch=master)](https://travis-ci.org/itsdalmo/github-pr-resource) -[![Go Report Card](https://goreportcard.com/badge/github.com/itsdalmo/github-pr-resource)](https://goreportcard.com/report/github.com/itsdalmo/github-pr-resource) +[![Build Status](https://travis-ci.org/telia-oss/github-pr-resource.svg?branch=master)](https://travis-ci.org/telia-oss/github-pr-resource) +[![Go Report Card](https://goreportcard.com/badge/github.com/telia-oss/github-pr-resource)](https://goreportcard.com/report/github.com/telia-oss/github-pr-resource) A Concourse resource for pull requests on Github. Written in Go and based on the [Github V4 (GraphQL) API](https://developer.github.com/v4/object/commit/). Inspired by [the original](https://github.com/jtarchie/github-pullrequest-resource), with some important differences: @@ -74,7 +74,7 @@ resource_types: - name: pull-request type: docker-image source: - repository: itsdalmo/github-pr-resource + repository: telia-oss/github-pr-resource resources: - name: pull-request diff --git a/check_test.go b/check_test.go index 3de1eacd..69035739 100644 --- a/check_test.go +++ b/check_test.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/golang/mock/gomock" - "github.com/itsdalmo/github-pr-resource" - "github.com/itsdalmo/github-pr-resource/mocks" + "github.com/telia-oss/github-pr-resource" + "github.com/telia-oss/github-pr-resource/mocks" ) var ( diff --git a/cmd/check/main.go b/cmd/check/main.go index 534cfc11..ced4814d 100644 --- a/cmd/check/main.go +++ b/cmd/check/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/itsdalmo/github-pr-resource" + "github.com/telia-oss/github-pr-resource" ) func main() { diff --git a/cmd/in/main.go b/cmd/in/main.go index 956405ff..65f31598 100644 --- a/cmd/in/main.go +++ b/cmd/in/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/itsdalmo/github-pr-resource" + "github.com/telia-oss/github-pr-resource" ) func main() { diff --git a/cmd/out/main.go b/cmd/out/main.go index 7217da43..269ecf93 100644 --- a/cmd/out/main.go +++ b/cmd/out/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/itsdalmo/github-pr-resource" + "github.com/telia-oss/github-pr-resource" ) func main() { diff --git a/e2e/e2e_test.go b/e2e/e2e_test.go index 1f73275b..1f7da8fa 100644 --- a/e2e/e2e_test.go +++ b/e2e/e2e_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/itsdalmo/github-pr-resource" + "github.com/telia-oss/github-pr-resource" ) var ( diff --git a/git.go b/git.go index f0c3d790..c3807495 100644 --- a/git.go +++ b/git.go @@ -11,7 +11,7 @@ import ( ) // Git interface for testing purposes. -//go:generate mockgen -destination=mocks/mock_git.go -package=mocks github.com/itsdalmo/github-pr-resource Git +//go:generate mockgen -destination=mocks/mock_git.go -package=mocks github.com/telia-oss/github-pr-resource Git type Git interface { Init() error Pull(string) error diff --git a/github.go b/github.go index 9058f3b6..d7a7e345 100644 --- a/github.go +++ b/github.go @@ -15,7 +15,7 @@ import ( ) // Github for testing purposes. -//go:generate mockgen -destination=mocks/mock_github.go -package=mocks github.com/itsdalmo/github-pr-resource Github +//go:generate mockgen -destination=mocks/mock_github.go -package=mocks github.com/telia-oss/github-pr-resource Github type Github interface { ListOpenPullRequests() ([]*PullRequest, error) ListModifiedFiles(int) ([]string, error) diff --git a/in_test.go b/in_test.go index f238f9c7..fd3dfa7a 100644 --- a/in_test.go +++ b/in_test.go @@ -11,9 +11,9 @@ import ( "time" "github.com/golang/mock/gomock" - "github.com/itsdalmo/github-pr-resource" - "github.com/itsdalmo/github-pr-resource/mocks" "github.com/shurcooL/githubv4" + "github.com/telia-oss/github-pr-resource" + "github.com/telia-oss/github-pr-resource/mocks" ) func TestGet(t *testing.T) { diff --git a/mocks/mock_github.go b/mocks/mock_github.go index 7187c0ef..55f316cd 100644 --- a/mocks/mock_github.go +++ b/mocks/mock_github.go @@ -5,9 +5,10 @@ package mocks import ( - gomock "github.com/golang/mock/gomock" - github_pr_resource "github.com/itsdalmo/github-pr-resource" reflect "reflect" + + gomock "github.com/golang/mock/gomock" + github_pr_resource "github.com/telia-oss/github-pr-resource" ) // MockGithub is a mock of Github interface diff --git a/out_test.go b/out_test.go index 4decb258..fce10ca4 100644 --- a/out_test.go +++ b/out_test.go @@ -7,8 +7,8 @@ import ( "time" "github.com/golang/mock/gomock" - "github.com/itsdalmo/github-pr-resource" - "github.com/itsdalmo/github-pr-resource/mocks" + "github.com/telia-oss/github-pr-resource" + "github.com/telia-oss/github-pr-resource/mocks" ) func TestPut(t *testing.T) {