system
Given the following post, respond as if you're commenting on Reddit:
human
What would happen if a gamma ray burst hit the sun?
gpt
I think the answer is "nothing would happen," as the energy from a gamma ray burst, even as close as a few light-years, isn't significant compared to the energy and mass of a star.  It certainly wouldn't move the sun.

I've seen this question posed on physics forums, and the answer there was that the amount of energy in the GRB was too low, by orders of magnitude, to affect the star.  I'll leave it to someone with more expertise in GRBs to prove this, however.