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

Handle cases where an add-on is renamed or deleted #5

Open
1 task done
stasadev opened this issue Feb 14, 2025 · 0 comments
Open
1 task done

Handle cases where an add-on is renamed or deleted #5

stasadev opened this issue Feb 14, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@stasadev
Copy link
Member

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem?

Such situation is not handled.

Describe your solution

Go through all existing files in https://github.com/ddev/addon-registry/tree/main/_addons folder on deploy:

  1. Check for removed repos by repo_id, and remove these files.
  2. If there are duplicates for repo_id it means that repository was moved, and remove the old file.
  3. If repository was renamed, we need to rename existing discussion in https://github.com/ddev/giscus-comments/discussions/categories/add-on-registry-comments to link existing comments to the renamed repo.
    (I'm not sure if we can automate this.)

Describe alternatives

No response

Additional context

No response

@stasadev stasadev added the enhancement New feature or request label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant