Adding Issue Template
An issue template is a template with prepopulated information about how an issue can be mentioned.
Step by step process to create an issue template :
Step 1 :
You should have a repository.
Step 2 :
Go to the main page of the repository. Under the repository name, click Settings.
![Screenshot 2022-10-03 at 8 02 52 PM](https://user-images.githubusercontent.com/47234407/193889955-d37b9033-7892-4c12-90a5-7a731b57a129.png)
Step 3 :
Scroll down to the "Features" section. Under "Issues", click on "Set up templates".
![Screenshot 2022-10-04 at 11 25 22 PM](https://user-images.githubusercontent.com/47234407/193891838-9d571171-133a-482e-b1bb-ea385305e713.png)
Step 4 :
Click on the Add template drop-down menu, and select the type of template you'd like to create
- Bug report - This template is used to convey the detailed information about the bug to the developers.
- Feature request - It is a document where developers make requests for a product in development.
- Custom template - This template is completely user controlled and can be customized according to needs.
![Screenshot 2022-10-04 at 11 43 37 PM](https://user-images.githubusercontent.com/47234407/193894578-76c96778-aec1-4c66-9237-6c3c74302b8c.png)
Step 5 :
You can click on Preview and edit to view and edit the template.
![Screenshot 2022-10-04 at 11 46 38 PM](https://user-images.githubusercontent.com/47234407/193895400-0dd611bc-04ba-4eb1-9f5c-2c9e0de607ca.png)
Step 6 :
Click on the pencil icon to edit the template and type in the fields to edit their contents.
![Screenshot 2022-10-04 at 11 50 46 PM](https://user-images.githubusercontent.com/47234407/193896158-7d5e20cb-7bea-4a60-b2a5-19fd3961204c.png)
Step 7 :
Enter the information under "Optional additional information" to automatically set a default issue title, assign the issue to users with read access to the repository, or apply labels to your issue template. In a YAML format, you can also include these details in the issue template along with the title, labels, or assignees.
![Screenshot 2022-10-04 at 11 55 57 PM](https://user-images.githubusercontent.com/47234407/193896767-9ce84001-c9ba-4dea-9ec0-a679124acf6f.png)
Step 8 :
Click on Propose changes in the top right corner of the page once you're done altering and previewing your template.
![Screenshot 2022-10-04 at 11 58 43 PM](https://user-images.githubusercontent.com/47234407/193897353-bf7fb5d3-93eb-41be-a5f4-7de36c6df1a4.png)
Step 9 :
Write a commit message summarizing the changes you made.
![Screenshot 2022-10-05 at 12 01 29 AM](https://user-images.githubusercontent.com/47234407/193897863-5ea95c93-e40e-4fdb-a3f4-bc1dfd8af0c7.png)
Step 10 :
Choose whether to establish a new branch and launch a pull request or to commit your template directly to the default branch underneath the commit message boxes.
![Screenshot 2022-10-05 at 12 04 37 AM](https://user-images.githubusercontent.com/47234407/193898357-cbda1b6b-2a6e-41b9-b20a-48eaf1c5adc5.png)
Step 11 :
Click on Commit changes. The template will be accessible for contributors to use when they open new issues in the repository once these modifications are merged into the default branch.
![Screenshot 2022-10-05 at 12 06 57 AM](https://user-images.githubusercontent.com/47234407/193898983-d1684258-74df-4f7d-9dcc-705c715e3aff.png)