How long do I have to live in Pennsylvania to obtain a divorce?

Parties wishing to initiate a divorce action in Pennsylvania must establish residence in the state at least six months prior to the initiation of the action.