[04] Close the issue in PR

[04] Close the issue in PR

Seems to be giving someone PR.


Say you are creating a pull request to fix issue #234. Then you can enter "fixes #234" in the PR, and you can automatically merge the PR and close the issue, isn't it cool?

(Key words such as fix/fixes/fixed , close/closes/closed or resolve/resolves/resolved can be used in the submission information, please see  help for more information )




【】In pr, link to comment

You even want to link to a specific comment but can't do it? I'm here to tell you, click the date/time next to your name and you're all set.



【】Link to code

Since you can link to the comment, you want to ask if you can link to the code? OK.

Try this: While viewing the file, click the line number next to the code.

wow, did you see that? The URL is updated accordingly. If you Shift-click another line number, the URL updates again, and all code segments between those two line numbers are highlighted.

You can share the URL now, but wait, these are still the current branch, what if the files changed? You need a permalink.

I'm lazy, but this screenshot below shows how to get permalinks (Copy Permalink):




**

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324973868&siteId=291194637
04