Upgrade to Pro — share decks privately, control downloads, hide ads and more …

GitHub Pro Tips

Yuichi Tanaka
September 01, 2018

GitHub Pro Tips

Yuichi Tanaka

September 01, 2018

More Decks by Yuichi Tanaka

Other Decks in Programming


  1. Keep issues small • Focus on one topic • Large

    issue often contains several topics • Divide large issues and lock conversation
  2. Master search syntax is:issue Only issues text in:title Issues with

    “text” in their title user:octocat Issues owned by @octocat state:open Open issues assignee:octocat Issues that is assigned to @octocat mentions:octocat Issues that mention @octocat commenter:octocat Issues which have a comment by @octocat https://help.github.com/articles/understanding-the-search-syntax/ https://help.github.com/articles/searching-issues-and-pull-requests/
  3. Create pull request early • Get feedback from your team

    members and tools • Specify it is a work-in-progress (WIP) • Prefix title with [WIP] or use a WIP label
  4. module.exports = app => { app.on('issues.opened', async context => {

    // `context` extracts information from the event, // which can be passed to GitHub API calls. const params = context.issue({body: 'Hello World!'}) // Post a comment on the issue return context.github.issues.createComment(params) }) } Probot