Skip to main content

Fix a branch not found warning

Every task pull request opens against its repository's integration branch. When you save a project's repository or its integration branch, Jaah asks your Git host whether that branch exists. If it doesn't, a warning shows above the project's tabs, such as Branch not found: develop on acme/api. Task pull requests will fail until it exists. With several repositories, it names each missing branch.

The save still happened. The page stays open on the warning instead of going back to the list, so you can fix it straight away. Jaah checks with the Git account of the person the project's background jobs run as (Run jobs as under General › Advanced), or the account of an Org Owner or Org Admin when that person has no Git login there. When that account can't read the repository, there is no warning either way.

Who can do this: anyone who may edit the project. Changing the primary repository's branch needs more: see Change a project's integration branch.

  1. Read the warning. For each repository it names, decide which is right: the branch name you typed, or the branch on your Git host.
  2. If the name is right but the branch doesn't exist yet, create it on your Git host, for example from main. Tasks started after that open their pull requests against it.
  3. If the name is wrong, such as a typo or master where your repository uses main: in Settings › General, select the repository's name on the Repository line.
  4. In Integration branch, type the branch exactly as it is on your Git host, then select Done.
  5. Select Save at the bottom of Settings.
  6. Check the result. When every branch is found, the page saves and goes back to the Projects list as usual (on the Tasks page's Settings view, it stays put with no warning). If the warning shows again, read the names it gives and repeat from step 1.

The warning is not stored: reloading the page or leaving it hides it, and it is checked again only at the next save of a repository or a branch. If you created the branch on your Git host in step 2, it is not checked until then.

If you leave with unsaved changes and choose Save in the dialog that asks, a missing branch keeps you on the page with the warning, so it isn't lost.