Generate events and checks client #1195
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Part of #1157. Generalizes the
openapi_generator
to work with the events and checks clients and removes hard coded values from the tests. The major changes are replacingcheck_run
in method names to justcheck
:events.rb
repository_events
=>repo_events
organization_events
=>org_events
, also adds user paramorganization_public_events
=>org_public_events
the same:
public_events
,user_events
,user_public_events
,checks.rb
create_check_run
=>create_check
update_check_run
=>update_check
check_runs_for_check_suite
=>check_suites
check_run
=>check
check_run_annotations
=>check_annotations
set_check_suite_preferences
=>set_suite_preferences
the same:
check_suite
,create_check_suite
,rerequest_check_suite
Methods removed for now as they'll be generated in other files,
received_events
,received_public_events
(user.rb),repository_network_events
(networks.rb)repository_issue_events
=>repository_events
(issues.rb)issue_events
,issue_event
(issues.rb)check_runs_for_ref
,check_suites_for_ref
(commits.rb)Retroactively:
move_project_column
andmove_project_card
now return a boolean response