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

Update db entries on demand #36

Merged
merged 6 commits into from
Sep 10, 2024
Merged

Update db entries on demand #36

merged 6 commits into from
Sep 10, 2024

Conversation

oscarvz
Copy link
Owner

@oscarvz oscarvz commented Sep 10, 2024

Adds a route that will update entries in the db for events that happened before the webhook was set up for a repository.

When the GITHUB_BEARER_TOKEN is set, you can update your db entries by sending a request to the API:

curl -H "Authorization: Bearer <your_token>" http://localhost:8787/api/github/oscarvz/hono-github-tracker?count=10

Note

This is a temporary solution until #34 is implemented; the endpoint will get JWT auth middleware and the params will be replaced by a single repo id param

Also included in PR

  • Rename route api/ghw to api/github/webhook
  • Use canary version of FPX when running bun studio

@oscarvz oscarvz linked an issue Sep 10, 2024 that may be closed by this pull request
@oscarvz oscarvz marked this pull request as ready for review September 10, 2024 20:41
@oscarvz oscarvz merged commit e792b0d into main Sep 10, 2024
1 check passed
@oscarvz oscarvz deleted the update-events branch September 10, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update database with already existing stargazers
1 participant