heroku_hatchet 7.1.2 → 7.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1896d0a09cfae27ff55b130431dcab677ab7ee5a11851c52d23f32abb1d773db
4
- data.tar.gz: 50827926cffb6d14894c4fac985bdaf9ac88645a4640e8d3e203cad6ba405e90
3
+ metadata.gz: 457db77bc6c69de2ef9179c0b3027ab3c8036b2e639dc924bbb3d4c6903b32b5
4
+ data.tar.gz: c42cf1ceb1a679f1f0dfdff99c60e6ba1b7cc442d5accd0182ac8b44b2d8add1
5
5
  SHA512:
6
- metadata.gz: '07895d1b500d6f1d40cd50786440aa4156703ebae3c9eb92af96e1662400f66d493ce413d104e882d338e6b8990136f8a2b967130298c7d154e4b2abd77c6227'
7
- data.tar.gz: 82766796bfabe96afed53caec7aa1e78d4a788583a544c2a07130eb66265f598f7c1d15b693bd6b95f79dea15c3c8336bb6bd4d0260c8fd802c067e5fd531331
6
+ metadata.gz: 4f7d83b39c17fb2700d4b3ddca889df1fd55a884017d09d72b178870d556b1948753d491fbeb02c9a35aee92c3de8d49d4c4aca6c2fd164ddfabe4f3bfe54168
7
+ data.tar.gz: 78e2a70ce5b00b69e1c98da9a36f691978e043db9e58976947011a3178e8bf6c63520dca01a471c58fdc24e5da7726408704bb0d46f2f0e8ed31ce61fe4ec5c0
@@ -1,5 +1,9 @@
1
1
  ## HEAD
2
2
 
3
+ ## 7.1.3
4
+
5
+ - Important!! Fix branch name detection on CircleCI (https://github.com/heroku/hatchet/pull/124)
6
+
3
7
  ## 7.1.2
4
8
 
5
9
  - Fix support for Hatchet deploying the 'main' branch (https://github.com/heroku/hatchet/pull/122)
@@ -30,7 +30,7 @@ module Hatchet
30
30
  return ENV['TRAVIS_PULL_REQUEST_BRANCH'] if ENV['TRAVIS_PULL_REQUEST_BRANCH'] && !ENV['TRAVIS_PULL_REQUEST_BRANCH'].empty?
31
31
  return ENV['TRAVIS_BRANCH'] if ENV['TRAVIS_BRANCH']
32
32
 
33
- out = `git describe --contains --all HEAD`.strip
33
+ out = `git rev-parse --abbrev-ref HEAD`.strip
34
34
  raise "Attempting to find current branch name. Error: Cannot describe git: #{out}" unless $?.success?
35
35
  out
36
36
  end
@@ -1,3 +1,3 @@
1
1
  module Hatchet
2
- VERSION = "7.1.2"
2
+ VERSION = "7.1.3"
3
3
  end
@@ -6,4 +6,10 @@ describe "GitAppTest" do
6
6
  expect(app.output).to match("INTENTIONAL ERROR")
7
7
  end
8
8
  end
9
+
10
+ it "returns the correct branch name on circle CI" do
11
+ skip("only runs on circle") unless ENV["CIRCLE_BRANCH"]
12
+
13
+ expect(Hatchet.git_branch).to eq(ENV["CIRCLE_BRANCH"])
14
+ end
9
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku_hatchet
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.2
4
+ version: 7.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Schneeman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-08 00:00:00.000000000 Z
11
+ date: 2020-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: platform-api