Title: feat: implement user deletion via pullbasectl CLI by JohnAkindipe · Pull Request #2 · pullbase/pullbase · GitHub
Open Graph Title: feat: implement user deletion via pullbasectl CLI by JohnAkindipe · Pull Request #2 · pullbase/pullbase
X Title: feat: implement user deletion via pullbasectl CLI by JohnAkindipe · Pull Request #2 · pullbase/pullbase
Description: feat: implement user deletion via pullbasectl Summary Adds pullbasectl users delete — a CLI subcommand for deleting a user account. This was previously noted in the documentation as a planned capability (the web UI and REST API already supported deletion; the CLI did not). A companion docs PR will be opened at pullbase/docs that updates the CLI reference and workflow guide to reflect this change. Changes server/cmd/pullbasectl/users.go Added runUsersDelete — parses --user-id and --delete-acct-username flags, validates inputs, sends a DELETE /api/v1/users/{userID} request with the confirmation username in the request body, and prints a success message on receiving a 204 No Content response. server/cmd/pullbasectl/root.go Added newUsersDeleteCommand() and registered it under the users subcommand group alongside the existing list and create commands. server/cmd/pullbasectl/tokens_commands_test.go Added TestRunUsersDelete — spins up an httptest server, verifies the correct HTTP method, Authorization header, path value, and confirm_username body field, and asserts the success output. Usage pullbasectl users delete \ --server-url http://localhost:8080 \ --admin-token $ADMIN_JWT \ --user-id 7 \ --delete-acct-username "SomeAccount123" Flags Flag Required Description --user-id Yes Numeric ID of the user to delete --delete-acct-username Yes Username of the account — used as confirmation --server-url Yes Pullbase server base URL Testing cd server && go test -tags=test -count=1 -run TestRunUsersDelete ./cmd/pullbasectl/ All existing tests continue to pass: cd server && go test -tags=test ./... Summary by CodeRabbit New Features Added a new users delete subcommand to the CLI that enables user account deletion with built-in confirmation validation and authentication checks. Tests Added comprehensive test coverage for the delete user command, including API endpoint validation, authentication headers, and credential handling verification.
Open Graph Description: feat: implement user deletion via pullbasectl Summary Adds pullbasectl users delete — a CLI subcommand for deleting a user account. This was previously noted in the documentation as a planned capab...
X Description: feat: implement user deletion via pullbasectl Summary Adds pullbasectl users delete — a CLI subcommand for deleting a user account. This was previously noted in the documentation as a planned capab...
Opengraph URL: https://github.com/pullbase/pullbase/pull/2
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:88514a05-8a63-f8c5-90df-e13494710e52 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C0AA:F7C4C:B89FF6:F8C799:6B00F864 |
| html-safe-nonce | f8e1f070a3ee7cdb115054407ca10a6b2785e45892fe44ffe23444b00715035a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEFBOkY3QzRDOkI4OUZGNjpGOEM3OTk6NkIwMEY4NjQiLCJ2aXNpdG9yX2lkIjoiNzY2MjkyNDczOTcxMDYxMzYwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 67ac8f3f7e9429ec4730aba50604a7974bded6484d7277b3545f8a30bf507d47 |
| hovercard-subject-tag | pull_request:3755209816 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/pullbase/pullbase/pull/2/files |
| twitter:image | https://avatars.githubusercontent.com/u/85188938?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/85188938?s=400&v=4 |
| og:image:alt | feat: implement user deletion via pullbasectl Summary Adds pullbasectl users delete — a CLI subcommand for deleting a user account. This was previously noted in the documentation as a planned capab... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/pullbase/pullbase git https://github.com/pullbase/pullbase.git |
| octolytics-dimension-user_id | 209259101 |
| octolytics-dimension-user_login | pullbase |
| octolytics-dimension-repository_id | 1127492151 |
| octolytics-dimension-repository_nwo | pullbase/pullbase |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1127492151 |
| octolytics-dimension-repository_network_root_nwo | pullbase/pullbase |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width