To add to Dom’s correct reading of “doing the right thing,” I’d say Star Wars is about “doing the right thing” specifically in an effort to prevent fascism/totalitarianism/tyranny
That aspect is one of the only aspects that is consistent across all episodes. It’s not just doing the right thing - it’s doing the right thing to make things better for everyone, not just yourself.
The quality of the films pretty clearly rises and falls on how muddled and diluted those two (really, just two sides of the same) key throughline(s) are in whatever individual chapter you’re watching. When it doesn’t stick to those main dramatic engines, and instead chooses to pursue various retcons, shifts in focus, direct reactions to vocal fandom, or worst, indulges in acts of self-referentialism as a replacement for storyline progression - that’s when it falters and trends towards disappointment.