MIT License

项目介绍

wei/pull 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,采用 MIT License 许可证,目前获得 7.2k 个 Star、778 次 Fork。

仓库全名
wei/pull
开源许可证
MIT License
Star 数
7.2k
Fork 数
778
未关闭 Issue
13

README 摘要

Introduction 🤖 a GitHub App that keeps your forks up-to-date with upstream via automated pull requests. Can you help keep this open source service alive? [💖 Please sponsor : )][pull-sponsor] Features 🔄 Automated Synchronization: Ensures forks are updated by automatically creating pull requests to integrate new changes from upstream ⚙️ Flexible Configuration: Customize sync behavior through .github/pull.yml…

完整内容见 GitHub 原始 README 或本页 。

常见问题

pull 用什么语言开发?

主要使用 TypeScript 编写,采用 MIT License 许可证,目前有 7.2k 个 Star。

pull 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 pull 的源码?

可以直接克隆仓库:git clone https://github.com/wei/pull.git,默认分支为 master;安装与运行步骤见仓库 README。

pull 最近还在维护吗?

仓库最近一次更新为 4月14日,当前有 13 个未关闭 Issue;Star 数为 7.2k,可作为社区活跃度的参考。

README

Introduction

Version Deno 2.0 TypeScript License

🤖 a GitHub App that keeps your forks up-to-date with upstream via automated pull requests.

Can you help keep this open source service alive? 💖 Please sponsor : )

Features

  • 🔄 Automated Synchronization: Ensures forks are updated by automatically creating pull requests to integrate new changes from upstream
  • ⚙️ Flexible Configuration: Customize sync behavior through .github/pull.yml configuration to accommodate different merge strategies, including merge, squash, rebase, and hard reset
  • 🕒 Scheduled Updates: Regularly checks for upstream changes periodically to ensure forks are always up-to-date
  • 👥 Team Integration: Facilitates collaboration by automatically adding assignees and reviewers to pull requests, honoring branch protection rules and working seamlessly with pull request checks and reviews
  • 🚀 Enterprise Ready: Supports GitHub Enterprise Server, ensuring a smooth integration process for enterprise-level projects

Prerequisites

  • Upstream must be in the same fork network.
  • ⚠️ Make a backup if you’ve made changes.

Getting Started

⭐ Star this project (Highly recommended, starred users may receive priority over other users)

Basic Setup

Pull app will automatically watch and pull in upstream’s default (master) branch to yours using hard reset periodically. You can also manually trigger it anytime.

Advanced Configuration (with config file)

  1. Create a new branch.

  2. Setup the new branch as default branch under repository Settings > Branches.

  3. Add .github/pull.yml to your default branch.

    Most Common

    (behaves the same as Basic Setup)

    version: "1"
    rules:
      - base: master
        upstream: wei:master # change `wei` to the owner of upstream repo
        mergeMethod: hardreset
        mergeUnstable: true
    
    Advanced usage
    version: "1"
    rules: # Array of rules
      - base: master # Required. Target branch
        upstream: wei:master # Required. Must be in the same fork network.
        mergeMethod: hardreset # Optional, one of [none, merge, squash, rebase, hardreset], Default: none.
        mergeUnstable: false # Optional, merge pull request even when the mergeable_state is not clean. Default: false
      - base: dev
        upstream: master # Required. Can be a branch in the same forked repo.
        assignees: # Optional
          - wei
        reviewers: # Optional
          - wei
        conflictReviewers: # Optional, on merge conflict assign a reviewer
          - wei
    label: ":arrow_heading_down: pull" # Optional
    conflictLabel: "merge-conflict" # Optional, on merge conflict assign a custom label, Default: merge-conflict
    
  4. Go to https://pull.git.ci/check/${owner}/${repo} to validate your .github/pull.yml.

  5. Install Pull app.

Trigger Manually

You can manually trigger Pull by going to https://pull.git.ci/process/${owner}/${repo}.

For Upstream Repository Owners

For the most common use case (a single master branch), you can just direct users to install Pull with no configurations. If you need a more advanced setup (such as a docs branch in addition to master), consider adding .github/pull.yml to your repository pointing to yourself (see example). This will allow forks to install Pull and stay updated automatically.

Example (assuming owner is your user or organization name):

version: "1"
rules:
  - base: master
    upstream: owner:master
    mergeMethod: hardreset
    mergeUnstable: true
  - base: docs
    upstream: owner:docs
    mergeMethod: hardreset
    mergeUnstable: true

Contributing

See CONTRIBUTING.md

License

MIT © Wei He

Support

Can you help keep this open source service alive? 💖 Please sponsor : )


Made with ❤️ by @wei

评论

暂无评论