ruboty-qiita-github 0.3.1 → 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: 5007820d4dbb9d3e1c2f1e14865579ef10202d7a2fcaf88811f4a76283dd0d72
4
- data.tar.gz: 58389cddf9a0469d30363b1b1f5bb7d30f8c4d71c99f3f0f6e3ee4cc0bbb3df6
3
+ metadata.gz: 428947cc3bc45e068621e716700bfdd3794c4d5bea4e3953484c1fdda04d9c1f
4
+ data.tar.gz: c5c4a90307f58c85f84b1d27cb087761a9cb195db61b361e006626ebe10cb13c
5
5
  SHA512:
6
- metadata.gz: 21289475fac1ff633501bb31ae366a294c55e119de7c0f401e5b5eceafd6c90fd28fac825c6888e2018d1c1cdcfe3cdede09057ab7a779971d5d8ac97bcebf06
7
- data.tar.gz: dc06bc14e7a4c8cbad5607de6058dbd602dcaca6d697ff5129e78c70db421f270f16bc207e703a681dab1b51c993519da6d10f462274f4602cbb200fa5a94885
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,13 @@
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
+
7
+ ## 0.3.2
8
+ - Allow space in merge command
9
+ - Send message when all exceptions
10
+
3
11
  ## 0.3.1
4
12
  - Enable to change migration warning message
5
13
 
@@ -17,8 +17,8 @@ module Ruboty
17
17
  rescue Octokit::NotFound
18
18
  message.reply('Could not find that issue')
19
19
  rescue StandardError => e
20
- raise e
21
20
  message.reply("Failed by #{e.class}")
21
+ raise e
22
22
  end
23
23
 
24
24
  private
@@ -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.1'
5
+ VERSION = '0.3.3'
6
6
  end
7
7
  end
@@ -44,7 +44,7 @@ module Ruboty
44
44
  )
45
45
 
46
46
  on(
47
- /merge #{ISSUE_PATTERN}\z/o,
47
+ /merge\s+#{ISSUE_PATTERN}\z/o,
48
48
  name: 'merge_pull_request',
49
49
  description: 'Merge pull request'
50
50
  )
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.1
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-03-28 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