ruboty-qiita-github 0.3.2 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ff6f082efd3d94c6e28dbbf39ae0285cd0f6729415c7ad6e7c3527da26cb978
4
- data.tar.gz: 3d0f484fa14f6634f6db23dc85fef11467d3d03de29d963cb8ccd81097e12e97
3
+ metadata.gz: db5ec28ed25d2164945f4f093201816e681ce3b091f7efcb3949006683d1d347
4
+ data.tar.gz: 349200ebb909f55fd2dcdc18782aac5697f995363419b1216adcfe46cdeb4969
5
5
  SHA512:
6
- metadata.gz: b69769ed73851c28ff5af05a7adcf8d97c6fcd5b54ded6e95e931125abde5a28d029069cfdd5cfecd865f8ea2fbeb4984ca24c13c109b93cf2a899df2e4992be
7
- data.tar.gz: 194f8a7d7c3c556fe664c5279d7054378ed127a13312fa0196706ec137551371fcfb3a59ab41fb9b9a8780218a6eb9a6f1ec5a9fa8fe324930ed446a8533ae18
6
+ metadata.gz: 3a839770dfb1cf14628faeb36462643846aa20513db61f75295dea992369f1c2dbd3558d483987dc9df4a5f8bb44aaa16fe522a4c7020fc283327a84d5e0cd64
7
+ data.tar.gz: 0e223e18fa17ae644a35c9db50ce1e1bb70ac370f9820e8609adedc88e4ad1e536f0fd4781900a74514583cd0bdaf62175bd76d88af0b7022336357148017e2c
@@ -19,7 +19,7 @@ jobs:
19
19
  runs-on: "ubuntu-latest"
20
20
  continue-on-error: false
21
21
  steps:
22
- - uses: actions/checkout@v3
22
+ - uses: actions/checkout@v4
23
23
  - uses: ruby/setup-ruby@v1
24
24
  with:
25
25
  ruby-version: ${{ matrix.ruby }}
@@ -29,7 +29,7 @@ jobs:
29
29
  rubocop:
30
30
  runs-on: "ubuntu-latest"
31
31
  steps:
32
- - uses: actions/checkout@v3
32
+ - uses: actions/checkout@v4
33
33
  - uses: ruby/setup-ruby@v1
34
34
  with:
35
35
  ruby-version: "3.1"
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## Unreleased
2
2
 
3
+ ## 0.3.4
4
+ - Fix bug of v0.3.3
5
+
6
+ ## 0.3.3
7
+ - Bump actions/checkout from 3 to 4
8
+ - Enable to change after merge custom message
9
+
3
10
  ## 0.3.2
4
11
  - Allow space in merge command
5
12
  - Send message when all exceptions
@@ -8,12 +8,23 @@ module Ruboty
8
8
 
9
9
  def close
10
10
  request
11
- message.reply("Merged #{issue.html_url}")
11
+ after_merge_message
12
12
  end
13
13
 
14
14
  def request
15
15
  client.merge_pull_request(repository, issue_number)
16
16
  end
17
+
18
+ def after_merge_message
19
+ message.reply("Merged #{issue.html_url}")
20
+
21
+ custom_message = ENV.fetch('AFTER_MERGE_MESSAGE', nil)
22
+ target_repository = ENV.fetch('AFTER_MERGE_MESSAGE_TARGET_REPOSITORY', '')
23
+
24
+ return true unless (repository == target_repository) && custom_message
25
+
26
+ message.reply(custom_message)
27
+ end
17
28
  end
18
29
  end
19
30
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ruboty
4
4
  module Github
5
- VERSION = '0.3.2'
5
+ VERSION = '0.3.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-qiita-github
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-08-07 00:00:00.000000000 Z
12
+ date: 2023-12-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
232
  - !ruby/object:Gem::Version
233
233
  version: '0'
234
234
  requirements: []
235
- rubygems_version: 3.1.6
235
+ rubygems_version: 3.4.1
236
236
  signing_key:
237
237
  specification_version: 4
238
238
  summary: Manage GitHub via Ruboty.