Support rebasing forked repo against default branch in upstream repo

Open
#17 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
ci-cd

Research direction

Start in ros2_batch_job/main.py around the branch-rebasing logic linked near line 414, then trace how a selected ros2.repos file is tested. Determine how the default branch in the upstream repository should be identified and when rebasing should be optional. Done means the requested forked-repository case works without changing cases where rebasing is not wanted.

Written by the indexing model from the issue text.

Description

enhancement

If we specify a particular branch on the ros2 repos to test for the CI jobs, we will rebase that branch against master.

There are cases when it would be useful to do the same when testing a given ros2.repos file, such as checking that PRs from external contributors will work correctly even after being rebased.

(There are probably also cases when we would not want to rebase)

Dominant language
Python
Stars
55
Forks
40
Avg merge
3d 5h
Merged PRs (30d)
6

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ros2/ci

All issues in ros2/ci

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.