定制 wikimedia/update-history 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wikimedia/update-history

最新稳定版本:1.0.3

Composer 安装命令:

composer require wikimedia/update-history

包简介

A simple tool to update HISTORY.md files

README 文档

README

Latest Stable Version License

wikimedia/update-history

A simple tool to update HISTORY.md files when making a library release.

Additional documentation about this library can be found on mediawiki.org.

Usage

To make a release:

Step 1

bin/update-history [patch|minor|major]

This increments the version number for a patch release (or, if you specify, for a minor or major release instead) and updates the HISTORY.md with the new version number and the current date.

Step 2

git add HISTORY.md
git commit -m "Release <My Package> <VERSION>"
git tag <VERSION>

This step will be automated in the future.

Step 3

bin/update-history

This adds a new placeholder "x.x.x (not yet released)" section to the HISTORY.md.

Step 4

git add HISTORY.md
git commit -m "Bump HISTORY.md after release"

This step will be automated in the future.

Step 5 (optional)

Push these commits to your code review system.

git review

When they are merged you may have to verify that the tag created above still corresponds to the final merged commit, and if not:

git tag -f <new git hash> <VERSION>

And finally, push the new tag:

git push origin <VERSION>

To add this tool to a new PHP project

Add this as a dependency:

composer require --dev --fixed wikimedia/update-history

It's recommended to add a shortcut to the "scripts" section of your composer.json for the most common release action:

{
	...
	"scripts": {
		...
		"update-history": "update-history patch",
	}
}

We also recommend adding a section to your README.md documenting the use of this tool:

Releasing a new version
-----------------------

This package uses `wikimedia/update-history` and its conventions.

See https://www.mediawiki.org/wiki/UpdateHistory for details.

统计信息

  • 总下载量: 8.98k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 13
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 19
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-08-06