chore: delete github hook

This commit is contained in:
Muhsin Keloth
2025-04-21 20:04:39 +05:30
parent 1df0159f65
commit bf78dde488
3 changed files with 25 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
class Api::V1::Accounts::Integrations::GithubController < Api::V1::Accounts::BaseController
before_action :fetch_hook, only: [:destroy]
def destroy
@hook.destroy!
head :ok
end
def fetch_hook
@hook = Integrations::Hook.where(account: Current.account).find_by(app_id: 'github')
end
end

View File

@@ -21,7 +21,13 @@
"PLACEHOLDER": "Enter your Github Client ID",
"HELP": "Enter your Github Client ID",
"CANCEL": "Cancel",
"SUBMIT": "Connect"
"SUBMIT": "Connect",
"DELETE": {
"TITLE": "Are you sure you want to delete the integration?",
"MESSAGE": "Are you sure you want to delete the integration?",
"CONFIRM": "Yes, delete",
"CANCEL": "Cancel"
}
},
"HEADER": "Integrations",
"DESCRIPTION": "Chatwoot integrates with multiple tools and services to improve your team's efficiency. Explore the list below to configure your favorite apps.",
@@ -329,6 +335,7 @@
}
}
},
"CAPTAIN": {
"NAME": "Captain",
"HEADER_KNOW_MORE": "Know more",

View File

@@ -258,6 +258,11 @@ Rails.application.routes.draw do
get :linked_issues
end
end
resource :github, controller: 'github', only: [] do
collection do
delete :destroy
end
end
end
resources :working_hours, only: [:update]