0.6.12 • Published 2 years ago

@technote-space/github-action-version-helper v0.6.12

Weekly downloads
40
License
MIT
Repository
github
Last release
2 years ago

Github Action Version Helper

npm version CI Status codecov CodeFactor License: MIT

Read this in other languages: English, 日本語.

GitHub Actions 用のバージョンヘルパー

Table of Contents

使用方法

  1. インストール
    • npm
      npm i @technote-space/github-action-version-helper
    • yarn
      yarn add @technote-space/github-action-version-helper
  2. 使用
import { Commit, Version } from '@technote-space/github-action-version-helper';

Commit

import { Commit } from '@technote-space/github-action-version-helper';

...

const types = ['feat', 'chore'];
const excludeMessages = ['trigger workflow'];
const breakingChangeNotes = ['BREAKING CHANGE'];
const commits = await Commit.getCommits(types, excludeMessages, breakingChangeNotes, octokit, context);

/**
例:__tests__/fixtures/commit.list2.json
[
	{
		'type': 'chore',
		'message': 'tweaks',
		'normalized': 'chore: tweaks',
		'original': 'chore: tweaks',
		'children': [],
		'notes': [],
		'sha': '2dcb09b5b57875f334f61aebed695e2e4193db5e',
	},
	{
		'type': 'feat',
		'message': 'add new features',
		'normalized': 'feat: add new features',
		'original': 'feat!: add new features',
		'children': [
			{
				'type': 'feat',
				'message': 'add new feature1 (#123)',
				'normalized': 'feat: add new feature1 (#123)',
				'original': 'feat: add new feature1 (#123)',
			},
			{
				'type': 'feat',
				'message': 'add new feature2 (#234)',
				'normalized': 'feat: add new feature2 (#234)',
				'original': 'feat: add new feature2 (#234)',
			},
		],
		'notes': ['BREAKING CHANGE: changed'],
		'sha': '3dcb09b5b57875f334f61aebed695e2e4193db5e',
	},
	{
		'type': 'feat',
		'message': 'add new feature3',
		'normalized': 'feat: add new feature3',
		'original': 'feat :  add new feature3',
		'children': [],
		'notes': [],
		'sha': '4dcb09b5b57875f334f61aebed695e2e4193db5e',
	},
	{
		'type': 'chore',
		'message': 'tweaks',
		'normalized': 'chore: tweaks',
		'original': 'chore: tweaks',
		'children': [],
		'notes': [],
		'sha': '9dcb09b5b57875f334f61aebed695e2e4193db5e',
	},
]
**/

Version

import { Version } from '@technote-space/github-action-version-helper';

...

const minorUpdateCommitTypes = ['feat'];
const excludeMessages = ['tweaks'];
const breakingChangeNotes = ['BREAKING CHANGE'];
const version = await Version.getNextVersion(minorUpdateCommitTypes, excludeMessages, breakingChangeNotes, helper, octokit, context);

/**
例:__tests__/fixtures/repos.git.matching-refs.json, __tests__/fixtures/commit.list3.json
v2.1.0
**/

Author

GitHub (Technote)
Blog

0.6.10

2 years ago

0.6.12

2 years ago

0.6.11

2 years ago

0.6.9

2 years ago

0.6.7

3 years ago

0.6.8

3 years ago

0.6.6

3 years ago

0.6.5

3 years ago

0.6.4

3 years ago

0.6.3

3 years ago

0.6.2

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.30

3 years ago

0.5.29

3 years ago

0.5.28

3 years ago

0.5.27

3 years ago

0.5.25

3 years ago

0.5.26

3 years ago

0.5.24

3 years ago

0.5.21

4 years ago

0.5.22

4 years ago

0.5.23

3 years ago

0.5.20

4 years ago

0.5.19

4 years ago

0.5.18

4 years ago

0.5.17

4 years ago

0.5.16

4 years ago

0.5.14

4 years ago

0.5.15

4 years ago

0.5.13

4 years ago

0.5.12

4 years ago

0.5.11

4 years ago

0.5.10

4 years ago

0.5.9

4 years ago

0.5.8

4 years ago

0.5.7

4 years ago

0.5.6

5 years ago

0.5.5

5 years ago

0.5.4

5 years ago

0.5.3

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.5

5 years ago

0.4.4

5 years ago

0.4.3

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.4

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.11

5 years ago

0.2.10

5 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago