techknowlogick
70c7ee11f2
update renovate config
2026-05-14 16:24:31 +00:00
techknowlogick
6134351048
bump go deps
v0.14.1
2026-05-14 12:01:28 -04:00
Renovate Bot
8be4dae66e
fix(deps): update module github.com/go-authgate/sdk-go to v0.11.0 ( #988 )
...
Reviewed-on: https://gitea.com/gitea/tea/pulls/988
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
Co-committed-by: Renovate Bot <renovate-bot@gitea.com >
2026-05-14 16:00:02 +00:00
Renovate Bot
b8dcb8a442
fix(deps): update module golang.org/x/term to v0.43.0 ( #989 )
...
Reviewed-on: https://gitea.com/gitea/tea/pulls/989
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
Co-committed-by: Renovate Bot <renovate-bot@gitea.com >
2026-05-14 15:59:53 +00:00
Renovate Bot
01632d927e
fix(deps): update module code.gitea.io/sdk/gitea to v0.25.1 ( #991 )
...
Reviewed-on: https://gitea.com/gitea/tea/pulls/991
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
Co-committed-by: Renovate Bot <renovate-bot@gitea.com >
2026-05-14 15:59:44 +00:00
Renovate Bot
1b79be7cea
fix(deps): update module github.com/urfave/cli/v3 to v3.9.0 ( #992 )
...
Reviewed-on: https://gitea.com/gitea/tea/pulls/992
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
Co-committed-by: Renovate Bot <renovate-bot@gitea.com >
2026-05-14 15:59:34 +00:00
Minjie Fang
2cc45f1cce
fix(deps): update github.com/urfave/cli to v3.9.0 ( #993 )
...
Fix https://gitea.com/gitea/tea/issues/975
Reviewed-on: https://gitea.com/gitea/tea/pulls/993
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Minjie Fang <wingsallen@gmail.com >
Co-committed-by: Minjie Fang <wingsallen@gmail.com >
2026-05-14 05:15:33 +00:00
Minjie Fang
2b64762a32
Fix login edit to check config existence ( #987 )
...
Fix https://gitea.com/gitea/tea/issues/561
Reviewed-on: https://gitea.com/gitea/tea/pulls/987
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Minjie Fang <wingsallen@gmail.com >
Co-committed-by: Minjie Fang <wingsallen@gmail.com >
2026-05-10 01:28:06 +00:00
Carlos Grillet
19dd8b1b4b
fix(deps): update module code.gitea.io/sdk/gitea to v0.25.0 ( #984 )
...
Bumping gitea SDK to version v0.25.0
Currently there is an issue when users try to use SSH to authenticate to a gitea server. The issue is already reported here #983
The problem was that `*gitea.HTTPSign` embeds `ssh.Signer` (not `ssh.AlgorithmSigner`).
`httpsig v1.2.4` type-asserts the signer to `ssh.AlgorithmSigner` for RSA keys and panics because `*HTTPSign` doesn't expose `SignWithAlgorithm`.
Fix: SDK v0.25.0 adds `SignWithAlgorithm` to `HTTPSign`, satisfying `ssh.AlgorithmSigner`.
Reviewed-on: https://gitea.com/gitea/tea/pulls/984
Reviewed-by: techknowlogick <9+techknowlogick@noreply.gitea.com >
Co-authored-by: Carlos Grillet <carlosbeta5000@gmail.com >
Co-committed-by: Carlos Grillet <carlosbeta5000@gmail.com >
2026-05-07 17:29:39 +00:00
cpamayo
f617f26da0
fix: pass the name flag value as the organization FullName ( #832 )
...
This change proposes that, when creating an organization using the CLI, the value provided in the `--name` parameter is used as the organization `FullName`.
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-on: https://gitea.com/gitea/tea/pulls/832
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: cpamayo <anderson.carl3@mayo.edu >
Co-committed-by: cpamayo <anderson.carl3@mayo.edu >
2026-05-07 00:14:22 +00:00
Minjie Fang
a5ecf06c2a
Fix login edit to open one editor only ( #977 )
...
Fix https://gitea.com/gitea/tea/issues/906
Reviewed-on: https://gitea.com/gitea/tea/pulls/977
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Minjie Fang <wingsallen@gmail.com >
Co-committed-by: Minjie Fang <wingsallen@gmail.com >
2026-05-07 00:12:12 +00:00
Renovate Bot
e686e8d0bd
fix(deps): update module github.com/go-authgate/sdk-go to v0.10.0 ( #976 )
...
This PR contains the following updates:
| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/ ) | [Confidence](https://docs.renovatebot.com/merge-confidence/ ) |
|---|---|---|---|
| [github.com/go-authgate/sdk-go](https://github.com/go-authgate/sdk-go ) | `v0.9.0` → `v0.10.0` |  |  |
---
### Release Notes
<details>
<summary>go-authgate/sdk-go (github.com/go-authgate/sdk-go)</summary>
### [`v0.10.0`](https://github.com/go-authgate/sdk-go/releases/tag/v0.10.0 )
[Compare Source](https://github.com/go-authgate/sdk-go/compare/v0.9.0...v0.10.0 )
#### Changelog
##### Others
- [`5b43693`](5b436935ca ): feat(jwksauth)!: align with upstream JWT\_PRIVATE\_CLAIM\_PREFIX ([#​27](https://github.com/go-authgate/sdk-go/issues/27 )) ([@​appleboy](https://github.com/appleboy ))
</details>
---
### Configuration
📅 **Schedule**: (UTC)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNjAuNiIsInVwZGF0ZWRJblZlciI6IjQzLjE2MC42IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Reviewed-on: https://gitea.com/gitea/tea/pulls/976
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
Co-committed-by: Renovate Bot <renovate-bot@gitea.com >
2026-05-04 02:06:58 +00:00
ghainer
22ff601988
feat: add additional admin users subcommands ( #842 )
...
## Summary
Adds admin user management commands to the tea CLI, enabling admins to create, edit, and delete user accounts.
## Features Added
### Admin User Management Commands
- **Create users**: `tea admin users create` - Create new user accounts with configurable options
- **Edit users**: `tea admin users edit <username>` - Update user properties including password, permissions, and profile settings
- **Delete users**: `tea admin users delete <username>` - Remove user accounts with confirmation prompt
### Implementation Details
#### Create Command (`admin users create`)
- Required: username
- Optional: email, full name, password
- Flags: admin, restricted, prohibit-login, visibility
- Password input: command-line flag, file, stdin, or interactive prompt with confirmation
- Default: users must change password on first login (use `--no-must-change-password` to skip)
- Post-creation updates for admin/restricted/prohibit-login (not available during creation)
#### Edit Command (`admin users edit`)
- Updates only explicitly provided fields (partial updates)
- Password change support with the same input methods as create
- Editable fields:
- Profile: email, full name, description, website, location
- Permissions: admin/restricted/active status
- Settings: visibility, max repo creation limits
- Advanced: git hooks, local imports, organization creation
- Default: password changes require password change on next login (use `--no-must-change-password` to skip)
#### Delete Command (`admin users delete`)
- Confirmation prompt by default
- `--confirm` flag to skip confirmation
- Displays user details before deletion
### Security Features
- Secure password input via interactive prompts (hidden input)
- Multiple password input methods: flag, file, stdin, interactive
- Password confirmation for interactive mode
- Whitespace trimming for file/stdin inputs
### Password Input Methods
1. **Command-line flag**: `--password <value>`
2. **File input**: `--password-file <file>` - Read from file
3. **Stdin input**: `--password-stdin` - Read from stdin
4. **Interactive prompt**: Automatically prompts if password not provided (with confirmation)
For edit command: Use `--password=""` to trigger interactive prompt.
## Usage Examples
```bash
# Create a new user
tea admin users create --username john --email john@example.com --admin --no-must-change-password
# Create with interactive password prompt
tea admin users create jane --email jane@example.com
# Edit user properties
tea admin users edit john --email newemail@example.com --restricted
# Change user password (will prompt if not provided)
tea admin users edit john --password=""
tea admin users edit john --password-file /path/to/password.txt
# Delete a user (with confirmation)
tea admin users delete olduser
# Delete without confirmation
tea admin users delete olduser --confirm
```
## Related Issue
Resolves #161
## Testing
- Unit tests for all commands
- Flag validation and default value tests
- Password input method tests (file, stdin, interactive)
- Test coverage for all user option structures
- Confirmation logic tests for delete command
## Technical Details
- Uses Gitea SDK `AdminCreateUser`, `AdminEditUser`, and `AdminDeleteUser` APIs
- Follows existing tea CLI patterns and conventions
- Handles fields not available during creation via post-creation updates
- Partial update support for edit command (only updates explicitly set fields)
- Consistent with other tea commands (webhooks, secrets) in password handling and confirmation patterns
All tests pass and the implementation integrates with existing tea CLI infrastructure.
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-on: https://gitea.com/gitea/tea/pulls/842
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: ghainer <gehainer@gmail.com >
Co-committed-by: ghainer <gehainer@gmail.com >
2026-05-02 23:50:36 +00:00
Brandon Fryslie
9d6ae4bf02
feat(ssh-keys): add ssh-keys command to manage SSH public keys ( #940 )
...
## Summary
- Adds `tea ssh-keys` command group (aliases: `ssh-key`, `keys`) under the SETUP category
- Mirrors the interface of `gh ssh-key add/list/delete`
- Three subcommands: `add <keyfile>`, `list`, `delete <id>`
## Commands
\`\`\`sh
tea ssh-keys add ~/.ssh/id_ed25519.pub # title defaults to filename stem
tea ssh-keys add ~/.ssh/id_rsa.pub --title "work laptop"
tea ssh-keys add ~/.ssh/deploy.pub --read-only # authentication-only key
tea ssh-keys list
tea ssh-keys list --output json
tea ssh-keys delete 42 # prompts for confirmation
tea ssh-keys delete 42 --force # skip prompt
\`\`\`
## Test plan
- [x] `make lint` — 0 issues
- [x] `make fmt-check` — passes
- [x] `go test ./cmd/sshkeys/... -run TestKeyTitle` — unit tests pass (no server needed)
- [ ] Integration tests with live Gitea instance:
\`\`\`sh
GITEA_TEA_TEST_URL=https://your-gitea \
GITEA_TEA_TEST_TOKEN=<token> \
go test ./cmd/sshkeys/... -v -run TestSSHKey
\`\`\`
Exercises full add → SDK-verify → delete → 404-verify lifecycle.
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Brandon Fryslie <530235+brandon-fryslie@users.noreply.github.com >
Reviewed-on: https://gitea.com/gitea/tea/pulls/940
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Brandon Fryslie <186614+brandroid@noreply.gitea.com >
Co-committed-by: Brandon Fryslie <186614+brandroid@noreply.gitea.com >
2026-05-02 18:24:08 +00:00
Matěj Cepl
2985824ab0
Multiple PRs ( #848 )
...
This is an effort to allow tea pr review to work with multiple reviews.
Fixes : #847
Reviewed-on: https://gitea.com/gitea/tea/pulls/848
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Matěj Cepl <mcepl@cepl.eu >
Co-committed-by: Matěj Cepl <mcepl@cepl.eu >
2026-05-02 17:01:40 +00:00
Lunny Xiao
83b718ac34
Move integration tests to tests/ directory ( #973 )
...
Reviewed-on: https://gitea.com/gitea/tea/pulls/973
2026-05-02 04:18:45 +00:00
Renovate Bot
1f6fd97fc1
fix(deps): update module github.com/go-authgate/sdk-go to v0.9.0 ( #974 )
...
This PR contains the following updates:
| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/ ) | [Confidence](https://docs.renovatebot.com/merge-confidence/ ) |
|---|---|---|---|
| [github.com/go-authgate/sdk-go](https://github.com/go-authgate/sdk-go ) | `v0.8.0` → `v0.9.0` |  |  |
---
### Release Notes
<details>
<summary>go-authgate/sdk-go (github.com/go-authgate/sdk-go)</summary>
### [`v0.9.0`](https://github.com/go-authgate/sdk-go/releases/tag/v0.9.0 )
[Compare Source](https://github.com/go-authgate/sdk-go/compare/v0.8.0...v0.9.0 )
#### Changelog
##### Documentation updates
- [`86d33f3`](86d33f315c ): docs(jwksauth): tighten readme table column widths ([@​appleboy](https://github.com/appleboy ))
##### Others
- [`545d96f`](545d96fd43 ): refactor(jwksauth)!: rename Tenant to Domain and add Tenant sub-claim ([#​25](https://github.com/go-authgate/sdk-go/issues/25 )) ([@​appleboy](https://github.com/appleboy ))
- [`1e73580`](1e73580c87 ): feat(jwksauth)!: adopt slog-style Logger interface ([#​24](https://github.com/go-authgate/sdk-go/issues/24 )) ([@​appleboy](https://github.com/appleboy ))
- [`7af1bc4`](7af1bc4637 ): test(jwksauth): fix stale Tenant references in policy reject test ([#​26](https://github.com/go-authgate/sdk-go/issues/26 )) ([@​appleboy](https://github.com/appleboy ))
</details>
---
Reviewed-on: https://gitea.com/gitea/tea/pulls/974
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
Co-committed-by: Renovate Bot <renovate-bot@gitea.com >
2026-05-02 02:04:23 +00:00
Renovate Bot
27e6083e23
fix(deps): update module github.com/go-authgate/sdk-go to v0.8.0 ( #972 )
...
This PR contains the following updates:
| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/ ) | [Confidence](https://docs.renovatebot.com/merge-confidence/ ) |
|---|---|---|---|
| [github.com/go-authgate/sdk-go](https://github.com/go-authgate/sdk-go ) | `v0.7.0` → `v0.8.0` |  |  |
---
### Release Notes
<details>
<summary>go-authgate/sdk-go (github.com/go-authgate/sdk-go)</summary>
### [`v0.8.0`](https://github.com/go-authgate/sdk-go/releases/tag/v0.8.0 )
[Compare Source](https://github.com/go-authgate/sdk-go/compare/v0.7.0...v0.8.0 )
#### Changelog
##### Refactor
- [`62ccff0`](62ccff06c8 ): refactor(jwksauth): share OIDC discovery and drop tenant cache ([#​23](https://github.com/go-authgate/sdk-go/issues/23 )) ([@​appleboy](https://github.com/appleboy ))
- [`088ee3b`](088ee3bd2d ): refactor(sdk): harden HTTP reads and improve code quality ([#​18](https://github.com/go-authgate/sdk-go/issues/18 )) ([@​appleboy](https://github.com/appleboy ))
- [`aa17bc2`](aa17bc2373 ): refactor: simplify oauth client and token source flows ([#​22](https://github.com/go-authgate/sdk-go/issues/22 )) ([@​appleboy](https://github.com/appleboy ))
</details>
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-on: https://gitea.com/gitea/tea/pulls/972
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
Co-committed-by: Renovate Bot <renovate-bot@gitea.com >
2026-05-01 23:16:49 +00:00
Lunny Xiao
5d2d1a6e0c
fix(webhook): Fix when creating webhook, branch filter and auth header cannot be added ( #964 )
...
Fix #963
Reviewed-on: https://gitea.com/gitea/tea/pulls/964
2026-05-01 16:45:52 +00:00
Oleksii Zaremskyi
88421bb888
fix: read --assignee flag value instead of nonexistent --assigned-to ( #971 )
...
## What this PR does
`tea issues list --assignee USERNAME` currently returns every issue regardless of the assignee value — even nonexistent users return a full unfiltered list. Discovered against **tea v0.14.0** (with go-sdk v0.24.1) and reproduced on current `master` (commit `dd81b33`). This PR fixes that.
## Root cause
Two distinct bugs on the same flag, both in `cmd/issues/list.go`:
1. **Per-repo path** (`tea issues list --repo OWNER/REPO --assignee USER`): the code reads `ctx.String("assigned-to")` for `AssignedBy`, but the flag is defined as `--assignee` in `cmd/flags/issue_pr.go:66`. The lookup always returns `""`, so the SDK omits the `assigned_by` query parameter and the API returns everything.
2. **Global path** (`tea issues list --assignee USER`, no `--repo`): this hits `/repos/issues/search`, which silently ignores `assigned_by`. Even after fix #1 the no-repo form would still return unfiltered results. Verified directly:
- `GET /repos/issues/search?assigned_by=USER&owner=ORG&state=open` → all open issues
- `GET /repos/issues/search?assigned=true&owner=ORG&state=open` → only the issues assigned to the authenticated user
The endpoint only supports `assigned=true` (boolean self-filter), not arbitrary-user filtering, and `ListIssueOption` doesn't expose that field. Rather than misleading the caller, the no-repo path now returns a clear error.
## Changes
Both changes are in `cmd/issues/list.go`:
1. Read `ctx.String("assignee")` instead of the non-existent flag name `"assigned-to"` (lines 80 and 97).
2. In the no-`--repo` branch, return `errors.New("--assignee requires --repo (...)")` when the flag is set.
`cmd/pulls/list.go` does not expose an assignee filter, so it's unaffected. The `--author` mapping (`CreatedBy ← ctx.String("author")`) was already correct and is the model the fix follows.
## Manual verification
Tested against a local Gitea instance with three open issues (only one assigned to the test user):
| Command | Before | After |
|---|---|---|
| `tea issues list --repo X --assignee me` | all 3 | only the 1 assigned ✓ |
| `tea issues list --repo X --assignee nonexistent` | all 3 | `Error: not found` ✓ |
| `tea issues list --repo X --author me` | only the 1 (control) | unchanged ✓ |
| `tea issues list --assignee me` (no `--repo`) | all 3 (silent) | clear error ✓ |
| `tea issues list` (no flags) | all 3 | unchanged ✓ |
---------
Co-authored-by: claude_1 <claude_1@bot.gqx.lol >
Reviewed-on: https://gitea.com/gitea/tea/pulls/971
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Oleksii Zaremskyi <grossqx@gmail.com >
Co-committed-by: Oleksii Zaremskyi <grossqx@gmail.com >
2026-05-01 16:39:48 +00:00
Wesley Moore
dd81b33cec
Fix man page section ( #969 )
...
Co-authored-by: Wesley Moore <wes@wezm.net >
Co-committed-by: Wesley Moore <wes@wezm.net >
2026-04-29 15:04:55 +00:00
Renovate Bot
b100d4c939
fix(deps): update module github.com/go-authgate/sdk-go to v0.7.0 ( #970 )
...
Reviewed-on: https://gitea.com/gitea/tea/pulls/970
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
Co-committed-by: Renovate Bot <renovate-bot@gitea.com >
2026-04-29 03:28:15 +00:00
Renovate Bot
892905d482
chore(deps): update docker.gitea.com/gitea docker tag to v1.26.1 ( #968 )
...
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [docker.gitea.com/gitea](https://github.com/go-gitea/gitea ) | service | patch | `1.26.0` → `1.26.1` |
---
### Release Notes
<details>
<summary>go-gitea/gitea (docker.gitea.com/gitea)</summary>
### [`v1.26.1`](https://github.com/go-gitea/gitea/releases/tag/v1.26.1 )
[Compare Source](https://github.com/go-gitea/gitea/compare/v1.26.0...v1.26.1 )
- BUGFIXES \* Add event.schedule context for schedule actions task ([#​37320](https://github.com/go-gitea/gitea/issues/37320 )) ([#​37348](https://github.com/go-gitea/gitea/issues/37348 )) \* Fix an issue where changing an organization's visibility caused problems when users had forked its repositories. ([#​37324](https://github.com/go-gitea/gitea/issues/37324 )) ([#​37344](https://github.com/go-gitea/gitea/issues/37344 )) \* Use modern "git update-index --cacheinfo" syntax to support more file names ([#​37338](https://github.com/go-gitea/gitea/issues/37338 )) ([#​37343](https://github.com/go-gitea/gitea/issues/37343 )) \* Fix URL related escaping for oauth2 ([#​37334](https://github.com/go-gitea/gitea/issues/37334 )) ([#​37340](https://github.com/go-gitea/gitea/issues/37340 )) \* When the requested arch rpm is missing fall back to noarch ([#​37236](https://github.com/go-gitea/gitea/issues/37236 )) ([#​37339](https://github.com/go-gitea/gitea/issues/37339 )) \* Fix actions concurrency groups cross-branch leak ([#​37311](https://github.com/go-gitea/gitea/issues/37311 )) ([#​37331](https://github.com/go-gitea/gitea/issues/37331 )) \* Fix bug when accessing user badges ([#​37321](https://github.com/go-gitea/gitea/issues/37321 )) ([#​37329](https://github.com/go-gitea/gitea/issues/37329 )) \* Fix AppFullLink ([#​37325](https://github.com/go-gitea/gitea/issues/37325 )) ([#​37328](https://github.com/go-gitea/gitea/issues/37328 )) \* Fix container auth for public instance ([#​37290](https://github.com/go-gitea/gitea/issues/37290 )) ([#​37294](https://github.com/go-gitea/gitea/issues/37294 )) \* Enhance GetActionWorkflow to support fallback references ([#​37189](https://github.com/go-gitea/gitea/issues/37189 )) ([#​37283](https://github.com/go-gitea/gitea/issues/37283 )) \* Fix vite manifest update masking build errors ([#​37279](https://github.com/go-gitea/gitea/issues/37279 )) ([#​37310](https://github.com/go-gitea/gitea/issues/37310 )) \* Fix Mermaid diagrams failing when node labels contain line breaks ([#​37296](https://github.com/go-gitea/gitea/issues/37296 )) ([#​37299](https://github.com/go-gitea/gitea/issues/37299 )) \* Use TriggerEvent instead of Event in workflow runs API response for scheduled runs ([#​37288](https://github.com/go-gitea/gitea/issues/37288 )) [#​37360](https://github.com/go-gitea/gitea/issues/37360 ) \* Add URL to Learn more about blocking a user. ([#​37355](https://github.com/go-gitea/gitea/issues/37355 )) [#​37367](https://github.com/go-gitea/gitea/issues/37367 ) \* Fix button layout shift when collapsing file tree in editor ([#​37363](https://github.com/go-gitea/gitea/issues/37363 )) [#​37375](https://github.com/go-gitea/gitea/issues/37375 ) \* Fix org team assignee/reviewer lookups for team member permissions ([#​37365](https://github.com/go-gitea/gitea/issues/37365 )) [#​37391](https://github.com/go-gitea/gitea/issues/37391 ) \* Fix repo init README EOL ([#​37388](https://github.com/go-gitea/gitea/issues/37388 )) [#​37399](https://github.com/go-gitea/gitea/issues/37399 ) \* Fix: dump with default zip type produces uncompressed zip ([#​37401](https://github.com/go-gitea/gitea/issues/37401 ))[#​37402](https://github.com/go-gitea/gitea/issues/37402 )
</details>
---
### Configuration
📅 **Schedule**: (UTC)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNDAuMCIsInVwZGF0ZWRJblZlciI6IjQzLjE0MC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Reviewed-on: https://gitea.com/gitea/tea/pulls/968
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
Co-committed-by: Renovate Bot <renovate-bot@gitea.com >
2026-04-25 18:12:06 +00:00
Alain Thiffault
5103496232
fix(pagination): replace Page:-1 with explicit pagination loops ( #967 )
...
## Summary
\`Page: -1\` in the Gitea SDK calls \`setDefaults()\` which sets both \`Page=0\` and \`PageSize=0\`, resulting in \`?page=0&limit=0\` being sent to the server. The server interprets \`limit=0\` as "use server default" (typically 30 items via \`DEFAULT_PAGING_NUM\`), not "return everything". Any resource beyond the first page of results was silently invisible.
This affected 8 call sites, with the most user-visible impact being \`tea issues edit --add-labels\` and \`tea pulls edit --add-labels\` silently failing to apply labels on repositories with more than ~30 labels.
## Affected call sites
| File | API call | User-visible impact |
|---|---|---|
| \`modules/task/labels.go\` | \`ListRepoLabels\` | \`issues/pulls edit --add-labels\` fails silently |
| \`modules/interact/issue_create.go\` | \`ListRepoLabels\` | interactive label picker missing labels |
| \`modules/task/pull_review_comment.go\` | \`ListPullReviews\` | review comments truncated |
| \`modules/task/login_ssh.go\` | \`ListMyPublicKeys\` | SSH key auto-detection fails |
| \`modules/task/login_create.go\` | \`ListAccessTokens\` | token name deduplication misses existing tokens |
| \`cmd/pulls.go\` | \`ListPullReviews\` | PR detail view missing reviews |
| \`cmd/releases/utils.go\` | \`ListReleases\` | tag lookup fails on repos with many releases |
| \`cmd/attachments/delete.go\` | \`ListReleaseAttachments\` | attachment deletion fails when many attachments exist |
## Fix
Each call site is replaced with an explicit pagination loop that follows \`resp.NextPage\` until all pages are exhausted.
Reviewed-on: https://gitea.com/gitea/tea/pulls/967
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Alain Thiffault <athiffau@effectivemomentum.com >
Co-committed-by: Alain Thiffault <athiffau@effectivemomentum.com >
2026-04-23 17:06:42 +00:00
Nicolas
a58c35c3e2
fix(cmd): Update CmdRepos description and usage in repos.go ( #946 )
...
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-on: https://gitea.com/gitea/tea/pulls/946
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Nicolas <bircni@icloud.com >
Co-committed-by: Nicolas <bircni@icloud.com >
2026-04-20 19:50:28 +00:00
Matěj Cepl
783ac7684a
fix(context): skip local repo detection for repo slugs ( #960 )
...
Treat explicit --repo slugs as remote targets so commands do not probe
the current worktree. This avoids SHA256 repository failures when local
git autodetection is unnecessary.
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-on: https://gitea.com/gitea/tea/pulls/960
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Matěj Cepl <mcepl@cepl.eu >
Co-committed-by: Matěj Cepl <mcepl@cepl.eu >
2026-04-20 19:39:42 +00:00
Renovate Bot
d0b7ea09e8
fix(deps): update module charm.land/lipgloss/v2 to v2.0.3 ( #959 )
...
This PR contains the following updates:
| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/ ) | [Confidence](https://docs.renovatebot.com/merge-confidence/ ) |
|---|---|---|---|
| [charm.land/lipgloss/v2](https://github.com/charmbracelet/lipgloss ) | `v2.0.2` → `v2.0.3` |  |  |
---
### Release Notes
<details>
<summary>charmbracelet/lipgloss (charm.land/lipgloss/v2)</summary>
### [`v2.0.3`](https://github.com/charmbracelet/lipgloss/releases/tag/v2.0.3 )
[Compare Source](https://github.com/charmbracelet/lipgloss/compare/v2.0.2...v2.0.3 )
#### Changelog
##### Fixed
- [`472d718`](472d718e23 ): fix: Avoid background color query hang ([#​636](https://github.com/charmbracelet/lipgloss/issues/636 )) ([@​jedevc](https://github.com/jedevc ))
##### Docs
- [`9e39a0a`](9e39a0ad4f ): docs: fix README typo ([#​629](https://github.com/charmbracelet/lipgloss/issues/629 )) ([@​Rohan5commit](https://github.com/Rohan5commit ))
- [`cd93a9f`](cd93a9f5d2 ): docs: fix tree comment typo ([#​634](https://github.com/charmbracelet/lipgloss/issues/634 )) ([@​Rohan5commit](https://github.com/Rohan5commit ))
***
<a href="https://charm.land/ "><img alt="The Charm logo" src="https://stuff.charm.sh/charm-banner-next.jpg " width="400"></a>
Thoughts? Questions? We love hearing from you. Feel free to reach out on [X](https://x.com/charmcli ), [Discord](https://charm.land/discord ), [Slack](https://charm.land/slack ), [The Fediverse](https://mastodon.social/@​charmcli ), [Bluesky](https://bsky.app/profile/charm.land ).
</details>
---
### Configuration
📅 **Schedule**: (UTC)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMTEuMCIsInVwZGF0ZWRJblZlciI6IjQzLjExMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-on: https://gitea.com/gitea/tea/pulls/959
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
Co-committed-by: Renovate Bot <renovate-bot@gitea.com >
2026-04-20 19:34:25 +00:00
Renovate Bot
20914a1375
fix(deps): update module github.com/go-git/go-git/v5 to v5.18.0 ( #961 )
...
Reviewed-on: https://gitea.com/gitea/tea/pulls/961
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
Co-committed-by: Renovate Bot <renovate-bot@gitea.com >
2026-04-20 01:11:50 +00:00
Renovate Bot
3c1c9b2904
chore(deps): update docker.gitea.com/gitea docker tag to v1.26.0 ( #962 )
...
Reviewed-on: https://gitea.com/gitea/tea/pulls/962
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
Co-committed-by: Renovate Bot <renovate-bot@gitea.com >
2026-04-20 01:11:09 +00:00
Matěj Cepl
63bc90ea52
feat(branches): add rename subcommand ( #939 )
...
Implements the 'branches rename' command to rename a branch in a repository.
This wraps the Gitea API endpoint PATCH /repos/{owner}/{repo}/branches/{branch}.
Usage: tea branches rename <old_branch_name> <new_branch_name>
Example: tea branches rename -r owner/repo main factory
This resolves issue #938 .
Reviewed-on: https://gitea.com/gitea/tea/pulls/939
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Matěj Cepl <mcepl@cepl.eu >
Co-committed-by: Matěj Cepl <mcepl@cepl.eu >
v0.14.0
2026-04-15 17:27:47 +00:00
Bo-Yi Wu
9e0a6203ae
feat(pulls): add ci status field to pull request list ( #956 )
...
## Summary
- Add `"ci"` as a new selectable field for `tea pr list --fields`, allowing users to see CI status across multiple PRs at a glance
- Fetch CI status via `GetCombinedStatus` API **only when the `ci` field is explicitly requested** via `--fields`, avoiding unnecessary API calls in default usage
- Improve CI status display in both detail and list views:
- **Detail view** (`tea pr <index>`): show each CI check with symbol, context name, description, and clickable link to CI run
- **List view** (`tea pr list --fields ci`): show symbol + context name per CI check (e.g., `✓ lint, ⏳ build, ❌ test`)
- **Machine-readable output**: return raw state string (e.g., `success`, `pending`)
- Replace pending CI symbol from `⭮` to `⏳ ` for better readability
- Extract `formatCIStatus` helper and reuse it in `PullDetails` to reduce code duplication
- Add comprehensive tests for CI status formatting and PR list integration
## Detail View Example
```
- CI:
- ✓ [**lint**](https://ci.example.com/lint ): Lint passed
- ⏳ [**build**](https://ci.example.com/build ): Build is running
- ❌ [**test**](https://ci.example.com/test ): 3 tests failed
```
## List View Example
```
INDEX TITLE STATE CI
123 Fix bug open ✓ lint, ⏳ build, ❌ test
```
## Usage
```bash
# Show CI status column in list
tea pr list --fields index,title,state,ci
# Default output is unchanged (no CI column, no extra API calls)
tea pr list
```
## Files Changed
- `cmd/pulls/list.go` — conditionally fetch CI status per PR when `ci` field is selected
- `modules/print/pull.go` — add `ci` field, `formatCIStatus` helper, improve detail/list CI display
- `modules/print/pull_test.go` — comprehensive tests for CI status formatting
## Test plan
- [x] `go build ./...` passes
- [x] `go test ./...` passes (11 new tests)
- [x] `tea pr list` — default output unchanged, no extra API calls
- [x] `tea pr list --fields index,title,state,ci` — CI column with context names
- [x] `tea pr <index>` — CI section shows each check with name, description, and link
- [x] `tea pr list --fields ci -o csv` — machine-readable output shows raw state strings
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Reviewed-on: https://gitea.com/gitea/tea/pulls/956
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com >
Co-committed-by: Bo-Yi Wu <appleboy.tw@gmail.com >
2026-04-10 17:29:15 +00:00
Bo-Yi Wu
84ecd16f9c
fix(deps): update Go dependencies to latest versions ( #955 )
...
## Summary
- Upgrade all Go module dependencies to their latest versions
- Includes updates to charm.land, golang.org/x, goldmark, go-crypto, and other indirect dependencies
- Project builds cleanly with all updates
## Test plan
- [x] `go build ./...` passes
- [x] CI pipeline passes
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Reviewed-on: https://gitea.com/gitea/tea/pulls/955
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com >
Co-committed-by: Bo-Yi Wu <appleboy.tw@gmail.com >
2026-04-10 01:40:40 +00:00
Bo-Yi Wu
53e53e1067
feat(workflows): add dispatch, view, enable and disable subcommands ( #952 )
...
## Summary
- Add `tea actions workflows dispatch` to trigger `workflow_dispatch` events with `--ref`, `--input key=value`, and `--follow` for log tailing
- Add `tea actions workflows view` to show workflow details
- Add `tea actions workflows enable` and `disable` to toggle workflow state
- Rewrite `workflows list` to use the Workflow API instead of file listing
- Remove dead `WorkflowsList` print function that used `ContentsResponse`
- Update `CLI.md` and `example-workflows.md` with usage documentation and examples
## Motivation
Enable re-triggering specific workflows from the CLI, which is essential for AI-driven PR flows where a specific workflow needs to be re-run after pushing changes.
Leverages the 5 workflow API endpoints already supported by the Go SDK (v0.24.1) from go-gitea/gitea#33545 :
- `ListRepoActionWorkflows`
- `GetRepoActionWorkflow`
- `DispatchRepoActionWorkflow` (with `returnRunDetails` support)
- `EnableRepoActionWorkflow`
- `DisableRepoActionWorkflow`
## New commands
\`\`\`
tea actions workflows
├── list (rewritten to use Workflow API)
├── view <id> (new)
├── dispatch <id> (new)
├── enable <id> (new)
└── disable <id> (new)
\`\`\`
### Usage examples
\`\`\`bash
# Dispatch workflow on current branch
tea actions workflows dispatch deploy.yml
# Dispatch with specific ref and inputs
tea actions workflows dispatch deploy.yml --ref main --input env=staging --input version=1.2.3
# Dispatch and follow logs
tea actions workflows dispatch ci.yml --ref feature/my-pr --follow
# View workflow details
tea actions workflows view deploy.yml
# Enable/disable workflows
tea actions workflows enable deploy.yml
tea actions workflows disable deploy.yml --confirm
\`\`\`
## Test plan
- [x] `go build ./...` passes
- [x] `go test ./...` passes
- [x] `go vet ./...` passes
- [x] `make lint` — 0 issues
- [x] `make docs-check` — CLI.md is up to date
- [x] Manual test: `tea actions workflows list` shows workflows from API
- [x] Manual test: `tea actions workflows dispatch <workflow> --ref main` triggers a run
- [x] Manual test: `tea actions workflows view <workflow>` shows details
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-on: https://gitea.com/gitea/tea/pulls/952
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com >
Co-committed-by: Bo-Yi Wu <appleboy.tw@gmail.com >
2026-04-09 20:03:33 +00:00
Renovate Bot
0489d8c275
fix(deps): update module golang.org/x/sys to v0.43.0 ( #951 )
...
Reviewed-on: https://gitea.com/gitea/tea/pulls/951
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
Co-committed-by: Renovate Bot <renovate-bot@gitea.com >
2026-04-09 14:16:37 +00:00
Nicolas
f538c05282
refactor: code cleanup across codebase ( #947 )
...
## Summary
- Extract duplicate \`getReleaseByTag\` into shared \`cmd/releases/utils.go\`
- Replace \`log.Fatal\` calls with proper error returns in config and login commands; \`GetLoginByToken\`/\`GetLoginsByHost\`/\`GetLoginByHost\` now return errors
- Remove dead \`portChan\` channel in \`modules/auth/oauth.go\`
- Fix YAML integer detection to use \`strconv.ParseInt\` (correctly handles negatives and large ints)
- Fix \`path.go\` error handling to use \`errors.As\` + \`syscall.ENOTDIR\` instead of string comparison
- Extract repeated credential helper key into local variable in \`SetupHelper\`
- Use existing \`isRemoteDeleted()\` in \`pull_clean.go\` instead of duplicating the logic
- Fix ~30 error message casing violations to follow Go conventions
- Use \`fmt.Errorf\` consistently instead of string concatenation in \`generic.go\`
Reviewed-on: https://gitea.com/gitea/tea/pulls/947
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-by: Bo-Yi Wu (吳柏毅) <appleboy.tw@gmail.com >
Co-authored-by: Nicolas <bircni@icloud.com >
Co-committed-by: Nicolas <bircni@icloud.com >
2026-04-08 03:38:49 +00:00
Bo-Yi Wu
662e339bf9
feat(pulls): add resolve, unresolve and review-comments subcommands ( #948 )
...
## Summary
- Add `tea pulls review-comments <pull-index>` subcommand to list PR review comments with configurable fields (supports table/json/csv/yaml output)
- Add `tea pulls resolve <comment-id>` subcommand to mark a review comment as resolved
- Add `tea pulls unresolve <comment-id>` subcommand to unmark a review comment as resolved
- Follow existing approve/reject pattern with shared `runResolveComment` helper in `review_helpers.go`
## Usage
```bash
# List review comments for PR #42
tea pulls review-comments 42
# Resolve comment #789
tea pulls resolve 789
# Unresolve comment #789
tea pulls unresolve 789
# Custom output fields
tea pulls review-comments 42 --fields id,path,body,resolver --output json
```
## New Files
| File | Description |
|------|-------------|
| `cmd/pulls/review_comments.go` | `review-comments` subcommand |
| `cmd/pulls/resolve.go` | `resolve` subcommand |
| `cmd/pulls/unresolve.go` | `unresolve` subcommand |
| `modules/task/pull_review_comment.go` | Task layer: list, resolve, unresolve via SDK |
| `modules/print/pull_review_comment.go` | Print formatting with `printable` interface |
## Modified Files
| File | Description |
|------|-------------|
| `cmd/pulls.go` | Register 3 new commands |
| `cmd/pulls/review_helpers.go` | Add shared `runResolveComment` helper |
## Test Plan
- [x] `go build ./...` passes
- [x] `go vet ./...` passes
- [x] `tea pulls review-comments <PR-index>` lists comments with IDs
- [x] `tea pulls resolve <comment-id>` resolves successfully
- [x] `tea pulls unresolve <comment-id>` unresolves successfully
- [x] `--output json` produces valid JSON output
Reviewed-on: https://gitea.com/gitea/tea/pulls/948
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com >
Co-committed-by: Bo-Yi Wu <appleboy.tw@gmail.com >
2026-04-08 03:36:09 +00:00
appleboy
5bb73667d1
docs: add v0.13.0 release notes to CHANGELOG ( #945 )
...
Add v0.13.0 release notes to CHANGELOG.md covering 21 commits since v0.12.0: 5 new features, 2 enhancements, and dependency updates.
Reviewed-on: https://gitea.com/gitea/tea/pulls/945
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: appleboy <appleboy.tw@gmail.com >
Co-committed-by: appleboy <appleboy.tw@gmail.com >
v0.13.0
2026-04-05 16:42:27 +00:00
appleboy
f329f6fab2
feat(pulls): add edit subcommand for pull requests ( #944 )
...
## Summary
- Add `tea pr edit` subcommand to support editing pull request properties (description, title, milestone, deadline, assignees, labels, reviewers)
- Add `--add-reviewers` / `--remove-reviewers` flags for managing PR reviewers via `CreateReviewRequests` / `DeleteReviewRequests` API
- Extract shared helpers (`ResolveLabelOpts`, `ApplyLabelChanges`, `ApplyReviewerChanges`, `ResolveMilestoneID`) into `modules/task/labels.go` to reduce duplication between issue and PR editing
- Refactor existing `EditIssue` to use the same shared helpers
- Wrap original error in `ResolveMilestoneID` to preserve underlying error context
## Usage
```bash
# Edit PR description
tea pr edit 1 --description "new description"
# Edit PR title
tea pr edit 1 --title "new title"
# Edit multiple fields
tea pr edit 1 --title "new title" --description "new desc" --add-labels "bug"
# Edit multiple PRs
tea pr edit 1 2 3 --add-assignees "user1"
# Add reviewers
tea pr edit 1 --add-reviewers "user1,user2"
# Remove reviewers
tea pr edit 1 --remove-reviewers "user1"
```
## Test plan
- [x] `go build .` succeeds
- [x] `go test ./...` passes
- [x] `make clean && make vet && make lint && make fmt-check && make docs-check && make build` all pass
- [x] `tea pr edit <idx> --description "test"` updates PR description on a Gitea instance
- [x] `tea pr edit <idx> --title "test"` updates PR title
- [x] `tea pr edit <idx> --add-labels "bug"` adds label
- [x] `tea pr edit <idx> --add-reviewers "user"` requests review
- [x] `tea pr edit <idx> --remove-reviewers "user"` removes reviewer
- [x] Existing `tea issues edit` still works correctly after refactor
Reviewed-on: https://gitea.com/gitea/tea/pulls/944
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: appleboy <appleboy.tw@gmail.com >
Co-committed-by: appleboy <appleboy.tw@gmail.com >
2026-04-05 05:35:15 +00:00
Renovate Bot
366069315f
fix(deps): update module github.com/go-git/go-git/v5 to v5.17.2 ( #943 )
...
Reviewed-on: https://gitea.com/gitea/tea/pulls/943
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
Co-committed-by: Renovate Bot <renovate-bot@gitea.com >
2026-04-01 18:14:14 +00:00
Renovate Bot
1e13681663
fix(deps): update module github.com/go-git/go-git/v5 to v5.17.1 ( #942 )
...
Reviewed-on: https://gitea.com/gitea/tea/pulls/942
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
Co-committed-by: Renovate Bot <renovate-bot@gitea.com >
2026-03-30 07:00:31 +00:00
Renovate Bot
bfbec3fc00
fix(deps): update module code.gitea.io/sdk/gitea to v0.24.1 ( #936 )
...
Reviewed-on: https://gitea.com/gitea/tea/pulls/936
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
Co-committed-by: Renovate Bot <renovate-bot@gitea.com >
2026-03-27 06:04:29 +00:00
Renovate Bot
e31a167e54
fix(deps): update module github.com/go-authgate/sdk-go to v0.6.1 ( #935 )
...
Reviewed-on: https://gitea.com/gitea/tea/pulls/935
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
Co-committed-by: Renovate Bot <renovate-bot@gitea.com >
2026-03-27 03:47:06 +00:00
Renovate Bot
6a7c3e4efa
fix(deps): update module github.com/urfave/cli/v3 to v3.8.0 ( #937 )
...
Reviewed-on: https://gitea.com/gitea/tea/pulls/937
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
Co-committed-by: Renovate Bot <renovate-bot@gitea.com >
2026-03-27 03:46:50 +00:00
techknowlogick
b05e03416b
replace log.Fatal/os.Exit with error returns ( #941 )
...
* Use stdlib encoders
* Reduce some duplication
* Remove global pagination state
* Dedupe JSON detail types
* Bump golangci-lint
Reviewed-on: https://gitea.com/gitea/tea/pulls/941
Co-authored-by: techknowlogick <techknowlogick@gitea.com >
Co-committed-by: techknowlogick <techknowlogick@gitea.com >
2026-03-27 03:36:44 +00:00
Renovate Bot
21881525a8
chore(deps): update docker.gitea.com/gitea docker tag to v1.25.5 ( #934 )
...
Reviewed-on: https://gitea.com/gitea/tea/pulls/934
Reviewed-by: techknowlogick <9+techknowlogick@noreply.gitea.com >
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
Co-committed-by: Renovate Bot <renovate-bot@gitea.com >
2026-03-15 23:04:40 +00:00
Renovate Bot
9a462247bd
fix(deps): update module github.com/olekukonko/tablewriter to v1.1.4 ( #933 )
...
Reviewed-on: https://gitea.com/gitea/tea/pulls/933
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
Co-committed-by: Renovate Bot <renovate-bot@gitea.com >
2026-03-13 00:18:26 +00:00
Renovate Bot
5f74fb37df
chore(deps): update mcr.microsoft.com/devcontainers/go docker tag to v2.1 ( #930 )
...
Reviewed-on: https://gitea.com/gitea/tea/pulls/930
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
Co-committed-by: Renovate Bot <renovate-bot@gitea.com >
2026-03-12 17:13:25 +00:00
Bo-Yi Wu
ec658cfc33
chore(deps): update Go dependencies and CI workflow action versions ( #932 )
...
## Summary
- Run `go get -u ./...` and `go mod tidy` to update all Go dependencies
- Update CI workflow action versions:
- `crazy-max/ghaction-import-gpg`: v6 → v7
- `goreleaser/goreleaser-action`: v6 → v7
- `docker/setup-qemu-action`: v3 → v4
- `docker/setup-buildx-action`: v3 → v4
- `docker/login-action`: v3 → v4
- `docker/build-push-action`: v6 → v7
## Notable Go dependency updates
- `github.com/urfave/cli/v3`: v3.6.2 → v3.7.0
- `github.com/ProtonMail/go-crypto`: v1.3.0 → v1.4.0
- `charm.land/huh/v2`: v2.0.1 → v2.0.3
- `golang.org/x/crypto`: v0.48.0 → v0.49.0
- `golang.org/x/net`: v0.49.0 → v0.52.0
Reviewed-on: https://gitea.com/gitea/tea/pulls/932
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com >
Co-committed-by: Bo-Yi Wu <appleboy.tw@gmail.com >
2026-03-12 05:28:47 +00:00
Bo-Yi Wu
cb9824b451
feat(repos): support owner-based repository listing with robust lookup ( #931 )
...
- Add an owner flag to the repos list command to list repositories for a specific user or organization
- Implement owner-based repository listing by detecting whether the owner is an organization or a user and calling the appropriate API
- Improve error handling for owner lookup by checking HTTP status codes instead of relying on error string matching
- Align repository search logic with the updated owner lookup behavior using HTTP response validation
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com >
Reviewed-on: https://gitea.com/gitea/tea/pulls/931
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com >
Co-committed-by: Bo-Yi Wu <appleboy.tw@gmail.com >
2026-03-12 04:22:28 +00:00
Bo-Yi Wu
a531faa626
feat(repos): add repo edit subcommand ( #928 )
...
## Summary
- Add `tea repo edit` subcommand to update repository properties via the Gitea API
- Support flags: `--name`, `--description`/`--desc`, `--website`, `--private`, `--template`, `--archived`, `--default-branch`
- Boolean-like flags use string type to distinguish "not set" from "false", following the pattern in `releases/edit.go`
## Test plan
- [x] `go build ./...` passes
- [x] `go vet ./...` passes
- [x] `tea repo edit --help` shows all flags correctly
- [x] Manual test: `tea repo edit --private true` on a test repo
- [x] Manual test: `tea repo edit --name new-name --description "new desc"` on a test repo
Reviewed-on: https://gitea.com/gitea/tea/pulls/928
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com >
Co-committed-by: Bo-Yi Wu <appleboy.tw@gmail.com >
2026-03-12 03:06:44 +00:00