Chickpea Breyani

500g chickpeas, boiled

3 onions, sliced and fried until golden

3 tomatoes, chopped

4 green chillies