In my experience HR is usually involved once due diligence starts to get serious. This can be under several of the major diligence categories from operations, risk, legal, or people. Best if each functional group has experienced representation on the diligence team. After that, HR would be engaged and likely have a workstream in early-mid integration planning. For those in HR outside of the deal/integration leadership, likely would be day one.