-
Notifications
You must be signed in to change notification settings - Fork 15
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
Skip pull request #13
Comments
What you describe was the original idea and at some point we had that implementation and we tried it out, just to realize that it wouldn't work because often the main/master branch is protected, meaning that direct pushes won't work. Hence, we opted for this alternative solution which opens a PR. Any contributor can approve and merge the PR, thereby circumventing the issue. I have already reached out to @salmanm about removing the need to have a backing server app since this recent change in github: https://github.blog/changelog/2021-10-06-github-actions-workflows-triggered-by-dependabot-prs-will-respect-permissions-key-in-workflows/ I am not sure but I don't think that even with that we'll be able to skip the PR. In any case, I don't have big issues with this action opening a PR. The PR will also contain a preview of what will be released so a maintainer can review what's going to happen before making it happen. |
I think it could work instead. Reading the permission docs we need:
I agree that the commit list is useful, but providing the semver at the GH Action run assumes that the developer has already the commit list |
Why? If a branch is protected you can't push to it, and I assume this is true regardless of how you try to push to it (though we haven't tried I believe) |
Oh, I get it now. You were meaning these GH protection rules I was thinking about the default So do you agree that:
? |
Yes, I agree with your conclusions. In the current phase we are aiming to satisfy the scenario with most constraints. Once we have that working, we can then enable features which enable simpler scenarios. |
this is on hold at the moment, we can't implement this feature |
What is blocking? |
This cannot work as discussed if the branch is protected |
In any case, even though the initial idea for this action was to do everything automatically, without going through the PR, I now believe that having a PR is actually better than not having it. Why? Because now this action can do several things, and having a PR which explains you what is going to happen once you merge it is a feature in my opinion. I would suggest that we close this issue. |
I would like to keep it open and work on this whenever I get a couple of hours. |
Right now the process to release a module would be:
I wonder if we can skip the 2nd step and go straightforward from triggering the action and approve the optic OTP.
In this way:
main
branch does not contain the wrong versionThe text was updated successfully, but these errors were encountered: