]> _ Git - alire.git/commit
Improvements to publishing with automatic PR creation (#1398)
authorAlejandro R Mosteo <amosteo@unizar.es>
Mon, 3 Jul 2023 18:39:13 +0000 (20:39 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Jul 2023 18:39:13 +0000 (20:39 +0200)
commit5c17abb0dc6ed48158ebd51750761317063b5ccd
tree7bd571b3f5d139e12f52f2c70b87bfbc33fcbd3a
parent9cff7e030025689c8ef03b9aae076c539473cd4a
Improvements to publishing with automatic PR creation (#1398)

* Added --submit switch to `alr publish`

* Forking of community index

* Changes up to pushing the manifest

* PR creation

* Reshaped as steps of the assistant

* Use release-specific branch

* Report PR webpage after creation

* Detect existing conflicting PR

* Minor tweaks (draft mode, texts, busy spinners)

* Documentation

* Allow overriding of community index info

This will allow our testing and help maintainers of other indexes

* Fix temp dir being not absolute

* Fixes for self-build with `alr build`

* Fixes for Windows temp file specifics

* Document all steps more thoroughly

Also use a better name for the new child package.

* Make submission the default after user confirmation

Document this change in behavior and the new `--skip-submit` switch that
restores the former behavior.

* Default to submit, and add switch not to submit
49 files changed:
alire.toml
deps/minirest
doc/publishing.md
doc/user-changes.md
src/alire/alire-config-edit.ads
src/alire/alire-config.ads
src/alire/alire-directories.adb
src/alire/alire-directories.ads
src/alire/alire-environment.ads
src/alire/alire-github.adb
src/alire/alire-github.ads
src/alire/alire-index.ads
src/alire/alire-os_lib-subprocess.adb
src/alire/alire-paths.ads
src/alire/alire-platforms-common.ads
src/alire/alire-platforms-folders.ads
src/alire/alire-publish-states.adb [new file with mode: 0644]
src/alire/alire-publish-states.ads [new file with mode: 0644]
src/alire/alire-publish-submit.adb [new file with mode: 0644]
src/alire/alire-publish-submit.ads [new file with mode: 0644]
src/alire/alire-publish.adb
src/alire/alire-publish.ads
src/alire/alire-uri.adb
src/alire/alire-uri.ads
src/alire/alire-vcss-git.adb
src/alire/alire-vcss-git.ads
src/alire/alire.adb
src/alire/alire.ads
src/alire/os_freebsd/alire-platforms-folders__freebsd.adb
src/alire/os_linux/alire-platforms-folders__linux.adb
src/alire/os_macos/alire-platforms-folders__macos.adb
src/alire/os_windows/alire-platforms-folders__windows.adb
src/alr/alr-commands-publish.adb
src/alr/alr-commands-publish.ads
testsuite/drivers/alr.py
testsuite/run.py
testsuite/tests/monorepo/subdir-in-tar/test.py
testsuite/tests/publish/check-properties/test.py
testsuite/tests/publish/check-trusted/test.py
testsuite/tests/publish/local-repo-branched/test.py
testsuite/tests/publish/local-repo-nonstd/test.py
testsuite/tests/publish/local-repo/test.py
testsuite/tests/publish/pin-removal/test.py
testsuite/tests/publish/remote-origin-nonstd/test.py
testsuite/tests/publish/remote-origin/test.py
testsuite/tests/publish/tarball-plaindir-nonstd/test.py
testsuite/tests/publish/tarball-plaindir/test.py
testsuite/tests/publish/tarball-repo-nonstd/test.py
testsuite/tests/publish/tarball-repo/test.py