mirror of
https://github.com/ivuorinen/gh-action-readme.git
synced 2026-02-15 08:49:51 +00:00
* feat: detect permissions from actions * refactor(test): fix 25 SonarCloud issues by extracting test constants Resolved all SonarCloud code quality issues for PR #137: - Fixed 12 string duplication issues (S1192) - Fixed 13 naming convention issues (S100) Changes: - Centralized test constants in appconstants/test_constants.go * Added 9 parser test constants for YAML templates * Added 3 template test constants for paths and versions - Updated parser_test.go to use shared constants - Updated template_test.go to use shared constants - Renamed 13 test functions to camelCase (removed underscores) * chore: reduce code duplication * fix: implement cr fixes * chore: deduplication
# {{.Name}}
{{.Description}}
## Usage
```yaml
- uses: {{gitUsesString .}}
{{if .Inputs}}with:
{{- range $key, $val := .Inputs}}
{{$key}}: {{if $val.Default}}{{$val.Default}}{{else}}value{{end}}
{{- end}}{{end}}
```
{{if .Inputs}}
## Inputs
{{range $key, $input := .Inputs}}
- `{{$key}}` - {{$input.Description}}{{if $input.Required}} (required){{end}}{{if $input.Default}} (default: `{{$input.Default}}`){{end}}
{{end}}
{{end}}
{{if .Outputs}}
## Outputs
{{range $key, $output := .Outputs}}
- `{{$key}}` - {{$output.Description}}
{{end}}
{{end}}
{{if and .Permissions (gt (len .Permissions) 0)}}
## Permissions
{{range $key, $value := .Permissions}}
- `{{$key}}`: `{{$value}}`
{{end}}
{{end}}
## License
MIT