When a bicycle tire goes flat, move out of traffic and check whether it uses a conventional inner tube or a tubeless setup. A flat front wheel can make the bicycle difficult to steer. Dismount and wheel the bike while deciding what equipment you have.
For a tire with an inner tube
Remove the tube using the wheel and tire makers’ instructions. Find the leak and check the corresponding point in the casing or rim tape. Fit a compatible replacement tube or use a bicycle patch kit approved for that tube material. Check that the tube is not trapped under the bead before bringing it up to its indicated pressure.
What if the supplies are at home?
Walk the bicycle or arrange a lift if the tube will not hold air. Cardboard held in place with household glue cannot provide an airtight tube repair. Check the casing and bead before the next ride, especially if the tire went flat after hitting a pothole.