2020-02-28 13:09:07 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Groups::DeployTokensController < Groups::ApplicationController
|
2020-07-01 17:08:51 -04:00
|
|
|
before_action :authorize_destroy_deploy_token!
|
2020-02-28 13:09:07 -05:00
|
|
|
|
2020-10-06 08:08:38 -04:00
|
|
|
feature_category :continuous_delivery
|
2022-04-29 08:10:13 -04:00
|
|
|
urgency :low
|
2020-10-06 08:08:38 -04:00
|
|
|
|
2020-02-28 13:09:07 -05:00
|
|
|
def revoke
|
2022-03-09 16:07:04 -05:00
|
|
|
Groups::DeployTokens::RevokeService.new(@group, current_user, params).execute
|
2020-02-28 13:09:07 -05:00
|
|
|
|
2020-04-21 11:21:10 -04:00
|
|
|
redirect_to group_settings_repository_path(@group, anchor: 'js-deploy-tokens')
|
2020-02-28 13:09:07 -05:00
|
|
|
end
|
|
|
|
end
|