美文网首页
GitHub工作流

GitHub工作流

作者: _贺瑞丰 | 来源:发表于2018-08-21 11:46 被阅读11次

CONTRIBUTING

Workflow

We use GitHub issues with(out) milestones, PR, releases and a CHANGELOG.md to manage the development and releases in production.

Releases and Changelog

  1. Releases
    • We tag every release with a version number and update them on GitHub.
  2. Changelog
    • We sumarizes changes in CHANGELOG.md under the corresponding version.
    • A version with date means it's been released to production already.
    • A version without date means we're still working on it.
    • You should never add/edit changes under a version with date.

Issues and milestones

We always keep three milestones open:

  • long term: has issues we are going to deal with for a long time.
  • The next minor version: has issues we are currently working with. It will be closed once it's released.
  • The next of next minor version: has issues scheduled for the next phase. A new future-plan milestone will be opened when it replaces the current-working milestone.

For example, the current release on production is v1.3.1. So we'll have the three milestones open:

  • long term
  • v1.4
  • v1.5

Issues without a mileston means we haven't schedule it yet.

Pull requests(PR)

  1. Start a new branch(keep the name short, simple, and meaningful) from:
    • master: For small changes or a simple feature we want to deploy it very soon.
    • a feature branch: For big changes or a complex feature which need to be tested thoroughly.
  2. Start coding and commiting. Remember rebase your working branch frequently from the base branch(master or the feature branch mentioned in 1.).
  3. Before submit your PR
    • Rebase from the base branch(in 1.).
    • Improve/Re-organize your commit history using interactive rebase(git rebase -i). Some tips:
      • Decide which changes should be in which commit(s) wisely.
      • Squash redundent commits such as Fix typo
      • Write a good commit message. Example format:
        Present-tense summary under 50 characters
        
        * More information about commit (under 72 characters).
        * More information about commit (under 72 characters).
        
        http://project.management-system.com/ticket/123
        
    • Make sure all tests are passed:
      • rails: (rails test and rails test:system)
  4. Submit your PR
    • One issue/change one pull request.
    • Put necessary details in your comment and reference the related issue.
  5. Ask person for a review:
    • Approval: your PR will be merged to the right branch.
    • Request changes: you should ammending your commits(or close the PR and start a new one) and repeat steps start with 3.

相关文章

  • git工作流

    开源软件工作流 这个工作流适合开发维护开源软件,它依赖于github的Fork功能。 开发流程 将 GitHub ...

  • GitHub工作流

    CONTRIBUTING Workflow We use GitHub issues with(out) mile...

  • GitHub工作流程

    创建项目 fork公司项目到自己的仓库 复制自己仓库的项目地址将项目clone到本地git clone https...

  • Git工作流

    一、Git常见工作流 Git三种常见的工作流:Git Flow、GitHub Flow 、GitLab Flow ...

  • Git 工作流程

    文中内容仅供参考。 Git 工作流程简单介绍了三种广泛使用的工作流程: Git flow Github flow ...

  • 2019-04-18

    springboot运行 activiti5工作流引擎 https://github.com/Bryceyao/a...

  • 记录github使用workflow

    创建工作流 第一次接触github的工作流,在创建项目后,点击Actions选项卡,进入Action页面。 当然这...

  • Spring Boot 集成 Activiti 工作流引擎 极简

    Activiti 简介 Java 通用型工作流引擎:Activiti。 源代码:https://github.co...

  • Github Actions 部署

    首先在git项目下创建一个workflow GitHub Actions 术语。 workflow (工作流程):...

  • Git的工作流程

    常见的基于Git的软件开发的工作流程有三种,第一种是git的工作流程,第二种是github的工作流程,第三种是基于...

网友评论

      本文标题:GitHub工作流

      本文链接:https://www.haomeiwen.com/subject/fmvdiftx.html