From 61f118afb372a8b302e75c62961ce295fb73f900 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Aug 2023 19:14:23 +0000 Subject: [PATCH 1/2] Update rubocop requirement from 1.54.2 to 1.56.0 Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop/compare/v1.54.2...v1.56.0) --- updated-dependencies: - dependency-name: rubocop dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index a0c90d16e..07b29768f 100644 --- a/Gemfile +++ b/Gemfile @@ -46,7 +46,7 @@ group :test, :development do gem 'bundler', '>= 1', '< 3' gem 'pry-byebug' gem 'redcarpet' - gem 'rubocop', '1.54.2' + gem 'rubocop', '1.56.0' end gemspec From 9bbb059a2a9a43710e44fd75880083ce5a40f45d Mon Sep 17 00:00:00 2001 From: Nick Floyd <139819+nickfloyd@users.noreply.github.com> Date: Fri, 18 Aug 2023 21:09:44 +0000 Subject: [PATCH 2/2] fixes cop violation --- lib/octokit/repository.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/octokit/repository.rb b/lib/octokit/repository.rb index 55b4923fe..c6524cef1 100644 --- a/lib/octokit/repository.rb +++ b/lib/octokit/repository.rb @@ -48,7 +48,8 @@ def slug # @return [String] Repository API path def path return named_api_path if @owner && @name - return id_api_path if @id + + id_api_path if @id end # Get the api path for a repo