create_github_release 2.1.0 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.commitlintrc.yml +16 -0
- data/.husky/commit-msg +1 -0
- data/CHANGELOG.md +17 -0
- data/README.md +29 -0
- data/create_github_release.gemspec +3 -2
- data/lib/create_github_release/tasks/commit_release.rb +1 -1
- data/lib/create_github_release/version.rb +1 -1
- data/package.json +11 -0
- metadata +24 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1ffe83bf7eb474d1753c08012f827cd6b12b628cb137362a9756f37806f704e
|
4
|
+
data.tar.gz: fdbdcf617cf68f32dca8795f90bf8c043c906c7dc892787c0fba8c5533b1bfa7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec45b13b37efbf897edfa721721414c6aeebc5c4cc98ec9a98aaeea0b4e802a278189cc57d89cf2b1d479bc335dc207edebb3d6444b434657ff96b7ba08718c4
|
7
|
+
data.tar.gz: f47b28ec037664696d350d72c458487133af69c2a30bd2389d634acf8ea748d3607a25618e69284e6005c5a1297a165e61d779883ba557d9bf9307f9e2ecaf49
|
data/.commitlintrc.yml
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
---
|
2
|
+
extends: '@commitlint/config-conventional'
|
3
|
+
|
4
|
+
rules:
|
5
|
+
# See: https://commitlint.js.org/reference/rules.html
|
6
|
+
#
|
7
|
+
# Rules are made up by a name and a configuration array. The configuration array contains:
|
8
|
+
#
|
9
|
+
# * Severity [0..2]: 0 disable rule, 1 warning if violated, or 2 error if violated
|
10
|
+
# * Applicability [always|never]: never inverts the rule
|
11
|
+
# * Value: value to use for this rule
|
12
|
+
#
|
13
|
+
# Run `npx commitlint --print-config` to see the current setting for all rules.
|
14
|
+
#
|
15
|
+
body-leading-blank: [2, 'always']
|
16
|
+
footer-leading-blank: [2, 'always']
|
data/.husky/commit-msg
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
npx --no-install commitlint --edit "$1"
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## v2.1.2 (2024-10-10)
|
9
|
+
|
10
|
+
[Full Changelog](https://github.com/main-branch/create_github_release/compare/v2.1.1..v2.1.2)
|
11
|
+
|
12
|
+
Changes since v2.1.1:
|
13
|
+
|
14
|
+
* 0bb1a31 build: remove semver pr label check
|
15
|
+
* 1c5f446 build: enforce conventional commit message formatting
|
16
|
+
|
17
|
+
## v2.1.1 (2024-10-10)
|
18
|
+
|
19
|
+
[Full Changelog](https://github.com/main-branch/create_github_release/compare/v2.1.0..v2.1.1)
|
20
|
+
|
21
|
+
Changes since v2.1.0:
|
22
|
+
|
23
|
+
* d44db95 fix: the release commit subject should not be sentence case
|
24
|
+
|
8
25
|
## v2.1.0 (2024-10-10)
|
9
26
|
|
10
27
|
[Full Changelog](https://github.com/main-branch/create_github_release/compare/v2.0.1..v2.1.0)
|
data/README.md
CHANGED
@@ -6,6 +6,8 @@
|
|
6
6
|
[![Build Status](https://github.com/main-branch/create_github_release/actions/workflows/continuous_integration.yml/badge.svg)](https://github.com/main-branch/create_github_release/actions/workflows/continuous_integration.yml)
|
7
7
|
[![Maintainability](https://api.codeclimate.com/v1/badges/b8c0af10b15a0ffeb1a1/maintainability)](https://codeclimate.com/github/main-branch/create_github_release/maintainability)
|
8
8
|
[![Test Coverage](https://api.codeclimate.com/v1/badges/b8c0af10b15a0ffeb1a1/test_coverage)](https://codeclimate.com/github/main-branch/create_github_release/test_coverage)
|
9
|
+
[![Conventional
|
10
|
+
Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white)](https://conventionalcommits.org)
|
9
11
|
[![Slack](https://img.shields.io/badge/slack-main--branch/create__github__release-yellow.svg?logo=slack)](https://main-branch.slack.com/archives/C07NG282N80)
|
10
12
|
|
11
13
|
When run in your gem's git worktree, the `create-github-release` script does the
|
@@ -40,6 +42,8 @@ Tested on Ruby 3.0+
|
|
40
42
|
* [How is the changelog updated?](#how-is-the-changelog-updated)
|
41
43
|
* [Development](#development)
|
42
44
|
* [Contributing](#contributing)
|
45
|
+
* [Commit message guidelines](#commit-message-guidelines)
|
46
|
+
* [Pull request guidelines](#pull-request-guidelines)
|
43
47
|
* [License](#license)
|
44
48
|
|
45
49
|
## Installation
|
@@ -401,6 +405,31 @@ To install this gem onto your current Ruby environment, run `bundle exec rake in
|
|
401
405
|
Bug reports and pull requests are welcome on
|
402
406
|
[this project's GitHub page](https://github.com/main-branch/create_github_release)
|
403
407
|
|
408
|
+
### Commit message guidelines
|
409
|
+
|
410
|
+
All commit messages must follow the [Conventional Commits
|
411
|
+
standard](https://www.conventionalcommits.org/en/v1.0.0/). This helps us maintain a
|
412
|
+
clear and structured commit history, automate versioning, and generate changelogs
|
413
|
+
effectively.
|
414
|
+
|
415
|
+
To ensure compliance, this project includes:
|
416
|
+
|
417
|
+
* A git commit-msg hook that validates your commit messages before they are accepted.
|
418
|
+
|
419
|
+
To activate the hook, you must have node installed and run `npm install`.
|
420
|
+
|
421
|
+
* A GitHub Actions workflow that will enforce the Conventional Commit standard as
|
422
|
+
part of the continuous integration pipeline.
|
423
|
+
|
424
|
+
Any commit message that does not conform to the Conventional Commits standard will
|
425
|
+
cause the workflow to fail and not allow the PR to be merged.
|
426
|
+
|
427
|
+
### Pull request guidelines
|
428
|
+
|
429
|
+
All pull requests must be merged using rebase merges. This ensures that commit
|
430
|
+
messages from the feature branch are preserved in the release branch, keeping the
|
431
|
+
history clean and meaningful.
|
432
|
+
|
404
433
|
## License
|
405
434
|
|
406
435
|
The gem is available as open source under the terms of the
|
@@ -40,10 +40,11 @@ Gem::Specification.new do |spec|
|
|
40
40
|
'Ruby: MRI 3.1 or later, TruffleRuby 24 or later, or JRuby 9.4 or later'
|
41
41
|
]
|
42
42
|
|
43
|
-
spec.add_dependency 'command_line_boss', '~> 0.
|
44
|
-
spec.add_dependency 'version_boss', '~> 0.
|
43
|
+
spec.add_dependency 'command_line_boss', '~> 0.2'
|
44
|
+
spec.add_dependency 'version_boss', '~> 0.2'
|
45
45
|
|
46
46
|
spec.add_development_dependency 'bundler-audit', '~> 0.9'
|
47
|
+
spec.add_development_dependency 'create_github_release', '~> 2.1'
|
47
48
|
# spec.add_development_dependency 'debug', '~> 1.9'
|
48
49
|
spec.add_development_dependency 'logger', '~> 1.6'
|
49
50
|
spec.add_development_dependency 'main_branch_shared_rubocop_config', '~> 0.1'
|
@@ -31,7 +31,7 @@ module CreateGithubRelease
|
|
31
31
|
#
|
32
32
|
def run
|
33
33
|
print 'Making release commit...'
|
34
|
-
`git commit -s -m 'chore:
|
34
|
+
`git commit -s -m 'chore: release #{project.next_release_tag}'`
|
35
35
|
if $CHILD_STATUS.success?
|
36
36
|
puts 'OK'
|
37
37
|
else
|
data/package.json
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: create_github_release
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: version_boss
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
40
|
+
version: '0.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler-audit
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0.9'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: create_github_release
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.1'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.1'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: logger
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -237,6 +251,8 @@ executables:
|
|
237
251
|
extensions: []
|
238
252
|
extra_rdoc_files: []
|
239
253
|
files:
|
254
|
+
- ".commitlintrc.yml"
|
255
|
+
- ".husky/commit-msg"
|
240
256
|
- ".markdownlint.yml"
|
241
257
|
- ".rspec"
|
242
258
|
- ".rubocop.yml"
|
@@ -291,6 +307,7 @@ files:
|
|
291
307
|
- lib/create_github_release/tasks/update_changelog.rb
|
292
308
|
- lib/create_github_release/tasks/update_version.rb
|
293
309
|
- lib/create_github_release/version.rb
|
310
|
+
- package.json
|
294
311
|
homepage: https://github.com/main-branch/create_github_release
|
295
312
|
licenses:
|
296
313
|
- MIT
|
@@ -298,8 +315,8 @@ metadata:
|
|
298
315
|
allowed_push_host: https://rubygems.org
|
299
316
|
homepage_uri: https://github.com/main-branch/create_github_release
|
300
317
|
source_code_uri: https://github.com/main-branch/create_github_release
|
301
|
-
documentation_uri: https://rubydoc.info/gems/create_github_release/2.1.
|
302
|
-
changelog_uri: https://rubydoc.info/gems/create_github_release/2.1.
|
318
|
+
documentation_uri: https://rubydoc.info/gems/create_github_release/2.1.2
|
319
|
+
changelog_uri: https://rubydoc.info/gems/create_github_release/2.1.2/file/CHANGELOG.md
|
303
320
|
rubygems_mfa_required: 'true'
|
304
321
|
post_install_message:
|
305
322
|
rdoc_options: []
|