Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions internal/api/teams_config_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ func NewTeamsConfigHandler(db *sql.DB) *TeamsConfigHandler {
}
}

type teamsConfigResponse struct {
type TeamsConfigResponse struct {
Configured bool `json:"configured"`
BotAppID string `json:"bot_app_id,omitempty"`
TenantID string `json:"tenant_id,omitempty"`
}

type teamsConfigUpdateRequest struct {
type TeamsConfigUpdateRequest struct {
BotAppID string `json:"bot_app_id"`
BotPassword string `json:"bot_password"`
}
Expand All @@ -43,12 +43,12 @@ func (h *TeamsConfigHandler) GetTeamsConfig(c echo.Context) error {
cfg, err := h.storage.GetTeamsConfig(c.Request().Context(), permCtx.OrgID)
if err != nil {
if err == sql.ErrNoRows {
return c.JSON(http.StatusOK, teamsConfigResponse{Configured: false})
return c.JSON(http.StatusOK, TeamsConfigResponse{Configured: false})
}
return echo.NewHTTPError(http.StatusInternalServerError, "failed to get Teams config")
}

return c.JSON(http.StatusOK, teamsConfigResponse{
return c.JSON(http.StatusOK, TeamsConfigResponse{
Configured: true,
BotAppID: cfg.BotAppID,
TenantID: cfg.TenantID,
Expand All @@ -65,7 +65,7 @@ func (h *TeamsConfigHandler) UpdateTeamsConfig(c echo.Context) error {
return echo.NewHTTPError(http.StatusForbidden, "only owners can configure Teams integration")
}

var req teamsConfigUpdateRequest
var req TeamsConfigUpdateRequest
if err := c.Bind(&req); err != nil {
return echo.NewHTTPError(http.StatusBadRequest, "invalid request body")
}
Expand Down Expand Up @@ -97,7 +97,7 @@ func (h *TeamsConfigHandler) UpdateTeamsConfig(c echo.Context) error {

log.Printf("[TeamsConfig] Org %d: Teams bot configured with app ID %s", permCtx.OrgID, req.BotAppID)

return c.JSON(http.StatusOK, teamsConfigResponse{
return c.JSON(http.StatusOK, TeamsConfigResponse{
Configured: true,
BotAppID: cfg.BotAppID,
})
Expand Down
4 changes: 0 additions & 4 deletions osv-scanner.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
# OSV ignore list
[[ignoredVulns]]
id = "GHSA-64mm-vxmg-q3vj"
reason = "Webpack dev-server proxy configuration does not use the vulnerable host+path router option, and it is a development-only dependency that is never deployed to production."

[[ignoredVulns]]
id = "GO-2026-5932"
reason = "False positive — golang.org/x/crypto/openpgp sub-package is never imported by this project; only golang.org/x/crypto/bcrypt is used."
Expand Down
10 changes: 10 additions & 0 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
"react-dom": "^19.0.0",
"react-hook-form": "^7.62.0",
"react-hot-toast": "^2.6.0",
"react-icons": "^5.7.0",
"react-redux": "^9.2.0",
"react-router": "^7.18.0",
"react-router-dom": "^7.18.0",
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/Connector/ProviderSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const ProviderSelection: React.FC = () => {
<Button variant="outline" icon={<Icons.Bitbucket />} className="h-24 flex-col" onClick={() => navigate('/git/bitbucket/manual')}>
<span className="text-base mt-2">Bitbucket</span>
</Button>
<Button variant="outline" icon={<Icons.Git />} className="h-24 flex-col" onClick={() => navigate('/git/gitea/manual')}>
<Button variant="outline" icon={<Icons.Gitea />} className="h-24 flex-col" onClick={() => navigate('/git/gitea/manual')}>
<span className="text-base mt-2">Gitea</span>
</Button>
<Button variant="outline" icon={<Icons.AzureDevOps />} className="h-24 flex-col" onClick={() => navigate('/git/azuredevops/manual')}>
Expand Down
Loading
Loading