Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements to publishing with automatic PR creation #1398

Merged
merged 17 commits into from
Jul 3, 2023

Conversation

mosteo
Copy link
Member

@mosteo mosteo commented Jun 29, 2023

Add a few steps to the assistant that will end in the PR being opened without having to upload the manifest manually.

From the user PoV, this PR boils down to using alr publish --submit.

This is still lacking tests as we may want to tweak the workflow and in any case it will require some more instrumentation to allow dry runs and local impersonation of the community index, and there's already quite some amount of new code. So I would submit the tests in a follow-up.

Having now used the GitHub REST API, it will be easy to improve on this core functionality to allow status tracking and maybe some limited interaction (like requesting a review once checks pass) also from the command line (something like alr publish --request-review | --status | --cancel), so for the common case it could all be managed through alr.

This should both simplify submissions and also some people have claimed for automation of the process (people already involved in packaging for distros).

For example, I created alire-project/alire-index#840 with this.

@mosteo mosteo marked this pull request as ready for review June 29, 2023 11:54
@mosteo mosteo requested a review from Fabien-Chouteau June 29, 2023 11:54
Copy link
Member

@Fabien-Chouteau Fabien-Chouteau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks promising :)

Two comments:

  • I would love to see a comment explaining the whole process somewhere in the code. It looks fairly complex between the clone, commit and API calls.
  • I think this should be a question at the end of alr publish rather than a switch.

@mosteo mosteo changed the title Improvements to publishing with alr publish --submit Improvements to publishing with automatic PR creation Jul 3, 2023
mosteo added 3 commits July 3, 2023 16:54
Also use a better name for the new child package.
Document this change in behavior and the new `--skip-submit` switch that
restores the former behavior.
@mosteo mosteo merged commit 5c17abb into alire-project:master Jul 3, 2023
@mosteo mosteo deleted the feat/auto-pr branch July 3, 2023 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants