Repository navigation
feat: reset admin credentials and enforce PR size limit - #17
Merged
Merged
Conversation
…update related prompts
There was a problem hiding this comment.
Pull request overview
This PR adds a root-only recovery flow to reset the administrator username/password (without needing the previous password), revokes existing sessions when credentials change, and introduces a GitHub Actions workflow to automatically close pull requests exceeding a 5,000 changed-line limit.
Changes:
- Add
ResetAdminCredentialsto the auth service with input validation and session revocation on credential changes. - Update the root management CLI menu to reset admin credentials and keep the existing username when the prompt is left empty.
- Add a
pull_request_targetworkflow that enforces a 5,000 changed-line PR limit by closing oversized PRs.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| internal/auth/service.go | Adds ResetAdminCredentials recovery API layered on EnsureAdmin. |
| internal/auth/service_test.go | Adds tests for reset behavior, invalid input, and session revocation. |
| cmd/vocat/menu.go | Replaces “change password” flow with a “reset credentials” flow and new username prompt behavior. |
| cmd/vocat/menu_test.go | Adds a prompt regression test ensuring no “current password” prompt is shown. |
| .github/workflows/pr-size-limit.yml | Adds an Actions workflow to close PRs exceeding 5,000 changed lines and comment on the PR. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
MengMengCode
added a commit
that referenced
this pull request
Aug 15, 2026
…update related prompts (#17)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation
go test ./cmd/... ./internal/... ./web -count=1 -timeout 180s