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
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
techknowlogick
20da414145
Code Cleanup ( #869 )
...
- switch to golangci-lint for linting
- switch to gofmpt for formatting
- fix lint and fmt issues that came up from switch to new tools
- upgrade go-sdk to 0.23.2
- support pagination for listing tracked times
- remove `FixPullHeadSha` workaround (upstream fix has been merged for 5+ years at this point)
- standardize on US spelling (previously a mix of US&UK spelling)
- remove some unused code
- reduce some duplication in parsing state and issue type
- reduce some duplication in reading input for secrets and variables
- reduce some duplication with PR Review code
- report error for when yaml parsing fails
- various other misc cleanup
Reviewed-on: https://gitea.com/gitea/tea/pulls/869
Co-authored-by: techknowlogick <techknowlogick@gitea.com >
Co-committed-by: techknowlogick <techknowlogick@gitea.com >
2026-02-02 22:39:26 +00:00
Alain Thiffault
68b9620b8c
fix: expose pagination flags for secrets list command ( #853 )
...
The command uses flags.GetListOptions() internally but didn't expose --page and --limit flags to users, making pagination inaccessible.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-on: https://gitea.com/gitea/tea/pulls/853
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Alain Thiffault <athiffau@effectivemomentum.com >
Co-committed-by: Alain Thiffault <athiffau@effectivemomentum.com >
2025-12-05 06:14:41 +00:00
Ross Golder
7a5c260268
feat: add actions management commands ( #796 )
...
## Summary
This PR adds comprehensive Actions secrets and variables management functionality to the tea CLI, enabling users to manage their repository's CI/CD configuration directly from the command line.
## Features Added
### Actions Secrets Management
- **List secrets**: `tea actions secrets list` - Display all repository action secrets
- **Create secrets**: `tea actions secrets create <name>` - Create new secrets with interactive prompts
- **Delete secrets**: `tea actions secrets delete <name>` - Remove existing secrets
### Actions Variables Management
- **List variables**: `tea actions variables list` - Display all repository action variables
- **Set variables**: `tea actions variables set <name> <value>` - Create or update variables
- **Delete variables**: `tea actions variables delete <name>` - Remove existing variables
## Implementation Details
- **Interactive prompts**: Secure input handling for sensitive secret values
- **Input validation**: Proper validation for secret/variable names and values
- **Table formatting**: Consistent output formatting with existing tea commands
- **Error handling**: Comprehensive error handling and user feedback
- **Test coverage**: Full test suite for all functionality
## Usage Examples
```bash
# Secrets management
tea actions secrets list
tea actions secrets create API_KEY # Will prompt securely for value
tea actions secrets delete OLD_SECRET
# Variables management
tea actions variables list
tea actions variables set API_URL https://api.example.com
tea actions variables delete UNUSED_VAR
```
## Related Issue
Resolves #797
## Testing
- All new functionality includes comprehensive unit tests
- Integration with existing tea CLI patterns and conventions
- Validated against Gitea Actions API
Reviewed-on: https://gitea.com/gitea/tea/pulls/796
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Ross Golder <ross@golder.org >
Co-committed-by: Ross Golder <ross@golder.org >
2025-10-19 02:53:17 +00:00