Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/process-git-request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def process_git_request(fname, target_branch, source_branch, prj_dir)
# puts "Working Dir : " + working_dir
Dir.chdir working_dir
# puts "pwd : " + Dir.pwd
git_cmd = "git log --oneline --no-abbrev-commit origin/" + target_branch + ".." + "origin/" + source_branch
git_cmd = "git log --oneline --no-abbrev-commit base_repo/" + target_branch + ".." + "origin/" + source_branch
# puts git_cmd
out, err, status = Open3.capture3(git_cmd)
if status.exitstatus != 0
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/process-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
pull_request:
branches:
- '**'
- '!mainline'
- '!mainline'

permissions:
contents: read
Expand All @@ -24,7 +24,18 @@ jobs:
ruby-version: ['3.0']

steps:
- uses: actions/checkout@v4
- name: Checkout PR branch
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0
ref: ${{ github.head_ref }}

- name: Checkout base branch
run: |
git remote add base_repo https://github.com/${{ github.repository }}.git
git fetch base_repo ${{ github.base_ref }}:${{ github.base_ref }}

- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
Expand All @@ -39,8 +50,6 @@ jobs:
run: |
/usr/bin/pip3 install gitPython
python -c "import sys; import git; print(sys.version)"
git fetch origin ${{ github.base_ref }}
git fetch origin ${{ github.head_ref }}
git remote add linux https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --shallow-since="3 years ago" linux
echo "Will run process-git-request.rb with:"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/upstream-commit-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ jobs:
- name: Checkout PR branch
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0
ref: ${{ github.head_ref }}

- name: Checkout base branch
run: |
git fetch origin ${{ github.base_ref }}:${{ github.base_ref }}
git remote add base_repo https://github.com/${{ github.repository }}.git
git fetch base_repo ${{ github.base_ref }}:${{ github.base_ref }}

- name: Download check_kernel_commits.py
run: |
Expand Down
Loading