Skip to content

Commit

Permalink
Merge pull request #41 from rajesh-krishnan-tech/rename
Browse files Browse the repository at this point in the history
Rename hyperledger-updates to github-updates
  • Loading branch information
arsulegai authored Jul 3, 2021
2 parents 5fbdd9a + afd4ab6 commit a559f52
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Dependency directories (remove the comment below to include it)
# vendor/
hyperledger-updates
github-updates
.idea

# Ignore generated files
Expand Down
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text eol=lf
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# Dependency directories (remove the comment below to include it)
# vendor/
hyperledger-updates
github-updates
.idea

# Ignore generated files
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ COPY . /app
RUN make

WORKDIR /appbin
RUN cp /app/hyperledger-updates /appbin/
RUN cp /app/github-updates /appbin/
RUN rm -r /app

ENV PATH=${PATH}:/appbin

CMD ["hyperledger-updates"]
CMD ["github-updates"]
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ format_output=$(shell gofmt -l .)
all: clean build

clean:
rm -f hyperledger-updates
rm -f github-updates

build: lint-check unit-test
go build -o hyperledger-updates $(LDFLAGS) ./cmd
go build -o github-updates $(LDFLAGS) ./cmd

unit-test:
CGO_ENABLED=0 go test -v ./...
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,5 @@ You may optionally build and run the tool as

```bash
make
./hyperledger-updates
./github-updates
```
11 changes: 6 additions & 5 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,21 @@
package main

import (
"github.com/google/go-github/v33/github"
client2 "hyperledger-updates/internal/pkg/client"
"hyperledger-updates/internal/pkg/configs"
"hyperledger-updates/internal/pkg/utils"
client2 "github-updates/internal/pkg/client"
"github-updates/internal/pkg/configs"
"github-updates/internal/pkg/utils"
"log"
"os"
"path"
"path/filepath"
"sort"

"github.com/google/go-github/v33/github"
)

var AppVersion = ""

const AppName = "Hyperledger Updates"
const AppName = "GitHub Updates"

func init() {
if AppVersion == "" {
Expand Down
4 changes: 2 additions & 2 deletions deployments/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
version: "3.6"

services:
hyperledger-updates:
github-updates:
build:
context: ..
dockerfile: Dockerfile
container_name: hyperledger-updates
container_name: github-updates
environment:
- GITHUB_TOKEN=${GITHUB_TOKEN}
- CONFIG_FILE=/appbin/config.yaml
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module hyperledger-updates
module github-updates

go 1.15

Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package client

import "hyperledger-updates/internal/pkg/configs"
import "github-updates/internal/pkg/configs"

// GHClientInterface is for testing
type GHClientInterface interface {
Expand Down
4 changes: 2 additions & 2 deletions internal/pkg/client/ghclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package client
import (
ctx "context"
"errors"
"hyperledger-updates/internal/pkg/configs"
"hyperledger-updates/internal/pkg/utils"
"github-updates/internal/pkg/configs"
"github-updates/internal/pkg/utils"
"log"
"net/http"
"time"
Expand Down
5 changes: 3 additions & 2 deletions internal/pkg/configs/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
package configs

import (
"gopkg.in/yaml.v2"
"hyperledger-updates/internal/pkg/utils"
"github-updates/internal/pkg/utils"
"io/ioutil"
"log"

"gopkg.in/yaml.v2"
)

// Configuration reads the input config file
Expand Down

0 comments on commit a559f52

Please sign in to comment.