ruboty-qiita-github 0.3.2 → 0.3.3

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: 428947cc3bc45e068621e716700bfdd3794c4d5bea4e3953484c1fdda04d9c1f
4
+ data.tar.gz: c5c4a90307f58c85f84b1d27cb087761a9cb195db61b361e006626ebe10cb13c
5
5
  SHA512:
6
- metadata.gz: b69769ed73851c28ff5af05a7adcf8d97c6fcd5b54ded6e95e931125abde5a28d029069cfdd5cfecd865f8ea2fbeb4984ca24c13c109b93cf2a899df2e4992be
7
- data.tar.gz: 194f8a7d7c3c556fe664c5279d7054378ed127a13312fa0196706ec137551371fcfb3a59ab41fb9b9a8780218a6eb9a6f1ec5a9fa8fe324930ed446a8533ae18
6
+ metadata.gz: b6290a0ec069f6adc266ddbfeb0a163f14c879174a9d025c02be06a939fc1fef750be03b59aaef7d5192481b6272f22e4fc3699de6f84df8f4904859e2fa64f1
7
+ data.tar.gz: 0f8306a079bd04e0a92845f661d9ae2509d22a43a15dc8675f0e799579c20f3512d8295121641ef47418760aa70bd1d1de4eb19590dfbac284d93cc2e7e6425c
@@ -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,9 @@
1
1
  ## Unreleased
2
2
 
3
+ ## 0.3.3
4
+ - Bump actions/checkout from 3 to 4
5
+ - Enable to change after merge custom message
6
+
3
7
  ## 0.3.2
4
8
  - Allow space in merge command
5
9
  - 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 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.3'
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.3
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-20 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.