<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>49693</bug_id>
          
          <creation_ts>2024-03-14 11:51:49 +0300</creation_ts>
          <short_desc>Не работает github-changelog-generator</short_desc>
          <delta_ts>2024-03-17 03:44:49 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>gem-github-changelog-generator</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kirill Sen">senkd</reporter>
          <assigned_to name="majioa@altlinux.org">majioa</assigned_to>
          <cc>majioa</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>242987</commentid>
    <comment_count>0</comment_count>
    <who name="Kirill Sen">senkd</who>
    <bug_when>2024-03-14 11:51:49 +0300</bug_when>
    <thetext>Не работает github-changelog-generator

Версия пакета:
gem-github-changelog-generator-devel-1.16.4-alt1.noarch

Платформы(Обновлены до Sisyphus):
kworkstation-10.2-x86_64
workstation-10.1-x86_64
education-10.2-x86_64
education-kde-10.2-x86_64
server-10.1-x86_64

Проверялось в p10 - Ошибка воспроизвелась (версия пакета та же)

Шаги воспроизведения:

1) Установить пакет

# apt-get install gem-github-changelog-generator

2) Перейти в папку с бинарниками и запустить github_changelog_generator

$ cd /usr/lib/ruby/gemie/gems/github_changelog_generator-1.16.4/bin

$ ./github_changelog_generator --user github-changelog-generator --project github-changelog-generator 

Ожидаемое поведение:
Выполнение без ошибок, в рабочей директории создаётся changelog.MD с историей изменений репозитория 
(Как если бы пакет установили при помощи  
# gem install github_changelog_generator)

Фактический результат(changelog.MD не создаётся + ошибка):
...
/usr/lib/ruby/gemie/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:209:in `fetch_events_async&apos;: uninitialized constant Octokit::Preview (NameError)

      preview = { accept: Octokit::Preview::PREVIEW_TYPES[:project_card_events] }
                                 ^^^^^^^^^
	from /usr/lib/ruby/gemie/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/generator/generator_fetcher.rb:11:in `fetch_events_for_issues_and_pr&apos;
	from /usr/lib/ruby/gemie/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/generator/generator.rb:150:in `fetch_issues_and_pr&apos;
	from /usr/lib/ruby/gemie/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/generator/generator.rb:55:in `block in compound_changelog&apos;
	from /usr/lib/ruby/gemie/gems/async-2.1.0/lib/async/task.rb:107:in `block in run&apos;
	from /usr/lib/ruby/gemie/gems/async-2.1.0/lib/async/task.rb:243:in `block in schedule&apos;



$ rpm -qa | grep -E &quot;ruby|gem&quot;
gem-protocol-http-0.23.12-alt1.noarch
gem-async-2.1.0-alt1.noarch
gem-docile-1.3.5-alt1.noarch
gem-regexp-parser-2.6.1-alt1.noarch
gem-protocol-http1-0.14.2-alt1.noarch
gem-protocol-hpack-1.4.2-alt1.noarch
gem-simplecov-0.21.2-alt1.noarch
gem-rubocop-1.36.0-alt1.noarch
gem-zeitwerk-2.6.1-alt1.noarch
gem-async-http-0.59.2-alt1.noarch
gem-rake-13.1.0-alt1.noarch
gem-yard-junk-0.0.9-alt1.noarch
libruby-3.1.4-alt3.x86_64
gem-public-suffix-4.0.6-alt1.noarch
gem-async-http-faraday-0.12.0-alt1.noarch
gem-iniparse-1.5.0-alt1.noarch
gem-rspec-junit-formatter-0.5.1-alt1.noarch
ruby-3.1.4-alt3.x86_64
gem-i18n-1.10.0-alt1.noarch
gem-fiber-local-1.0.0-alt1.1.noarch
gem-protocol-http2-0.14.2-alt1.noarch
gem-octokit-5.6.1-alt1.noarch
gem-codeclimate-test-reporter-1.0.9-alt1.1.noarch
gem-rubocop-performance-1.13.3-alt1.noarch
gem-webmock-3.14.0-alt1.noarch
gem-concurrent-ruby-1.2.3-alt1.x86_64
gem-minitest-5.18.1-alt1.noarch
gem-timers-4.3.4-alt1.noarch
gem-faraday-net-http-3.0.1-alt1.noarch
gem-childprocess-4.1.0-alt1.noarch
gem-multi-json-1.15.0-alt1.noarch
gem-rubocop-ast-1.17.0-alt1.noarch
gem-rspec-support-3.10.2-alt1.noarch
gem-rexml-3.2.5-alt1.noarch
gem-addressable-2.8.1-alt1.noarch
gem-async-pool-0.3.8-alt1.noarch
gem-faraday-http-cache-2.2.0-alt1.noarch
gem-simplecov-json-formatter-0.1.2-alt1.noarch
gem-overcommit-0.60.0-alt1.noarch
gem-unicode-display-width-2.0.0-alt1.noarch
gem-vcr-6.1.0-alt1.noarch
ruby-stdlibs-3.1.4-alt3.x86_64
gem-tzinfo-2.0.4-alt1.noarch
gem-console-1.16.2-alt1.noarch
gem-traces-0.7.0-alt1.noarch
gem-backports-3.24.0-alt1.noarch
gem-crack-0.4.4-alt1.noarch
gem-racc-1.7.3-alt1.x86_64
gem-yard-0.9.34-alt1.noarch
gem-github-changelog-generator-devel-1.16.4-alt1.noarch
gem-activesupport-6.1.7.1-alt1.1.noarch
gem-faraday-2.6.0-alt1.noarch
gem-github-changelog-generator-1.16.4-alt1.noarch
gem-rspec-core-3.10.1-alt1.noarch
libpagemaker-0.0.4-alt1.x86_64
gem-3.3.26-alt3.noarch
gem-ast-2.4.2-alt1.noarch
gem-sawyer-0.9.2-alt1.noarch
gem-parallel-1.20.2-alt1.noarch
gem-hashdiff-1.0.1-alt1.1.noarch
gem-io-event-1.0.9-alt1.x86_64
gem-bump-0.10.0-alt1.noarch
gem-parser-3.2.2.4-alt1.noarch
gem-github-changelog-generator-doc-1.16.4-alt1.noarch
gem-rainbow-3.1.0-alt1.noarch
gem-async-io-1.34.0-alt1.noarch
gem-simplecov-html-0.12.3-alt1.noarch
gem-ruby-progressbar-1.13.0-alt1.noarch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>243102</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2024-03-17 03:44:49 +0300</bug_when>
    <thetext>gem-github-changelog-generator-1.16.4.37-alt0.1 -&gt; sisyphus:

 Thu Mar 14 2024 Pavel Skrylev &lt;majioa@altlinux&gt; 1.16.4.37-alt0.1
 - ^ 1.16.4 -&gt; 1.16.4p37
 - ! fixed deprecated octokit preview constant (closes #49693)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>