unkey icon indicating copy to clipboard operation
unkey copied to clipboard

oss.gg: side quest blog side quest 8, follow the unkey x, starry eyed supporter, create a template

Open Yash-1511 opened this issue 1 year ago • 10 comments

Description

Completed the challenge of side quest Follow on X, created a template that uses unkey api to protect and gathering five friends to star the repository.

  • Adds a Unkey Hapi.js boilerplate for route protection

https://github.com/Yash-1511/hapi-unkey-template

  • Adds Deno + Hono middleware for unkey

https://github.com/Yash-1511/hono-unkey-deno

Write a blog about unkey api that i use in our application

https://medium.com/@yashp3020/how-i-secured-my-ai-powered-legal-compliance-api-with-unkey-a9df815209b2

follow on X screenshot

WhatsApp Image 2024-10-13 at 18 43 09

GitHub Usernames of Friends

  1. @virugamacoder
  2. @harshp421
  3. @Felixcoder308
  4. @nandani-1411
  5. @gtlYashParmar

Screenshots

  1. @virugamacoder virugam

  2. @harshp421 harsh

  3. @Felixcoder308 parth

  4. @nandani-1411 nandani

  5. @gtlYashParmar yash

Summary by CodeRabbit

Summary by CodeRabbit

  • New Features

    • Added a new participant, Yash Parmar, to the "Follow the Unkey X account" side quest.
    • Introduced new template submissions for using Unkey with Hapi.js and Hono frameworks.
    • Updated the "Use Unkey" document to include a new side quest entry.
  • Updates

    • Updated contribution details in the "Starry-eyed Supporter" document, reflecting the latest participant and date.
    • Revised the date in the "Starry-eyed Supporter" document to reflect the latest contribution.
    • Added a new entry for "Starry-eyed Supporter" with Zia Ur Rehman and a link to a GitHub issue.
    • Updated the "Use Unkey" document with a new entry and revised date.

Yash-1511 avatar Oct 13 '24 13:10 Yash-1511

⚠️ No Changeset found

Latest commit: 5ceaba6e55a0b232c4d3736eca3d20605b96d0f4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Oct 13 '24 13:10 changeset-bot[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
engineering ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 23, 2024 7:02am

vercel[bot] avatar Oct 13 '24 13:10 vercel[bot]

📝 Walkthrough
📝 Walkthrough

Walkthrough

The pull request includes updates to four documents related to contributions in the "Follow the Unkey X account," "Starry-eyed Supporter," and template submissions for using Unkey with Hapi.js. A new participant, Yash Parmar, is added with specific dates and links to their accounts. Additionally, the last entry in the "Starry-eyed Supporter" document is updated to reflect Yash Parmar as the contributor, along with a new template submission for using Unkey with Hapi.js.

Changes

File Path Change Summary
oss.gg/3_follow_the_unkey_x_account.md New entry added for Yash Parmar on 13-October-2024 with a link to their X account.
oss.gg/4_starry_eyed_supporter.md Last entry updated to reflect Yash-1511 as the contributor on 13-October-2024.
oss.gg/7_create_a_template.md New entry added for a Hapi.js template submission by Yash Parmar with a link to the GitHub repo.
oss.gg/8_use_unkey_blog.md Date updated to 16-October-2024 by Yash-1511 and a new entry added for 18-October-2024.

Possibly related PRs

  • #2240: Updates the same document by adding a new entry for a participant in the "Follow the Unkey X account."
  • #2315: Adds a new entry for a participant in the same side quest.
  • #2323: Contributes a new entry for a participant in the "Follow the Unkey X account."
  • #2332: Updates the same document by adding a new participant to the "Follow the Unkey X account."
  • #2408: Adds a new entry for a participant in the "Follow the Unkey X account."

Suggested labels

🕹️ oss.gg, :joystick: 150 points, :joystick: 750 points, hacktoberfest, Needs Approval

Suggested reviewers

  • mcstepp
  • chronark
  • perkinsjr
  • MichaelUnkey

📜 Recent review details

Configuration used: CodeRabbit UI Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between c5599aad4ce56728e09e28ea89598fe3c58e1e79 and ff5a125cfbdd0bae62b9f3521a80dcfed882eb60.

📒 Files selected for processing (1)
  • oss.gg/7_create_a_template.md (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • oss.gg/7_create_a_template.md

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

coderabbitai[bot] avatar Oct 13 '24 13:10 coderabbitai[bot]

@Yash-1511 is attempting to deploy a commit to the Unkey Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Oct 13 '24 13:10 vercel[bot]

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Oct 13 '24 13:10 CLAassistant

Hey there and thank you for opening this pull request! 👋🏼

We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted. Here is an example:

<type>[optional scope]: <description>
fix: I fixed something for Unkey

Details:

No release type found in pull request title "oss.gg: side quest blog side quest 8, follow the unkey x, starry eyed supporter, create a template [3200 points]". Add a prefix to indicate what kind of release this pull request corresponds to. For reference, see https://www.conventionalcommits.org/

Available types:
 - feat: A new feature
 - fix: A bug fix
 - docs: Documentation only changes
 - style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
 - refactor: A code change that neither fixes a bug nor adds a feature
 - perf: A code change that improves performance
 - test: Adding missing tests or correcting existing tests
 - build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
 - ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
 - chore: Other changes that don't modify src or test files
 - revert: Reverts a previous commit

github-actions[bot] avatar Oct 13 '24 13:10 github-actions[bot]

@Yash-1511 could you update your template to use the new way of checking keys

https://github.com/Yash-1511/hapi-unkey-template/blob/c1fbd1a6b9773df1d736cac660f8e45b8098a69e/server.js#L48 you should pass in the apiID too

const { result, error } = await verifyKey({ key: "key_123", apiId: "api_123" });

chronark avatar Oct 16 '24 09:10 chronark

@Yash-1511 could you update your template to use the new way of checking keys

https://github.com/Yash-1511/hapi-unkey-template/blob/c1fbd1a6b9773df1d736cac660f8e45b8098a69e/server.js#L48 you should pass in the apiID too

const { result, error } = await verifyKey({ key: "key_123", apiId: "api_123" });

Hey @chronark , I have updated verifykey with apiId.

Yash-1511 avatar Oct 16 '24 10:10 Yash-1511

It looks like https://github.com/FelixCoder308 was created just to star the oss.gg repositories, that's against the rules

chronark avatar Oct 20 '24 07:10 chronark

It looks like https://github.com/FelixCoder308 was created just to star the oss.gg repositories, that's against the rules

Actually, the account wasn't created just for starring those repositories. My friend started freelancing around 3-4 months ago, which is when they created this GitHub account. While there may not be many public repositories, there are some private ones. You can verify this by checking the API at the link provided: https://api.github.com/users/FelixCoder308.

Also, could you please share the rulebook or guidelines you're referring to? I'd like to review the specific rules you're mentioning.

Screenshot_2024-10-20-13-19-35-96_40deb401b9ffe8e1df2f1cc5ba480b12.jpg

Yash-1511 avatar Oct 20 '24 07:10 Yash-1511

/award 3200

chronark avatar Oct 28 '24 10:10 chronark

Awarding Yash-1511: 3200 points 🕹️ Well done! Check out your new contribution on oss.gg/Yash-1511

oss-gg[bot] avatar Oct 28 '24 10:10 oss-gg[bot]