Sunday, June 15, 2025

Amazon Q Developer in GitHub (in preview) accelerates code technology

Voiced by Polly

Beginning at present, now you can use Amazon Q Developer in GitHub in preview! That is incredible information for the thousands and thousands of builders who use GitHub every day, whether or not at work or for private initiatives. They’ll now use Amazon Q Developer for characteristic improvement, code evaluations, and Java code migration straight inside the GitHub interface.

To display, I’m going to make use of Amazon Q Developer to assist me create an software from zero known as StoryBook Teller. I would like this to be an ASP.Core web site utilizing .NET 9 that takes three photographs from the person and makes use of Amazon Bedrock with Anthropic’s Claude to generate a narrative primarily based on them.

Let me present you ways this works.

Set up

The very first thing it’s good to do is set up the Amazon Q Developer software in GitHub, and you may start utilizing it instantly with out connecting to an AWS account.

You’ll then be offered with a alternative so as to add it to all of your repositories or choose particular ones. On this case, I wish to add it to my storybook-teller-demo repo, so I select Solely chosen repositories and kind within the title to seek out it.

That is all it’s good to do to make the Amazon Q Developer app prepared to make use of inside your chosen repos. You may confirm that the app is put in by navigating to your GitHub account Settings and the app ought to be listed within the Functions web page.

You may select Configure to view permissions and add Amazon Q Developer to repositories or take away it at any time.

Now let’s use Amazon Q Developer to assist us construct our software.

Function improvement
When Amazon Q Developer is put in right into a repository, you possibly can assign GitHub points to the Amazon Q improvement agent to develop options for you. It’ll then generate code utilizing the entire codebase in your repository as context in addition to the difficulty’s description. Because of this it’s essential to checklist your necessities as precisely and clearly as doable in your GitHub points, the identical means that it is best to all the time try for anyway.

I’ve created 5 points in my StoryBook Teller repository that cowl all my necessities for this app, from making a skeleton .NET 9 venture to implementing frontend and backend.

Let’s use Amazon Q Developer to develop the applying from scratch and assist us implement all these options!

To start with, I would like Amazon Q Developer to assist me create the .NET venture. To do that, I open the primary situation, and within the Labels part, I discover and choose Amazon Q improvement agent.

That’s all there may be to it! The problem is now assigned to Amazon Q Developer. After the label is added, the Amazon Q improvement agent routinely begins working behind the scenes offering progress updates by the feedback, beginning with one saying, I am engaged on it.

As you may anticipate, the period of time it takes will depend upon the complexity of the characteristic. When it’s achieved, it should routinely create a pull request with all of the adjustments.

The following factor I wish to do is guarantee that the generated code works, so I’m going to obtain the code adjustments and run the app domestically on my pc.

I’m going to my terminal and kind git fetch origin pull/6/head:pr-6 to get the code for the pull request it created. I double-check the contents and I can see that I do certainly have an ASP.Core venture generated utilizing .NET 9, as I anticipated.

I then run dotnet run and open the app with the URL given within the output.

Good, it really works! Amazon Q Developer took care of implementing this one precisely as I needed primarily based on the necessities I offered within the GitHub situation. Now that I’ve examined that the app works, I wish to overview the code itself earlier than I settle for the adjustments.

Code overview
I’m going again to GitHub and open the pull request. I instantly discover that Amazon Q Developer has carried out some automated checks on the generated code.

That is nice! It has already achieved fairly a little bit of the work for me. Nonetheless, I wish to overview it earlier than I merge the pull request. To try this, I navigate to the Recordsdata modified tab.

I overview the code, and I like what I see! Nonetheless, trying on the contents of .gitignore, I discover one thing that I wish to change. I can see that Amazon Q Developer made good assumptions and added exclusion guidelines for Visible Studio (VS) Code information. Nonetheless, JetBrains Rider is my favourite built-in improvement atmosphere (IDE) for .NET improvement, so I wish to add guidelines for it, too.

You may ask Amazon Q Developer to reiterate and make adjustments through the use of the traditional code overview move within the GitHub interface. On this case, I add a remark to the .gitignore code saying, add patterns to disregard Rider IDE information. I then select Begin a overview, which is able to queue the change within the overview.

