A generalization of Ramsey theory for stars and one matching