Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
Add the FASTLANE_CI_BOT_API_TOKEN to the configuration controller /…
Browse files Browse the repository at this point in the history
… views.
  • Loading branch information
armcburney committed Apr 12, 2018
1 parent bba5f52 commit 791d9f1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/features/configuration/configuration_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def keys
# @return [Set[String]]
def post_parameter_list_for_validation
return Set.new(
%w(encryption_key ci_user_email ci_user_password repo_url
clone_user_email clone_user_api_token)
%w(encryption_key ci_user_email ci_user_password ci_user_api_token
repo_url clone_user_email clone_user_api_token)
)
end
end
Expand Down
16 changes: 15 additions & 1 deletion app/features/configuration/views/forms/_keys.erb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@
</div>
</li>

<li class="mdc-list-item">
<div class="mdl-textfield mdl-js-textfield">
<label for="input"><code>FASTLANE_CI_BOT_API_TOKEN</code></label>
<input
id="ci_user_api_token"
class="mdl-textfield__input"
type="password"
name="ci_user_api_token"
value="<%= keys[:ci_user_api_token] %>"
placeholder="Your GitHub bot's API token"
/>
</div>
</li>

<li class="mdc-list-item">
<div class="mdl-textfield mdl-js-textfield">
<label for="input"><code>FASTLANE_CI_REPO_URL</code></label>
Expand Down Expand Up @@ -76,7 +90,7 @@
<input
id="clone_user_api_token"
class="mdl-textfield__input"
type="text"
type="password"
name="clone_user_api_token"
value="<%= keys[:clone_user_api_token] %>"
placeholder="The API token for your GitHub account"
Expand Down

0 comments on commit 791d9f1

Please sign in to comment.