Giter Site home page Giter Site logo

cargo-bins / release-pr Goto Github PK

View Code? Open in Web Editor NEW
40.0 40.0 3.0 1.23 MB

GitHub Action to create a release PR using cargo-release — soft deprecated: try release-plz instead!

License: GNU General Public License v3.0

EJS 5.00% JavaScript 0.88% TypeScript 92.21% Shell 1.91%

release-pr's People

Contributors

dependabot[bot] avatar mmagician avatar nobodyxu avatar passcod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

release-pr's Issues

Support for releasing all crates in the workspace

For projects with a large number of crates per repository, it would be very useful to have an option to run cargo release from workspace root, so that the version for each crate is bumped consistently across the repo (this also helps with tag management, since we don't want to have a separate tag for each single crate).
Do you think this is something that could be supported by release-pr action? It'd then fit my usecase quite well.

Meaning of "The action sets the following"

What does this actually mean, where is it set?

I guess especially version would be useful - ideally once a PR is merged, another action is triggered to actually publish the crates with the version that was just merged.

Do you perhaps have a workflow example where you're also automating this action of publishing to crates.io, and if so could you share please?

Support custom options to `cargo release`

I'd like to be able to use cargo release with the --dependent-version fix option.

Context: When releasing all crates from a workspace at once (related to #53), there are some dependencies between the crates (and circular dev-dependencies, with this workaround for now), and bumping dependent versions breaks the build. Concrete example: arkworks-rs/algebra.

I understand that not all options can be supported, else the action would break, but I think this is an option that shouldn't affect the result.

Concept of base-branch

I'm not fully sure I get the idea of base-branch.
From the docs I understood that the PR will be done againast base-branch.
Example: In my release process, I'd like to make the release PR against a branch called releases, and in the second step publish tags & crates from releases branch. Therefore, I've set base-branch: releases, but either it is not working as expected, or I misunderstood its purpose.
See this example PR, and the corresponding workflow.

Document permissions

In the example workflow, I see

permissions:
  id-token: write # Enable OIDC
  pull-requests: write
  contents: write

and

github-token: ${{ secrets.GITHUB_TOKEN }}

Yet nothing tells me what the token is for and which scopes it is supposed to have.

When I run the workflow, I get

Error: GitHub Actions is not permitted to create or approve pull requests.

so apparently it doesn’t use the pull-requests: write permission? Why?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.