I choose End your overview and Request adjustments.

Quickly after I submit the overview, I’m redirected to the Dialog tab. Amazon Q Developer begins engaged on it, resuming the identical suggestions loop and inspiring me to proceed with the overview course of till I’m glad.

Each time Q Developer makes adjustments, it should run the automated checks on the generated code. On this case, the code was considerably simple, so it was anticipated that the automated code overview wouldn’t elevate any points. However what occurs if we now have extra complicated code?

Let’s take one other instance and use Amazon Q Developer to implement the characteristic for enabling picture uploads on the web site. I exploit the identical move I described within the earlier part. Nonetheless, I discover that the automated checks on the pull request flagged a warning this time, stating that the API generated to help picture uploads on the backend is lacking authorization checks successfully permitting direct public entry. It explains the safety threat intimately and offers helpful hyperlinks.

It then routinely generates a steered code repair.

When it’s achieved, you possibly can overview the code and select to Commit adjustments in case you’re proud of the adjustments.

After fixing this and testing it, I’m proud of the code for this situation and transfer on making use of the identical course of to different ones. I assign the Amazon Q improvement agent to every one in every of my remaining points, await it to generate the code, and undergo the iterative overview course of asking it to repair any points for me alongside the best way. I then check my software on the finish of that software program cycle and am more than happy to see that Amazon Q Developer managed to deal with all points, from venture setup, to boilerplate code, to extra complicated backend and frontend. A real full-stack developer!

I did discover some issues that I needed to vary alongside the best way. For instance, it defaulted to utilizing the Invoke API to ship the uploaded photographs to Amazon Bedrock as a substitute of the Converse API. Nonetheless, as a result of I didn’t state this in my necessities, it had no means of understanding. This highlights the significance of being as exact as doable in your situation’s titles and descriptions to provide Q Developer the mandatory context and make the event course of as environment friendly as doable.

Having mentioned that, it’s nonetheless simple to overview the generated code on the pull requests, add feedback, and let the Amazon Q Developer agent preserve engaged on adjustments till you’re proud of the ultimate outcome. Alternatively, you possibly can settle for the adjustments within the pull request and create separate points you can assign to Q Developer later whenever you’re able to develop them.

Code transformation
You too can rework legacy Java codebases to trendy variations with Q Developer. At present, it might probably replace purposes from Java 8 or Java 11 to Java 17, with extra choices coming in future releases.

The method is similar to the one I demonstrated earlier on this publish, apart from a couple of issues.

First, it’s good to create a difficulty inside a GitHub repository containing a Java 8 or Java 11 software. The title and outline don’t actually matter on this case. It’d even be a brief title corresponding to “Migration,” leaving the outline empty. Then, on Labels, you assign the Amazon Q rework agent label to the difficulty.

Very like earlier than, Amazon Q Developer will begin working instantly behind the scenes earlier than producing the code on a pull request you can overview. This time, nevertheless, it’s the Amazon Q rework agent doing the work which is specialised in code migration and can take all the mandatory steps to investigate and migrate the code from Java 8 to Java 17.

Discover that it additionally wants a workflow to be created, as per the documentation. In the event you don’t have it enabled but, it should show clear directions that will help you get all the things arrange earlier than making an attempt once more.

As anticipated, the period of time wanted to carry out a migration depends upon the dimensions and complexity of your software.

Conclusion
Utilizing Amazon Q Developer in GitHub is like having a full-stack developer you can collaborate with to develop new options, speed up the code overview course of, and depend on to reinforce the safety posture and high quality of your code. You too can use it to automate migration from Java 8 and 11 purposes to Java 17 making it a lot simpler to get began on that migration venture that you just might need been suspending for some time. Better of all, you are able to do all this from the consolation of your personal GitHub atmosphere.

Now obtainable
Now you can begin utilizing Amazon Q Developer at present at no cost in GitHub, no AWS account setup wanted.

Amazon Q Developer in GitHub is at the moment in preview.

Matheus Guimaraes | codingmatheus


How is the Information Weblog doing? Take this 1 minute survey!

(This survey is hosted by an exterior firm. AWS handles your data as described within the AWS Privateness Discover. AWS will personal the information gathered through this survey and won’t share the data collected with survey respondents.)

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles