Skip to content
Draft
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
27 changes: 27 additions & 0 deletions docs/cli/propose-downstream.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,31 @@ We newly support `propose-downstream` also for CentOS Stream, see the configurat
Guidelines](https://fedoraproject.org/wiki/Packaging:SourceURL#Referencing_Source).
Then it copies the files listed in `files_to_sync` (which by default includes the spec file) from the upstream repo to downstream and creates the downstream PR.

## Dry-run mode

You can use `--dry-run` to test the update process locally without pushing to Fedora infrastructure:

```
$ packit propose-downstream --dry-run
```

In dry-run mode, packit will:
- Download source archives locally
- Update the `sources` file (using `fedpkg new-sources --offline`)
- Sync files and generate patches
- Update the spec file
- Create local commits in dist-git

But it will **skip**:
- Uploading archives to lookaside cache (only updates `sources` file)
- Pushing commits to remote
- Creating pull requests

This allows you to:
- Test the update locally before pushing to Fedora
- Perform local builds (e.g., `fedpkg local` or `rpmbuild`) to verify the changes
- Inspect the dist-git changes before they go live

## Help

Usage: packit propose-downstream [OPTIONS] [PATH_OR_URL] [VERSION]
Expand Down Expand Up @@ -109,4 +134,6 @@ Then it copies the files listed in `files_to_sync` (which by default includes th
--upstream-ref TEXT Git ref of the last upstream commit in the current
branch from which packit should generate patches
(this option implies the repository is source-git).
--dry-run Prepare dist-git repository locally without pushing
to remote or uploading to lookaside cache.
-h, --help Show this message and exit.
30 changes: 30 additions & 0 deletions docs/cli/pull-from-upstream.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,34 @@ upstream release. This command is meant to be called from **dist-git repository*
the name of the git tag (or `upstream_tag_template` is configured).


## Dry-run mode

You can use `--dry-run` to test the update process locally without pushing to Fedora infrastructure:

```
$ cd /path/to/dist-git/repo
$ packit pull-from-upstream --dry-run --dist-git-branch f42
```

In dry-run mode, packit will:
- Clone or fetch upstream repository
- Download source archives locally
- Update the `sources` file (using `fedpkg new-sources --offline`)
- Sync files from upstream and generate patches
- Update the spec file
- Create local commits in dist-git

But it will **skip**:
- Uploading archives to lookaside cache (only updates `sources` file)
- Pushing commits to remote
- Creating pull requests

This allows you to:
- Test the update locally before pushing to Fedora
- Perform local builds (e.g., `fedpkg local` or `rpmbuild`) to verify the changes
- Inspect the dist-git changes before they go live


## Help

Usage: packit pull-from-upstream [OPTIONS] [PATH_OR_URL] [VERSION]
Expand Down Expand Up @@ -53,4 +81,6 @@ upstream release. This command is meant to be called from **dist-git repository*
available, like in a monorepo configuration. Use it
multiple times to select multiple packages.Defaults
to all the packages listed inside the config.
--dry-run Prepare dist-git repository locally without pushing
to remote or uploading to lookaside cache.
-h, --help Show this message and exit.