Skip to content

Commit

Permalink
Merge pull request #47 from jackstockley89/github-api
Browse files Browse the repository at this point in the history
github api
  • Loading branch information
jackstockley89 authored Mar 7, 2023
2 parents 48ce853 + facc729 commit d080195
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assignee/assignee.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

var (
token = flag.String("token", os.Getenv("GITHUB_OAUTH_TOKEN"), "GihHub Personel token string")
token = flag.String("token", os.Getenv("REPO_TOKEN"), "GihHub Personel token string")
githubrepo = flag.String("githubrepo", os.Getenv("GITHUB_REPOSITORY"), "Github Repository string")
githubref = flag.String("githubref", os.Getenv("GITHUB_REF"), "Github Respository PR ref string")
c = client.ClientConnect(*token)
Expand Down
2 changes: 1 addition & 1 deletion auth-check/auth-check.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
func PullRequestCheck() (bool, error) {
flag.Parse()

token := flag.String("token", os.Getenv("GITHUB_OAUTH_TOKEN"), "GihHub Personel token string")
token := flag.String("token", os.Getenv("REPO_TOKEN"), "GihHub Personel token string")
githubrepo := flag.String("githubrepo", os.Getenv("GITHUB_REPOSITORY"), "Github Repository string")
githubref := flag.String("githubref", os.Getenv("GITHUB_REF"), "Github Respository PR ref string")
c := client.ClientConnect(*token)
Expand Down
2 changes: 1 addition & 1 deletion close-pr/close-pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
func PullRequestClose() {
flag.Parse()

token := flag.String("token", os.Getenv("GITHUB_OAUTH_TOKEN"), "GihHub Personel token string")
token := flag.String("token", os.Getenv("REPO_TOKEN"), "GihHub Personel token string")
githubrepo := flag.String("githubrepo", os.Getenv("GITHUB_REPOSITORY"), "Github Repository string")
githubref := flag.String("githubref", os.Getenv("GITHUB_REF"), "Github Respository PR ref string")
c := client.ClientConnect(*token)
Expand Down
2 changes: 1 addition & 1 deletion version-check/version-check.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

var (
token = flag.String("token", os.Getenv("GITHUB_OAUTH_TOKEN"), "GihHub Personel token string")
token = flag.String("token", os.Getenv("REPO_TOKEN"), "GihHub Personel token string")
githubrepo = flag.String("githubrepo", os.Getenv("GITHUB_REPOSITORY"), "Github Repository string")
githubref = flag.String("githubref", os.Getenv("GITHUB_REF"), "Github Reference string")
output string
Expand Down

0 comments on commit d080195

Please sign in to comment.