A San Leandro woman was hit by a stray bullet while standing in the courtyard of her apartment complex just after midnight on New Year’s Day.

The bullet was among many shot in a fusillade of celebratory gunfire — something that law enforcement agencies throughout the Bay Area are trying to discourage. Shooting a gun in the air is a felony under state law.

The woman, whose name has not been released, sustained minor injuries and was treated by emergency personnel at her home on the 1200 block of Pacific Ave. She did not have to go to the hospital.

San Leandro police received six calls reporting gunfire between 10 p.m. on Sunday night and 2 a.m. on Monday.

“Most bullets from celebratory gunfire land harmlessly or lodge in roofs or other property, but in areas with high population densities there is a likelihood that bullets may strike human beings,” the police said in a news release describing the incident.

No other injuries were reported.

Rachel Swan is a San Francisco Chronicle staff writer. Email: rswan@sfchronicle.com Twitter:@rachelswan