summaryrefslogtreecommitdiff
path: root/app/controllers/groups/settings/ci_cd_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/groups/settings/ci_cd_controller.rb')
-rw-r--r--app/controllers/groups/settings/ci_cd_controller.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/controllers/groups/settings/ci_cd_controller.rb b/app/controllers/groups/settings/ci_cd_controller.rb
index 6d9a225b771..93f3eb2be6d 100644
--- a/app/controllers/groups/settings/ci_cd_controller.rb
+++ b/app/controllers/groups/settings/ci_cd_controller.rb
@@ -10,6 +10,13 @@ module Groups
define_secret_variables
end
+ def reset_registration_token
+ @group.reset_runners_token!
+
+ flash[:notice] = 'New runners registration token has been generated!'
+ redirect_to group_settings_ci_cd_path
+ end
+
private
def define_secret_variables