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

Add API route to list org secrets #26485

Merged
merged 21 commits into from
Aug 15, 2023
Merged

Add API route to list org secrets #26485

merged 21 commits into from
Aug 15, 2023

Commits on Aug 14, 2023

  1. feat: add new functions and files related to secrets management

    - Add a new function `CountOrgSecrets` in the file `models/secret/secret.go`
    - Add a new file `modules/structs/secret.go`
    - Add a new function `ListActionsSecrets` in the file `routers/api/v1/api.go`
    - Add a new file `routers/api/v1/org/action.go`
    - Add a new function `listActionsSecrets` in the file `routers/api/v1/org/action.go`
    
    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    appleboy committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    a1ac892 View commit details
    Browse the repository at this point in the history
  2. feat: add API endpoint for listing organization's actions secrets

    - Add a new API endpoint for listing an organization's actions secrets
    
    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    appleboy committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    3fd8201 View commit details
    Browse the repository at this point in the history
  3. Update models/secret/secret.go

    Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
    appleboy and lunny committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    ae362b5 View commit details
    Browse the repository at this point in the history
  4. Update modules/structs/secret.go

    Co-authored-by: techknowlogick <matti@mdranta.net>
    appleboy and techknowlogick committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    8a502a2 View commit details
    Browse the repository at this point in the history
  5. Update routers/api/v1/org/action.go

    Co-authored-by: techknowlogick <matti@mdranta.net>
    appleboy and techknowlogick committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    b54742d View commit details
    Browse the repository at this point in the history
  6. feat: add support for Swagger secret list in API v1

    - Add a new file `routers/api/v1/swagger/action.go`
    - Add a new struct `swaggerResponseSecretList` in the `action.go` file
    - Add a new file `templates/swagger/v1_json.tmpl`
    - Modify the `v1_json.tmpl` file to include a new property `Secret` in the `properties` section of the `User` object
    - Modify the `v1_json.tmpl` file to include a new definition `SecretList` in the `definitions` section
    
    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    appleboy committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    9f48dfc View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    bdf18bb View commit details
    Browse the repository at this point in the history
  8. refactor: consolidate function names for counting secrets

    - Change the function name from `FindSecrets` to `CountSecrets` in `models/secret/secret.go`
    - Change the function name from `CountOrgSecrets` to `CountSecrets` in `routers/api/v1/org/action.go`
    
    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    appleboy committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    e6c2a01 View commit details
    Browse the repository at this point in the history
  9. backup

    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    appleboy committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    ab59235 View commit details
    Browse the repository at this point in the history
  10. Merge branch 'main' into api

    appleboy committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    473b027 View commit details
    Browse the repository at this point in the history
  11. Update routers/api/v1/api.go

    Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
    appleboy and lunny committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    5dc1f25 View commit details
    Browse the repository at this point in the history
  12. refactor: refactor Secret struct field name to created_at

    - Rename the `Created` field to `created_at` in the `Secret` struct
    
    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    appleboy committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    ff80b03 View commit details
    Browse the repository at this point in the history
  13. Merge branch 'main' into api

    appleboy committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    dba1714 View commit details
    Browse the repository at this point in the history
  14. refactor: refactor property name in User object

    - Change the property name from "created" to "created_at" in the User object
    
    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    appleboy committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    d72bcee View commit details
    Browse the repository at this point in the history
  15. Merge branch 'main' into api

    appleboy committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    50ce300 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2023

  1. Merge branch 'main' into api

    appleboy committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    f5e05f8 View commit details
    Browse the repository at this point in the history
  2. refactor: refactor code for checking organization membership and admi…

    …n status
    
    - Remove unnecessary code for checking organization membership and admin status in `ListActionsSecrets` function
    
    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    appleboy committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    26beefd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3e162be View commit details
    Browse the repository at this point in the history
  4. Merge branch 'main' into api

    appleboy committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    1a829f8 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'main' into api

    GiteaBot committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    f15ad0e View commit details
    Browse the repository at this point in the history
  6. Merge branch 'main' into api

    GiteaBot committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    4c7efe4 View commit details
    Browse the repository at this point in the history