(maint) - Set max_issues for changelog generator to 500
authorDavid Swan <david.swan@puppet.com>
Mon, 23 Aug 2021 10:56:44 +0000 (11:56 +0100)
committerDavid Swan <david.swan@puppet.com>
Mon, 23 Aug 2021 10:56:44 +0000 (11:56 +0100)
.github/workflows/auto_release.yml
.sync.yml
Rakefile
metadata.json

index e0284836004149b1fd5c2bb9ac73bfe1332d5a37..c25a80dcef23585874013970429a351b34d79c95 100644 (file)
@@ -46,8 +46,14 @@ jobs:
       run: |
         echo "::set-output name=ver::$(jq --raw-output .version metadata.json)"
 
-    - name: "Commit changes"
+    - name: "Check if a release is necessary"
       if: ${{ github.repository_owner == 'puppetlabs' }}
+      id: check
+      run: |
+        git diff --quiet CHANGELOG.md && echo "::set-output name=release::false" || echo "::set-output name=release::true"
+
+    - name: "Commit changes"
+      if: ${{ github.repository_owner == 'puppetlabs' && steps.check.outputs.release == 'true' }}
       run: |
         git config --local user.email "${{ github.repository_owner }}@users.noreply.github.com"
         git config --local user.name "GitHub Action"
@@ -57,7 +63,7 @@ jobs:
     - name: Create Pull Request
       id: cpr
       uses: puppetlabs/peter-evans-create-pull-request@v3
-      if: ${{ github.repository_owner == 'puppetlabs' }}
+      if: ${{ github.repository_owner == 'puppetlabs' && steps.check.outputs.release == 'true' }}
       with:
         token: ${{ secrets.GITHUB_TOKEN }}
         commit-message: "Release prep v${{ steps.gv.outputs.ver }}"
@@ -73,7 +79,7 @@ jobs:
         labels: "maintenance"
 
     - name: PR outputs
-      if: ${{ github.repository_owner == 'puppetlabs' }}
+      if: ${{ github.repository_owner == 'puppetlabs' && steps.check.outputs.release == 'true' }}
       run: |
         echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
         echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
index 3abeb3663e06745dc8fb148c85328f0b233a4ed4..55e74f61fa64f7f20fd03e10b2b3f4a8176c3e02 100644 (file)
--- a/.sync.yml
+++ b/.sync.yml
@@ -8,6 +8,8 @@ Gemfile:
   optional:
     ":development":
     - gem: github_changelog_generator
+Rakefile:
+  changelog_max_issues: 500
 spec/spec_helper.rb:
   mock_with: ":rspec"
   coverage_report: true
index 9486ad0cb57d28782541670e13dd451a5edb41a1..54422c591bb057788f88901d20f7e6ea3afec5f6 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -49,6 +49,7 @@ if Bundler.rubygems.find_name('github_changelog_generator').any?
     config.user = "#{changelog_user}"
     config.project = "#{changelog_project}"
     config.since_tag = "v8.0.0"
+    config.max_issues = 500
     config.future_release = "#{changelog_future_release}"
     config.exclude_labels = ['maintenance']
     config.header = "# Change log\n\nAll notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org)."
index 4b63f98102230abe8220e5bd4d226ad143666a45..3e7d2b3799e5727c1c294fb2ff4870eadcfc8526 100644 (file)
@@ -39,6 +39,6 @@
     }
   ],
   "template-url": "https://github.com/puppetlabs/pdk-templates.git#main",
-  "template-ref": "heads/main-0-g2381db6",
-  "pdk-version": "2.1.0"
+  "template-ref": "heads/main-0-g51828b4",
+  "pdk-version": "2.2.0"
 }