table of contents
| PKGOS-SALSA-SET-DEFAULT-BRANCH(1) | Debian OpenStack packaging | PKGOS-SALSA-SET-DEFAULT-BRANCH(1) |
NAME¶
pkgos-salsa-set-default-branch - set the default branch of a project of the Debian OpenStack team
SYNOPSIS¶
pkgos-salsa-set-default-branch --openstack-release
<release> --project-name <name>
pkgos-salsa-set-default-branch --openstack-release
<release> --project-id <id> [--debug]
DESCRIPTION¶
pkgos-salsa-set-default-branch sets the default branch of a single project of the Debian OpenStack team on salsa.debian.org to debian/<new-release>, using the GitLab REST API. Exactly one of --project-name and --project-id must be given; the project name is resolved to its numeric ID through pkgos-salsa-get-project-id(1). With --debug, the curl command is printed, but nothing is sent to the GitLab API.
OPTIONS¶
- --openstack-release <release>
- Name of the OpenStack release of the branch to set as default, for example "flamingo". If omitted, it defaults to the OpenStack release of the currently checked-out debian/<release> Git branch, provided that release is listed in /etc/pkgos/openstack-release.txt.
- --project-name <name>
- Name of the project, for example "nova". If omitted, it defaults to the name of the Git repository containing the current working directory (ie: the basename of the toplevel directory), when running from inside a Git repository. A --project-name passed on the command line always takes precedence.
- --project-id <id>
- Numeric ID of the project, as alternative to --project-name.
- --debug
- Only print the curl command that would be run, and do not perform any API call.
ENVIRONMENT¶
- SALSA_TOKEN
- Salsa personal access token with API access. May also be set in /etc/pkgos/pkgos.conf.
EXAMPLES¶
- pkgos-salsa-run-on-all-projects pkgos-salsa-set-default-branch \
- --openstack-release grizzly
SEE ALSO¶
pkgos-salsa-get-project-id(1), pkgos-salsa-run-on-all-projects(1), pkgos-salsa-new-branch(1), pkgos-salsa-new-openstack-release(1).
AUTHOR¶
This script and its man page: (c) 2026, Thomas Goirand <zigo@debian.org>, released under the Apache-2.0 license.
| 23 September 2026 | openstack-pkg-tools |