pantograph 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/pantograph/lib/pantograph/actions/artifactory.rb +15 -15
- data/pantograph/lib/pantograph/actions/bundle_install.rb +33 -33
- data/pantograph/lib/pantograph/actions/changelog_from_git_commits.rb +14 -14
- data/pantograph/lib/pantograph/actions/cloc.rb +15 -15
- data/pantograph/lib/pantograph/actions/danger.rb +26 -26
- data/pantograph/lib/pantograph/actions/download.rb +3 -3
- data/pantograph/lib/pantograph/actions/ensure_git_branch.rb +4 -4
- data/pantograph/lib/pantograph/actions/ensure_git_status_clean.rb +10 -10
- data/pantograph/lib/pantograph/actions/erb.rb +12 -12
- data/pantograph/lib/pantograph/actions/get_github_release.rb +10 -10
- data/pantograph/lib/pantograph/actions/github_api.rb +20 -20
- data/pantograph/lib/pantograph/actions/gradle.rb +67 -85
- data/pantograph/lib/pantograph/actions/jira.rb +14 -14
- data/pantograph/lib/pantograph/actions/make_changelog_from_jenkins.rb +9 -9
- data/pantograph/lib/pantograph/actions/nexus_upload.rb +37 -37
- data/pantograph/lib/pantograph/actions/number_of_commits.rb +6 -6
- data/pantograph/lib/pantograph/actions/push_git_tags.rb +7 -7
- data/pantograph/lib/pantograph/actions/push_to_git_remote.rb +19 -19
- data/pantograph/lib/pantograph/actions/reset_git_repo.rb +9 -9
- data/pantograph/lib/pantograph/actions/rsync.rb +14 -14
- data/pantograph/lib/pantograph/actions/set_github_release.rb +19 -19
- data/pantograph/lib/pantograph/actions/slack.rb +28 -28
- data/pantograph/lib/pantograph/actions/sonar.rb +32 -32
- data/pantograph/lib/pantograph/actions/ssh.rb +22 -22
- data/pantograph/lib/pantograph/actions/twitter.rb +14 -14
- data/pantograph/lib/pantograph/actions/update_pantograph.rb +16 -16
- data/pantograph/lib/pantograph/actions/zip.rb +12 -12
- data/pantograph/lib/pantograph/helper/gradle_helper.rb +2 -3
- data/pantograph/lib/pantograph/junit_generator.rb +1 -1
- data/pantograph/lib/pantograph/lane_manager.rb +1 -1
- data/pantograph/lib/pantograph/plugins/template/.rubocop.yml +2 -0
- data/pantograph/lib/pantograph/setup/setup.rb +6 -6
- data/pantograph/lib/pantograph/version.rb +1 -1
- data/pantograph_core/lib/pantograph_core/helper.rb +1 -1
- data/pantograph_core/lib/pantograph_core/print_table.rb +1 -1
- data/pantograph_core/lib/pantograph_core/swag.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b9b017be98b53404fa2d59cbcc9edb243dc584be9d3978ceda00a090addf513
|
4
|
+
data.tar.gz: bcc7d743d80743a645df10295ccfc6a5af9c0592d355e8570fdc25abde4b2a25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf434a1ad39999109d18b699dad8e78f1b4286ad6911fe48f1fe345b344361ede87a616324dd75edec6c019f8420a4bded9d83aaba814171eb50ca43a64c69d3
|
7
|
+
data.tar.gz: 32b1d0b5d2d8cde5c7edeea7e18b2f4e8f7605918384f83a0f89e60573797c2fd4ab9c936fedb3086ae37c66dcdc971a6109ae5fd07d14083e3ac13922c23720
|
@@ -71,7 +71,7 @@ module Pantograph
|
|
71
71
|
endpoint: "https://artifactory.example.com/artifactory/",
|
72
72
|
file: "example.ipa", # File to upload
|
73
73
|
repo: "angular_artifacts", # Artifactory repo
|
74
|
-
repo_path: "/
|
74
|
+
repo_path: "/project/appname/example-major.minor.jar" # Path to place the artifact including its filename
|
75
75
|
)'
|
76
76
|
]
|
77
77
|
end
|
@@ -83,70 +83,70 @@ module Pantograph
|
|
83
83
|
def self.available_options
|
84
84
|
[
|
85
85
|
PantographCore::ConfigItem.new(key: :file,
|
86
|
-
env_name: "
|
86
|
+
env_name: "ARTIFACTORY_FILE",
|
87
87
|
description: "File to be uploaded to artifactory",
|
88
88
|
optional: false),
|
89
89
|
PantographCore::ConfigItem.new(key: :repo,
|
90
|
-
env_name: "
|
90
|
+
env_name: "ARTIFACTORY_REPO",
|
91
91
|
description: "Artifactory repo to put the file in",
|
92
92
|
optional: false),
|
93
93
|
PantographCore::ConfigItem.new(key: :repo_path,
|
94
|
-
env_name: "
|
94
|
+
env_name: "ARTIFACTORY_REPO_PATH",
|
95
95
|
description: "Path to deploy within the repo, including filename",
|
96
96
|
optional: false),
|
97
97
|
PantographCore::ConfigItem.new(key: :endpoint,
|
98
|
-
env_name: "
|
98
|
+
env_name: "ARTIFACTORY_ENDPOINT",
|
99
99
|
description: "Artifactory endpoint",
|
100
100
|
optional: false),
|
101
101
|
PantographCore::ConfigItem.new(key: :username,
|
102
|
-
env_name: "
|
102
|
+
env_name: "ARTIFACTORY_USERNAME",
|
103
103
|
description: "Artifactory username",
|
104
104
|
optional: false),
|
105
105
|
PantographCore::ConfigItem.new(key: :password,
|
106
|
-
env_name: "
|
106
|
+
env_name: "ARTIFACTORY_PASSWORD",
|
107
107
|
description: "Artifactory password",
|
108
108
|
sensitive: true,
|
109
109
|
optional: false),
|
110
110
|
PantographCore::ConfigItem.new(key: :properties,
|
111
|
-
env_name: "
|
111
|
+
env_name: "ARTIFACTORY_PROPERTIES",
|
112
112
|
description: "Artifact properties hash",
|
113
113
|
is_string: false,
|
114
114
|
default_value: {},
|
115
115
|
optional: true),
|
116
116
|
PantographCore::ConfigItem.new(key: :ssl_pem_file,
|
117
|
-
env_name: "
|
117
|
+
env_name: "ARTIFACTORY_SSL_PEM_FILE",
|
118
118
|
description: "Location of pem file to use for ssl verification",
|
119
119
|
default_value: nil,
|
120
120
|
optional: true),
|
121
121
|
PantographCore::ConfigItem.new(key: :ssl_verify,
|
122
|
-
env_name: "
|
122
|
+
env_name: "ARTIFACTORY_SSL_VERIFY",
|
123
123
|
description: "Verify SSL",
|
124
124
|
is_string: false,
|
125
125
|
default_value: true,
|
126
126
|
optional: true),
|
127
127
|
PantographCore::ConfigItem.new(key: :proxy_username,
|
128
|
-
env_name: "
|
128
|
+
env_name: "ARTIFACTORY_PROXY_USERNAME",
|
129
129
|
description: "Proxy username",
|
130
130
|
default_value: nil,
|
131
131
|
optional: true),
|
132
132
|
PantographCore::ConfigItem.new(key: :proxy_password,
|
133
|
-
env_name: "
|
133
|
+
env_name: "ARTIFACTORY_PROXY_PASSWORD",
|
134
134
|
description: "Proxy password",
|
135
135
|
sensitive: true,
|
136
136
|
default_value: nil,
|
137
137
|
optional: true),
|
138
138
|
PantographCore::ConfigItem.new(key: :proxy_address,
|
139
|
-
env_name: "
|
139
|
+
env_name: "ARTIFACTORY_PROXY_ADDRESS",
|
140
140
|
description: "Proxy address",
|
141
141
|
default_value: nil,
|
142
142
|
optional: true),
|
143
143
|
PantographCore::ConfigItem.new(key: :proxy_port,
|
144
|
-
env_name: "
|
144
|
+
env_name: "ARTIFACTORY_PROXY_PORT",
|
145
145
|
description: "Proxy port",
|
146
146
|
default_value: nil,
|
147
147
|
optional: true),
|
148
148
|
PantographCore::ConfigItem.new(key: :read_timeout,
|
149
|
-
env_name: "
|
149
|
+
env_name: "ARTIFACTORY_READ_TIMEOUT",
|
150
150
|
description: "Read timeout",
|
151
151
|
default_value: nil,
|
152
152
|
optional: true)
|
@@ -66,88 +66,88 @@ module Pantograph
|
|
66
66
|
def self.available_options
|
67
67
|
[
|
68
68
|
PantographCore::ConfigItem.new(key: :binstubs,
|
69
|
-
env_name:
|
70
|
-
description:
|
69
|
+
env_name: 'BUNDLE_INSTALL_BINSTUBS',
|
70
|
+
description: 'Generate bin stubs for bundled gems to ./bin',
|
71
71
|
optional: true),
|
72
72
|
PantographCore::ConfigItem.new(key: :clean,
|
73
|
-
env_name:
|
74
|
-
description:
|
73
|
+
env_name: 'BUNDLE_INSTALL_CLEAN',
|
74
|
+
description: 'Run bundle clean automatically after install',
|
75
75
|
is_string: false,
|
76
76
|
default_value: false),
|
77
77
|
PantographCore::ConfigItem.new(key: :full_index,
|
78
|
-
env_name:
|
79
|
-
description:
|
78
|
+
env_name: 'BUNDLE_INSTALL_FULL_INDEX',
|
79
|
+
description: 'Use the rubygems modern index instead of the API endpoint',
|
80
80
|
is_string: false,
|
81
81
|
default_value: false),
|
82
82
|
PantographCore::ConfigItem.new(key: :gemfile,
|
83
|
-
env_name:
|
84
|
-
description:
|
83
|
+
env_name: 'BUNDLE_INSTALL_GEMFILE',
|
84
|
+
description: 'Use the specified gemfile instead of Gemfile',
|
85
85
|
optional: true),
|
86
86
|
PantographCore::ConfigItem.new(key: :jobs,
|
87
|
-
env_name:
|
88
|
-
description:
|
87
|
+
env_name: 'BUNDLE_INSTALL_JOBS',
|
88
|
+
description: 'Install gems using parallel workers',
|
89
89
|
is_string: false,
|
90
90
|
type: Boolean,
|
91
91
|
optional: true),
|
92
92
|
PantographCore::ConfigItem.new(key: :local,
|
93
|
-
env_name:
|
94
|
-
description:
|
93
|
+
env_name: 'BUNDLE_INSTALL_LOCAL',
|
94
|
+
description: 'Do not attempt to fetch gems remotely and use the gem cache instead',
|
95
95
|
is_string: false,
|
96
96
|
default_value: false),
|
97
97
|
PantographCore::ConfigItem.new(key: :deployment,
|
98
|
-
env_name:
|
99
|
-
description:
|
98
|
+
env_name: 'BUNDLE_INSTALL_DEPLOYMENT',
|
99
|
+
description: 'Install using defaults tuned for deployment and CI environments',
|
100
100
|
is_string: false,
|
101
101
|
default_value: false),
|
102
102
|
PantographCore::ConfigItem.new(key: :no_cache,
|
103
|
-
env_name:
|
103
|
+
env_name: 'BUNDLE_INSTALL_NO_CACHE',
|
104
104
|
description: "Don't update the existing gem cache",
|
105
105
|
is_string: false,
|
106
106
|
default_value: false),
|
107
107
|
PantographCore::ConfigItem.new(key: :no_prune,
|
108
|
-
env_name:
|
108
|
+
env_name: 'BUNDLE_INSTALL_NO_PRUNE',
|
109
109
|
description: "Don't remove stale gems from the cache",
|
110
110
|
is_string: false,
|
111
111
|
default_value: false),
|
112
112
|
PantographCore::ConfigItem.new(key: :path,
|
113
|
-
env_name:
|
114
|
-
description:
|
113
|
+
env_name: 'BUNDLE_INSTALL_PATH',
|
114
|
+
description: 'Specify a different path than the system default ($BUNDLE_PATH or $GEM_HOME). Bundler will remember this value for future installs on this machine',
|
115
115
|
optional: true),
|
116
116
|
PantographCore::ConfigItem.new(key: :system,
|
117
|
-
env_name:
|
118
|
-
description:
|
117
|
+
env_name: 'BUNDLE_INSTALL_SYSTEM',
|
118
|
+
description: 'Install to the system location ($BUNDLE_PATH or $GEM_HOME) even if the bundle was previously installed somewhere else for this application',
|
119
119
|
is_string: false,
|
120
120
|
default_value: false),
|
121
121
|
PantographCore::ConfigItem.new(key: :quiet,
|
122
|
-
env_name:
|
123
|
-
description:
|
122
|
+
env_name: 'BUNDLE_INSTALL_QUIET',
|
123
|
+
description: 'Only output warnings and errors',
|
124
124
|
is_string: false,
|
125
125
|
default_value: false),
|
126
126
|
PantographCore::ConfigItem.new(key: :retry,
|
127
|
-
env_name:
|
128
|
-
description:
|
127
|
+
env_name: 'BUNDLE_INSTALL_RETRY',
|
128
|
+
description: 'Retry network and git requests that have failed',
|
129
129
|
is_string: false,
|
130
130
|
type: Boolean,
|
131
131
|
optional: true),
|
132
132
|
PantographCore::ConfigItem.new(key: :shebang,
|
133
|
-
env_name:
|
133
|
+
env_name: 'BUNDLE_INSTALL_SHEBANG',
|
134
134
|
description: "Specify a different shebang executable name than the default (usually 'ruby')",
|
135
135
|
optional: true),
|
136
136
|
PantographCore::ConfigItem.new(key: :standalone,
|
137
|
-
env_name:
|
138
|
-
description:
|
137
|
+
env_name: 'BUNDLE_INSTALL_STANDALONE',
|
138
|
+
description: 'Make a bundle that can work without the Bundler runtime',
|
139
139
|
optional: true),
|
140
140
|
PantographCore::ConfigItem.new(key: :trust_policy,
|
141
|
-
env_name:
|
142
|
-
description:
|
141
|
+
env_name: 'BUNDLE_INSTALL_TRUST_POLICY',
|
142
|
+
description: 'Sets level of security when dealing with signed gems. Accepts `LowSecurity`, `MediumSecurity` and `HighSecurity` as values',
|
143
143
|
optional: true),
|
144
144
|
PantographCore::ConfigItem.new(key: :without,
|
145
|
-
env_name:
|
146
|
-
description:
|
145
|
+
env_name: 'BUNDLE_INSTALL_WITHOUT',
|
146
|
+
description: 'Exclude gems that are part of the specified named group',
|
147
147
|
optional: true),
|
148
148
|
PantographCore::ConfigItem.new(key: :with,
|
149
|
-
env_name:
|
150
|
-
description:
|
149
|
+
env_name: 'BUNDLE_INSTALL_WITH',
|
150
|
+
description: 'Include gems that are part of the specified named group',
|
151
151
|
optional: true)
|
152
152
|
]
|
153
153
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Pantograph
|
2
2
|
module Actions
|
3
3
|
module SharedValues
|
4
|
-
|
4
|
+
PANT_CHANGELOG ||= :PANT_CHANGELOG
|
5
5
|
end
|
6
6
|
|
7
7
|
class ChangelogFromGitCommitsAction < Action
|
@@ -43,7 +43,7 @@ module Pantograph
|
|
43
43
|
end
|
44
44
|
|
45
45
|
changelog = changelog.gsub("\n\n", "\n") if changelog # as there are duplicate newlines
|
46
|
-
Actions.lane_context[SharedValues::
|
46
|
+
Actions.lane_context[SharedValues::PANT_CHANGELOG] = changelog
|
47
47
|
|
48
48
|
if params[:quiet] == false
|
49
49
|
puts("")
|
@@ -69,14 +69,14 @@ module Pantograph
|
|
69
69
|
|
70
70
|
def self.output
|
71
71
|
[
|
72
|
-
['
|
72
|
+
['PANT_CHANGELOG', 'The changelog string generated from the collected git commit messages']
|
73
73
|
]
|
74
74
|
end
|
75
75
|
|
76
76
|
def self.available_options
|
77
77
|
[
|
78
78
|
PantographCore::ConfigItem.new(key: :between,
|
79
|
-
env_name: '
|
79
|
+
env_name: 'PANT_CHANGELOG_FROM_GIT_COMMITS_BETWEEN',
|
80
80
|
description: 'Array containing two Git revision values between which to collect messages, you mustn\'t use it with :commits_count key at the same time',
|
81
81
|
optional: true,
|
82
82
|
is_string: false,
|
@@ -91,7 +91,7 @@ module Pantograph
|
|
91
91
|
end
|
92
92
|
end),
|
93
93
|
PantographCore::ConfigItem.new(key: :commits_count,
|
94
|
-
env_name: '
|
94
|
+
env_name: 'PANT_CHANGELOG_FROM_GIT_COMMITS_COUNT',
|
95
95
|
description: 'Number of commits to include in changelog, you mustn\'t use it with :between key at the same time',
|
96
96
|
optional: true,
|
97
97
|
is_string: false,
|
@@ -101,46 +101,46 @@ module Pantograph
|
|
101
101
|
UI.user_error!(":commits_count must be >= 1") unless value.to_i >= 1
|
102
102
|
end),
|
103
103
|
PantographCore::ConfigItem.new(key: :path,
|
104
|
-
env_name: '
|
104
|
+
env_name: 'PANT_CHANGELOG_FROM_GIT_COMMITS_PATH',
|
105
105
|
description: 'Path of the git repository',
|
106
106
|
optional: true,
|
107
107
|
default_value: './'),
|
108
108
|
PantographCore::ConfigItem.new(key: :pretty,
|
109
|
-
env_name: '
|
109
|
+
env_name: 'PANT_CHANGELOG_FROM_GIT_COMMITS_PRETTY',
|
110
110
|
description: 'The format applied to each commit while generating the collected value',
|
111
111
|
optional: true,
|
112
112
|
default_value: '%B',
|
113
113
|
type: String),
|
114
114
|
PantographCore::ConfigItem.new(key: :date_format,
|
115
|
-
env_name: '
|
115
|
+
env_name: 'PANT_CHANGELOG_FROM_GIT_COMMITS_DATE_FORMAT',
|
116
116
|
description: 'The date format applied to each commit while generating the collected value',
|
117
117
|
optional: true,
|
118
118
|
type: String),
|
119
119
|
PantographCore::ConfigItem.new(key: :ancestry_path,
|
120
|
-
env_name: '
|
120
|
+
env_name: 'PANT_CHANGELOG_FROM_GIT_COMMITS_ANCESTRY_PATH',
|
121
121
|
description: 'Whether or not to use ancestry-path param',
|
122
122
|
optional: true,
|
123
123
|
default_value: false,
|
124
124
|
is_string: false),
|
125
125
|
PantographCore::ConfigItem.new(key: :tag_match_pattern,
|
126
|
-
env_name: '
|
126
|
+
env_name: 'PANT_CHANGELOG_FROM_GIT_COMMITS_TAG_MATCH_PATTERN',
|
127
127
|
description: 'A glob(7) pattern to match against when finding the last git tag',
|
128
128
|
optional: true),
|
129
129
|
PantographCore::ConfigItem.new(key: :match_lightweight_tag,
|
130
|
-
env_name: '
|
130
|
+
env_name: 'PANT_CHANGELOG_FROM_GIT_COMMITS_MATCH_LIGHTWEIGHT_TAG',
|
131
131
|
description: 'Whether or not to match a lightweight tag when searching for the last one',
|
132
132
|
optional: true,
|
133
133
|
default_value: true,
|
134
134
|
is_string: false),
|
135
135
|
PantographCore::ConfigItem.new(key: :quiet,
|
136
|
-
env_name: '
|
136
|
+
env_name: 'PANT_CHANGELOG_FROM_GIT_COMMITS_TAG_QUIET',
|
137
137
|
description: 'Whether or not to disable changelog output',
|
138
138
|
optional: true,
|
139
139
|
default_value: false,
|
140
140
|
is_string: false),
|
141
141
|
PantographCore::ConfigItem.new(key: :include_merges,
|
142
142
|
deprecated: "Use `:merge_commit_filtering` instead",
|
143
|
-
env_name: '
|
143
|
+
env_name: 'PANT_CHANGELOG_FROM_GIT_COMMITS_INCLUDE_MERGES',
|
144
144
|
description: "Whether or not to include any commits that are merges",
|
145
145
|
optional: true,
|
146
146
|
is_string: false,
|
@@ -149,7 +149,7 @@ module Pantograph
|
|
149
149
|
UI.important("The :include_merges option is deprecated. Please use :merge_commit_filtering instead") unless value.nil?
|
150
150
|
end),
|
151
151
|
PantographCore::ConfigItem.new(key: :merge_commit_filtering,
|
152
|
-
env_name: '
|
152
|
+
env_name: 'PANT_CHANGELOG_FROM_GIT_COMMITS_MERGE_COMMIT_FILTERING',
|
153
153
|
description: "Controls inclusion of merge commits when collecting the changelog. Valid values: #{GIT_MERGE_COMMIT_FILTERING_OPTIONS.map { |o| "`:#{o}`" }.join(', ')}",
|
154
154
|
optional: true,
|
155
155
|
default_value: 'include_merges',
|
@@ -22,49 +22,49 @@ module Pantograph
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def self.description
|
25
|
-
|
25
|
+
'Generates a Code Count that can be read by Jenkins (xml format)'
|
26
26
|
end
|
27
27
|
|
28
28
|
def self.details
|
29
29
|
[
|
30
|
-
|
31
|
-
|
30
|
+
'This action will run cloc to generate a SLOC report that the Jenkins SLOCCount plugin can read.',
|
31
|
+
'See [https://wiki.jenkins-ci.org/display/JENKINS/SLOCCount+Plugin](https://wiki.jenkins-ci.org/display/JENKINS/SLOCCount+Plugin) and [https://github.com/AlDanial/cloc](https://github.com/AlDanial/cloc) for more information.'
|
32
32
|
].join("\n")
|
33
33
|
end
|
34
34
|
|
35
35
|
def self.available_options
|
36
36
|
[
|
37
37
|
PantographCore::ConfigItem.new(key: :binary_path,
|
38
|
-
env_name:
|
39
|
-
description:
|
38
|
+
env_name: 'CLOC_BINARY_PATH',
|
39
|
+
description: 'Where the cloc binary lives on your system (full path including "cloc")',
|
40
40
|
optional: true,
|
41
41
|
type: String,
|
42
42
|
default_value: '/usr/local/bin/cloc'),
|
43
43
|
PantographCore::ConfigItem.new(key: :exclude_dir,
|
44
|
-
env_name:
|
45
|
-
description:
|
44
|
+
env_name: 'CLOC_EXCLUDE_DIR',
|
45
|
+
description: 'Comma separated list of directories to exclude', # a short description of this parameter
|
46
46
|
optional: true,
|
47
47
|
type: String),
|
48
48
|
PantographCore::ConfigItem.new(key: :output_directory,
|
49
|
-
env_name:
|
50
|
-
description:
|
49
|
+
env_name: 'CLOC_OUTPUT_DIRECTORY',
|
50
|
+
description: 'Where to put the generated report file',
|
51
51
|
type: String,
|
52
52
|
default_value: "build"),
|
53
53
|
PantographCore::ConfigItem.new(key: :source_directory,
|
54
|
-
env_name:
|
55
|
-
description:
|
54
|
+
env_name: 'CLOC_SOURCE_DIRECTORY',
|
55
|
+
description: 'Where to look for the source code (relative to the project root folder)',
|
56
56
|
type: String,
|
57
|
-
default_value:
|
57
|
+
default_value: ''),
|
58
58
|
PantographCore::ConfigItem.new(key: :xml,
|
59
|
-
env_name:
|
60
|
-
description:
|
59
|
+
env_name: 'CLOC_XML',
|
60
|
+
description: 'Should we generate an XML File (if false, it will generate a plain text file)?',
|
61
61
|
is_string: false,
|
62
62
|
default_value: true)
|
63
63
|
]
|
64
64
|
end
|
65
65
|
|
66
66
|
def self.authors
|
67
|
-
[
|
67
|
+
['intere']
|
68
68
|
end
|
69
69
|
|
70
70
|
def self.is_supported?(platform)
|
@@ -29,75 +29,75 @@ module Pantograph
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def self.description
|
32
|
-
|
32
|
+
'Runs `danger` for the project'
|
33
33
|
end
|
34
34
|
|
35
35
|
def self.details
|
36
36
|
[
|
37
|
-
|
38
|
-
|
37
|
+
'Formalize your Pull Request etiquette.',
|
38
|
+
'More information: [https://github.com/danger/danger](https://github.com/danger/danger).'
|
39
39
|
].join("\n")
|
40
40
|
end
|
41
41
|
|
42
42
|
def self.available_options
|
43
43
|
[
|
44
44
|
PantographCore::ConfigItem.new(key: :use_bundle_exec,
|
45
|
-
env_name:
|
46
|
-
description:
|
45
|
+
env_name: 'DANGER_USE_BUNDLE_EXEC',
|
46
|
+
description: 'Use bundle exec when there is a Gemfile presented',
|
47
47
|
is_string: false,
|
48
48
|
default_value: true),
|
49
49
|
PantographCore::ConfigItem.new(key: :verbose,
|
50
|
-
env_name:
|
51
|
-
description:
|
50
|
+
env_name: 'DANGER_VERBOSE',
|
51
|
+
description: 'Show more debugging information',
|
52
52
|
is_string: false,
|
53
53
|
default_value: false),
|
54
54
|
PantographCore::ConfigItem.new(key: :danger_id,
|
55
|
-
env_name:
|
56
|
-
description:
|
55
|
+
env_name: 'DANGER_ID',
|
56
|
+
description: 'The identifier of this Danger instance',
|
57
57
|
type: String,
|
58
58
|
optional: true),
|
59
59
|
PantographCore::ConfigItem.new(key: :dangerfile,
|
60
|
-
env_name:
|
61
|
-
description:
|
60
|
+
env_name: 'DANGER_DANGERFILE',
|
61
|
+
description: 'The location of your Dangerfile',
|
62
62
|
type: String,
|
63
63
|
optional: true),
|
64
64
|
PantographCore::ConfigItem.new(key: :github_api_token,
|
65
|
-
env_name:
|
66
|
-
description:
|
65
|
+
env_name: 'DANGER_GITHUB_API_TOKEN',
|
66
|
+
description: 'GitHub API token for danger',
|
67
67
|
sensitive: true,
|
68
68
|
type: String,
|
69
69
|
optional: true),
|
70
70
|
PantographCore::ConfigItem.new(key: :fail_on_errors,
|
71
|
-
env_name:
|
72
|
-
description:
|
71
|
+
env_name: 'DANGER_FAIL_ON_ERRORS',
|
72
|
+
description: 'Should always fail the build process, defaults to false',
|
73
73
|
is_string: false,
|
74
74
|
optional: true,
|
75
75
|
default_value: false),
|
76
76
|
PantographCore::ConfigItem.new(key: :new_comment,
|
77
|
-
env_name:
|
78
|
-
description:
|
77
|
+
env_name: 'DANGER_NEW_COMMENT',
|
78
|
+
description: 'Makes Danger post a new comment instead of editing its previous one',
|
79
79
|
is_string: false,
|
80
80
|
optional: true,
|
81
81
|
default_value: false),
|
82
82
|
PantographCore::ConfigItem.new(key: :remove_previous_comments,
|
83
|
-
env_name:
|
84
|
-
description:
|
83
|
+
env_name: 'DANGER_REMOVE_PREVIOUS_COMMENT',
|
84
|
+
description: 'Makes Danger remove all previous comment and create a new one in the end of the list',
|
85
85
|
is_string: false,
|
86
86
|
optional: true,
|
87
87
|
default_value: false),
|
88
88
|
PantographCore::ConfigItem.new(key: :base,
|
89
|
-
env_name:
|
90
|
-
description:
|
89
|
+
env_name: 'DANGER_BASE',
|
90
|
+
description: 'A branch/tag/commit to use as the base of the diff. [master|dev|stable]',
|
91
91
|
type: String,
|
92
92
|
optional: true),
|
93
93
|
PantographCore::ConfigItem.new(key: :head,
|
94
|
-
env_name:
|
95
|
-
description:
|
94
|
+
env_name: 'DANGER_HEAD',
|
95
|
+
description: 'A branch/tag/commit to use as the head. [master|dev|stable]',
|
96
96
|
type: String,
|
97
97
|
optional: true),
|
98
98
|
PantographCore::ConfigItem.new(key: :pr,
|
99
|
-
env_name:
|
100
|
-
description:
|
99
|
+
env_name: 'DANGER_PR',
|
100
|
+
description: 'Run danger on a specific pull request. e.g. \"https://github.com/danger/danger/pull/518\"',
|
101
101
|
type: String,
|
102
102
|
optional: true)
|
103
103
|
]
|
@@ -124,7 +124,7 @@ module Pantograph
|
|
124
124
|
end
|
125
125
|
|
126
126
|
def self.authors
|
127
|
-
[
|
127
|
+
['KrauseFx']
|
128
128
|
end
|
129
129
|
end
|
130
130
|
end
|