Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(API): refactor secret creation and update functionality #26751

Merged
merged 3 commits into from
Aug 28, 2023

Commits on Aug 27, 2023

  1. refactor: refactor secret creation and update functionality

    - Remove the `CreateSecretOption` struct and replace it with `CreateOrUpdateSecretOption` in `modules/structs/secret.go`
    - Update the `CreateOrUpdateOrgSecret` function in `routers/api/v1/org/action.go` to use `CreateOrUpdateSecretOption` instead of `UpdateSecretOption`
    - Remove the `CreateOrgSecret` function in `routers/api/v1/org/action.go` and replace it with `CreateOrUpdateOrgSecret`
    - Update the Swagger documentation in `routers/api/v1/swagger/options.go` and `templates/swagger/v1_json.tmpl` to reflect the changes in the struct names and function names
    
    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    appleboy committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    b7c5a77 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    365e681 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2023

  1. Configuration menu
    Copy the full SHA
    d050ac4 View commit details
    Browse the repository at this point in the history