Hello everyone, Leonardo here!
Today we talk about GitHub and some cool features it offers to improve the context and the communication between developers, through Issues and Pull Requests.
As usual, before diving into the article, let me share the video version you can find on my YouTube channel:
These are some of the features shown in the video:
Code suggestions
With a special syntax, you can suggest code changes when commenting a Pull Request.
Everyone with write access to the repo will see a "commit" button to immediately commit the suggested change.
Render labels
Yes, labels can be nicely rendered as well, here's an example:
Show details of linked issues
When you link an issue with #
followed by the issue number, a link is rendered. However, if you do so in a list, the issue (or PR) is expanded and the name and the status are displayed as well.
By the way, you can mention issues with GH-[IssueNumber]
as well!
Close issues automatically when PR is merged
Mentioning an issue in a PR, with some special keywords (for example closes #3
or fixes #3
), will enable this cool feature. As soon as the PR is merged, the issue will be marked as closed.
If this is activated, you can see it in the bottom right corner of the Pull Request.
Marking an issue as duplicate
If you type Duplicate of
and mention an issue, that one will be marked as duplicate and it is shown right below your comment.
If you want to see all of these in action plus some additional ones, you can watch them in this 3 minutes video!
If you want to support me, go watch it and leave a like ❤️
Do you know of some other cool features? Let me know in the comments!
Thanks for reading this article, I hope you found it interesting!
Do you like my content? You might consider subscribing to my YouTube channel!
You can find it here:
Feel free to follow me to get notified when new articles are out ;)
Top comments (6)
Another cool thing is the dot (
.
) shortcut. Pressing dot on any github repo will open it in a web-based editor based on vs code.From the doc :
True, that one is also really cool and I used it a few times to better navigate through the codebase, but technically it can do much more!
Ok, these two are already in the list for the next video 😄
Great 🤩 Please, ping me / mention me for your next video, so I don't miss it!
(Already subscribed on YouTube, but I have so many subs...)
I will! :D
A cool feature to mention is the command palette, similar to spotlight in Mac OS.
To open it:
⌘ k
or⌘ opt k
Ctrl k
orCtrl alt k
I didn't know that, that's amazing! Thank you so much for sharing! ❤️