Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How do I set up github to associate and automatically close issue when submitting code?

Shulou Source: shulou.com Published: 2022-06-03 07:29:30 10月02日 Update

Github is a commonly used code hosting platform, and its functions are constantly expanding. Recently, it has switched from JIRA management development task to issues using Github. The advantage is that it is lightweight and simple, and is directly related to the code base.

First, create and manage issue

You should first create a code base or have permissions.

1. On the code base page, click Issues, and then click the button "New Issue" in the upper right corner.

2. In the create issue page, enter the title to add description and details. Github provides a simple and practical markdown editing feature:

3. Optional information such as the manager and tag of issue can be set in the list on the right side of the page.

4. Click the button "Submit new issue", create it successfully, and jump to the details page.

5. Add and modify issue information, operation status, and close after development.

Second, associate the issue when submitting the code

In the actual development work, it is necessary to associate code submission with issue to facilitate code review and functional testing. Github provides automatic association. When commit submits the code, you only need to include the issue number in the comments, # issue_id:

Third, automatically turn off issue

Is it possible to turn off the associated issue automatically when submitting the code? Just add command keywords to the comments, such as close # 6 xxx:

The only command keywords supported by Github are close and fix, which reduces the intermediate flow status of documents compared with JIRA Fecru.

Tags: Code associations functions pages development information keys keywords commands buttons comments status details management utility success tasks functional tests documents only Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Xiaomi Huawei Shulou Information MariaDB