Skip to content

Commit

Permalink
Simplify name
Browse files Browse the repository at this point in the history
  • Loading branch information
crohr committed May 30, 2024
1 parent 0e8dc92 commit 1934b93
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/pkgr/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,8 @@ def buildpacks
end

def name
if ENV['GITHUB_REPOSITORY']
ENV['GITHUB_REPOSITORY'].split("/").last
else
@table[:name] || ""
end
# handle GITHUB_REPOSITORY-like names
(@table[:name] || "").split("/").last
end

def valid?
Expand Down

0 comments on commit 1934b93

Please sign in to comment.