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 +4 -4
- data/.github/workflows/test.yml +2 -2
- data/CHANGELOG.md +7 -0
- data/lib/ruboty/github/actions/merge_pull_request.rb +12 -1
- data/lib/ruboty/github/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db5ec28ed25d2164945f4f093201816e681ce3b091f7efcb3949006683d1d347
|
4
|
+
data.tar.gz: 349200ebb909f55fd2dcdc18782aac5697f995363419b1216adcfe46cdeb4969
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a839770dfb1cf14628faeb36462643846aa20513db61f75295dea992369f1c2dbd3558d483987dc9df4a5f8bb44aaa16fe522a4c7020fc283327a84d5e0cd64
|
7
|
+
data.tar.gz: 0e223e18fa17ae644a35c9db50ce1e1bb70ac370f9820e8609adedc88e4ad1e536f0fd4781900a74514583cd0bdaf62175bd76d88af0b7022336357148017e2c
|
data/.github/workflows/test.yml
CHANGED
@@ -19,7 +19,7 @@ jobs:
|
|
19
19
|
runs-on: "ubuntu-latest"
|
20
20
|
continue-on-error: false
|
21
21
|
steps:
|
22
|
-
- uses: actions/checkout@
|
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@
|
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
@@ -8,12 +8,23 @@ module Ruboty
|
|
8
8
|
|
9
9
|
def close
|
10
10
|
request
|
11
|
-
|
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
|
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.
|
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-
|
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
|
235
|
+
rubygems_version: 3.4.1
|
236
236
|
signing_key:
|
237
237
|
specification_version: 4
|
238
238
|
summary: Manage GitHub via Ruboty.
|