Skip to content

Commit

Permalink
Fix links after moving repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdalmo committed Jun 14, 2018
1 parent febcbac commit 85b55b9
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 24 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion cmd/check/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"os"

"github.com/itsdalmo/github-pr-resource"
"github.com/telia-oss/github-pr-resource"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/in/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"os"

"github.com/itsdalmo/github-pr-resource"
"github.com/telia-oss/github-pr-resource"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/out/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"os"

"github.com/itsdalmo/github-pr-resource"
"github.com/telia-oss/github-pr-resource"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"
"time"

"github.com/itsdalmo/github-pr-resource"
"github.com/telia-oss/github-pr-resource"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion git.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion github.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions in_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 3 additions & 2 deletions mocks/mock_github.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions out_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 85b55b9

Please sign in to comment.