air_test 0.1.4.8 → 0.1.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/air_test/github_client.rb +8 -0
- data/lib/air_test/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41ee1020896ed0182621576cb1573609558918eaf4c85d9ab8db7b614e8712ec
|
4
|
+
data.tar.gz: ef767755f30717379d16dabbe6d02be580dc7eddbed31ff57d4836b869bd3743
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f48ef1eb88057ab4d8bb8d000238b30d315e3eb10f3e28a7e7659c97a080fd9ddd9d0435adab7db69fa1ce33cfd48668fa0ddbf559ae088f7261f14820059fe
|
7
|
+
data.tar.gz: 91e87b167e18552769891b65c1a2f004a8a9ea332a3a3b1591cc26ca8d4e697aab1b3f7e34930ce4d90d128c9d7e228ca5d1d11c90c527dbfe663a32c0ea2dbe
|
@@ -17,6 +17,14 @@ module AirTest
|
|
17
17
|
else
|
18
18
|
system("git checkout -b #{branch}")
|
19
19
|
end
|
20
|
+
# Set git user to bot
|
21
|
+
system('git config user.name "air-test-bot"')
|
22
|
+
system('git config user.email "jbarbedienne3@gmail.com"')
|
23
|
+
# Set remote to use bot token if available
|
24
|
+
if @github_token
|
25
|
+
repo_url = "github.com/#{@repo}.git"
|
26
|
+
system("git remote set-url origin https://#{@github_token}@#{repo_url}")
|
27
|
+
end
|
20
28
|
files.each { |f| system("git add -f #{f}") }
|
21
29
|
has_changes = !system("git diff --cached --quiet")
|
22
30
|
system("git commit -m '#{commit_message}'") if has_changes
|
data/lib/air_test/version.rb
CHANGED