Skip to content

Commit 9ea2782

Browse files
authored
Commit sig/**.rbs when code is updated by openapi generator (#491)
it's missing (found in #484)
1 parent efe3b61 commit 9ea2782

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/generate-code.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Generate OpenAPI based code
22

33
on:
44
push:
5+
branches:
6+
- master
57
pull_request:
68
merge_group:
79
workflow_dispatch:
@@ -80,6 +82,7 @@ jobs:
8082
8183
git add line-openapi
8284
git add lib/**
85+
git add sig/**
8386
git commit -m "Codes are generated by openapi"
8487
8588
git push origin $BRANCH_NAME

lib/line/bot/v2/webhook/model/source.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ module Webhook
1515
# @see https://developers.line.biz/en/reference/messaging-api/#source-user
1616
class Source
1717
# @!attribute [rw] type
18-
# @return [String,nil] source type
18+
# @return [String] source type
1919
attr_accessor :type
2020

21-
# @param type [String,nil] source type
21+
# @param type [String] source type
2222
def initialize(
23-
type: nil,
23+
type:,
2424
**dynamic_attributes
2525
)
2626

line-openapi

sig/line/bot/v2/webhook/model/source.rbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ module Line
1414
# the source of the event.
1515
# @see https://developers.line.biz/en/reference/messaging-api/#source-user
1616
class Source
17-
attr_accessor type: String?
17+
attr_accessor type: String
1818

1919
def initialize: (
20-
type: String?
20+
type: String
2121
) -> void
2222

2323
def self.create: (args: Hash[Symbol, untyped]) -> Source

0 commit comments

Comments
 (0)