Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

just fetch head commit of base branch

Ivan Kuchin177ad067ef1c
diff --git a/.github/workflows/rubocop-core.yml b/.github/workflows/rubocop-core.yml
index e80d5bcf05e..d1953e531b6 100644
--- a/.github/workflows/rubocop-core.yml
+++ b/.github/workflows/rubocop-core.yml
@@ -8,9 +8,9 @@ jobs:
name: rubocop
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
- with:
- fetch-depth: 2 # we are comparing PR merge head with base
+ - uses: actions/checkout@v4
+ - name: Fetch head commit of base branch
+ run: git fetch --depth 1 origin ${{ github.event.pull_request.base.sha }}
- uses: ruby/setup-ruby@v1
- uses: opf/action-rubocop@master
with: