You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Users often need a quick way to generate and commit a devcontainer.json file directly from a GitHub repository's interface. Manually generating and committing the file involves multiple steps and can be cumbersome.
Describe the solution you'd like
Develop a Chrome extension that integrates with the GitHub interface.
When the user is on a GitHub repository page, the extension should display a button.
Upon clicking the button, the extension will:
Check if the user is authenticated with GitHub through the extension.
If authenticated, generate a devcontainer.json file and create a pull request (PR) committing it to the repository.
If not authenticated, allow the user to download the generated devcontainer.json as a raw file.
Describe alternatives you've considered
Providing a CLI tool for similar functionality, but this would not be as seamless or integrated as a browser extension.
Using a web-based service where users can enter repository URLs manually, but this adds steps and reduces convenience.
Additional context
Chrome Extension Development:
Use the Chrome Extensions API to create the extension.
Implement content scripts to detect when the user is on a GitHub repository page.
Authentication:
Use GitHub OAuth to handle authentication within the extension.
Store the authentication token securely and use it for API calls.
GitHub API Integration:
Make API calls to generate the devcontainer.json and create a PR using the authenticated user's credentials.
If the user is not authenticated, fetch the devcontainer.json and allow them to download it.
UI/UX:
Design a user-friendly button that appears on GitHub repository pages.
Provide clear feedback and instructions based on the user's authentication status.
Dependencies:
Ensure the feature depends on the backend capability to fetch the generated devcontainer.json via URL hash.
Example Flow:
User visits a GitHub repository page.
Extension displays a "Generate Devcontainer" button.
On click, extension checks if the user is authenticated.
If yes, generate and commit the devcontainer.json via PR.
If no, provide the devcontainer.json file for download.
The text was updated successfully, but these errors were encountered:
If no one is assigned to the issue, feel free to tackle it, without confirmation from us, after registering your attempt. In the event that multiple PRs are made from different people, we will generally accept those with the cleanest code.
Please respect others by working on PRs that you are allowed to submit attempts to.
e.g. If you reached the limit of active attempts, please wait for the ability to do so before submitting a new PR.
If you can not submit an attempt, you will not receive your payout.
Thank you for contributing to daytonaio/devcontainer-generator!
@nkkko If the extension potentially grows with additional features or integrations, we can create a new repository. However, i think for now it remains a simple utility tightly coupled with the main project, it could reside in the same repository under a dedicated folder (e.g., /chrome-extension)...thoughts?
Is your feature request related to a problem? Please describe.
Users often need a quick way to generate and commit a
devcontainer.json
file directly from a GitHub repository's interface. Manually generating and committing the file involves multiple steps and can be cumbersome.Describe the solution you'd like
devcontainer.json
file and create a pull request (PR) committing it to the repository.devcontainer.json
as a raw file.Describe alternatives you've considered
Additional context
Chrome Extension Development:
Authentication:
GitHub API Integration:
devcontainer.json
and create a PR using the authenticated user's credentials.devcontainer.json
and allow them to download it.UI/UX:
Dependencies:
devcontainer.json
via URL hash.Example Flow:
devcontainer.json
via PR.devcontainer.json
file for download.The text was updated successfully, but these errors were encountered: