diff --git a/main.go b/main.go index 71f447b..750603e 100644 --- a/main.go +++ b/main.go @@ -17,11 +17,8 @@ func ParseActionConfig(ctx githubactions.GitHubContext) (*CreatePrConfig, error) return nil, errors.New("base branch name cannot be empty") } - rawRepo := strings.Split(githubactions.GetInput("GITHUB_REPOSITORY"), "/") - if len(rawRepo) != 2 { - return nil, fmt.Errorf("incorrect number of string from string: %v, %d", os.Getenv("GITHUB_REPOSITORY"), len(rawRepo)) - } - repo := rawRepo[1] + repo := ctx.Repository + fmt.Printf("The repository is %v\n", repo) title := githubactions.GetInput("title") if title == "" {