bartbot / sweep

Sweep: AI-powered Junior Developer for small features and bug fixes.
https://sweep.dev
GNU Affero General Public License v3.0
0 stars 0 forks source link

Sweep: write me instructions in /docs/pages/deployment.mdx on how to deploy this application to GitLab. Reference /sweepai/config/server.py to create instructions on how to deploy. #52

Open bartbot opened 8 months ago

bartbot commented 8 months ago

Details

Reference GitLab's Applications API https://docs.gitlab.com/ee/api/applications.html

sweep-self-hosted-digital[bot] commented 8 months ago
Sweeping

✨ Track Sweep's progress on our progress dashboard!


25%
💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID: None)

[!TIP] I can email you when I complete this pull request if you set up your email here!


Actions (click)


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/bartbot/sweep/blob/69871e2ed1feef956e023ad36a8b1ba434c96fc3/docs/pages/blogs/chunking-2m-files.mdx#L17-L407 https://github.com/bartbot/sweep/blob/69871e2ed1feef956e023ad36a8b1ba434c96fc3/sweepai/core/prompts.py#L557-L606

Step 2: ⌨️ Coding

Working on it...


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord

sweep-self-hosted-digital[bot] commented 8 months ago
Sweeping

✨ Track Sweep's progress on our progress dashboard!


25%
💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID: None)

[!TIP] I can email you when I complete this pull request if you set up your email here!


Actions (click)


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/bartbot/sweep/blob/69871e2ed1feef956e023ad36a8b1ba434c96fc3/sweepai/__init__.py#L1-L-1 https://github.com/bartbot/sweep/blob/69871e2ed1feef956e023ad36a8b1ba434c96fc3/sweepai/startup.py#L1-L15 https://github.com/bartbot/sweep/blob/69871e2ed1feef956e023ad36a8b1ba434c96fc3/extension/src/manifest.json#L1-L22 https://github.com/bartbot/sweep/blob/69871e2ed1feef956e023ad36a8b1ba434c96fc3/docs/pages/index.mdx#L1-L60 https://github.com/bartbot/sweep/blob/69871e2ed1feef956e023ad36a8b1ba434c96fc3/docs/pages/faq.mdx#L1-L62 https://github.com/bartbot/sweep/blob/69871e2ed1feef956e023ad36a8b1ba434c96fc3/docs/pages/privacy.mdx#L1-L64 https://github.com/bartbot/sweep/blob/69871e2ed1feef956e023ad36a8b1ba434c96fc3/docs/pages/deployment.mdx#L1-L175 https://github.com/bartbot/sweep/blob/69871e2ed1feef956e023ad36a8b1ba434c96fc3/bin/startup.sh#L1-L4
I also found the following external resources that might be helpful: **Summaries of links found in the content:** https://docs.gitlab.com/ee/api/applications.html: The Applications API in GitLab allows for the management of instance-wide OAuth applications for authentication and access to GitLab resources on a user's behalf. The API can be used to create, list, and delete applications. To create an application, a POST request is made with the application's name, redirect URI, and scopes. The response includes the application's ID, name, secret, callback URL, and confidentiality status. To list all applications, a GET request is made, and the response includes the ID, application ID, name, callback URL, and confidentiality status of each application. To delete a specific application, a DELETE request is made with the application's ID. Here are the code snippets for the API operations: Create an application: ```bash curl --request POST --header "PRIVATE-TOKEN: " \ --data "name=MyApplication&redirect_uri=http://redirect.uri&scopes=api read_user email" \ "https://gitlab.example.com/api/v4/applications" ``` List all applications: ```bash curl --header "PRIVATE-TOKEN: " "https://gitlab.example.com/api/v4/applications" ``` Delete an application: ```bash curl --request DELETE --header "PRIVATE-TOKEN: " "https://gitlab.example.com/api/v4/applications/:id" ``` These operations allow for the management of OAuth applications within GitLab.

Step 2: ⌨️ Coding

Working on it...


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord

sweep-self-hosted-digital[bot] commented 8 months ago
Sweeping

✨ Track Sweep's progress on our progress dashboard!


25%
💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID: None)

[!TIP] I can email you when I complete this pull request if you set up your email here!


Actions (click)


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/bartbot/sweep/blob/69871e2ed1feef956e023ad36a8b1ba434c96fc3/docs/pages/deployment.mdx#L1-L375 https://github.com/bartbot/sweep/blob/69871e2ed1feef956e023ad36a8b1ba434c96fc3/sweepai/config/server.py#L59-L92
I also found the following external resources that might be helpful: **Summaries of links found in the content:** https://docs.gitlab.com/ee/api/applications.html: The Applications API in GitLab allows for managing instance-wide OAuth applications for authentication and accessing GitLab resources on a user's behalf. The API can be used to create, list, and delete applications. To create an application, a POST request is made with the application's name, redirect URI, and scopes. The response includes the application's ID, name, secret, callback URL, and confidentiality status. To list all applications, a GET request is made, and the response includes the ID, application ID, name, callback URL, and confidentiality status of each application. To delete a specific application, a DELETE request is made with the application's ID. The page also includes example requests and responses for each API endpoint. Here are the code snippets provided on the page: 1. Create an application: ```bash curl --request POST --header "PRIVATE-TOKEN: " \ --data "name=MyApplication&redirect_uri=http://redirect.uri&scopes=api read_user email" \ "https://gitlab.example.com/api/v4/applications" ``` 2. List all applications: ```bash curl --header "PRIVATE-TOKEN: " "https://gitlab.example.com/api/v4/applications" ``` 3. Delete an application: ```bash curl --request DELETE --header "PRIVATE-TOKEN: " "https://gitlab.example.com/api/v4/applications/:id" ```

Step 2: ⌨️ Coding

Working on it...


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord