Skip to content

Commit

Permalink
Merge pull request #19 from deadpyxel/fix-goauthors-trigger
Browse files Browse the repository at this point in the history
git-coauthors: fix syntax error
  • Loading branch information
mcasper authored Oct 30, 2023
2 parents 28757fb + b05587c commit 12643fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion triggers/git-coauthors/participant-joined
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name = ENV.fetch("TUPLE_TRIGGER_FULL_NAME")
template_path = "#{Dir.home}/.gitmessage"
line = "Co-Authored-By: #{name} <#{email}>"

exists = File.exists?(template_path)
exists = File.exist?(template_path)

if exists && File.read(template_path).include?(line)
exit 0
Expand Down
2 changes: 1 addition & 1 deletion triggers/git-coauthors/participant-left
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ email = ENV.fetch("TUPLE_TRIGGER_EMAIL")
name = ENV.fetch("TUPLE_TRIGGER_FULL_NAME")
template_path = "#{Dir.home}/.gitmessage"

if !File.exists?(template_path)
if !File.exist?(template_path)
exit 0
end

Expand Down

0 comments on commit 12643fa

Please sign in to comment.