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

Sanity check: is the action releasing the right version or the latest commit? #167

Closed
simoneb opened this issue Oct 14, 2022 · 3 comments
Closed

Comments

@simoneb
Copy link
Contributor

simoneb commented Oct 14, 2022

When a PR created by the action gets merged, which version of the repo is released exactly?

E.g.

  • PR opened in a branch with commit 1
  • commits 2, 3, 4 are done on master
  • PR merged, causing merge commit 5

Theoretically, the semantics of the action should lead to the result of merging commit 1 to the master branch to be released, but I guess that what's happening now is that all commits in between will end up in the release.

We need to figure out if there's a way to make this work according to correct semantics.

@simoneb simoneb changed the title Sanity check: is the action releasing the right version or the latest commit Sanity check: is the action releasing the right version or the latest commit? Oct 16, 2022
@guilhermelimak
Copy link
Collaborator

You're correct, all commits that are on the master branch at the time of the merge are included in the release.
I've opened PRs on both the action and the app with a suggestion for a fix using the target_commitish parameter when creating the release as shown here but I'm not entirely sure that works since I wasn't able to test it yet.

Is https://github.com/nearform/optic-release-automation-app#development the correct way to deploy a testing version of the app or is there an easier way? If that's the only way is there a nearform gcp account that I can use to test this?

@simoneb
Copy link
Contributor Author

simoneb commented Nov 8, 2022

Thanks for looking into this! I think the easiest way to test this is to run the app locally and expose it e.g. via nkgrok, then configure the action to use that url (it's one of the action's input). Definitely let's test this end to end before going any further, but I think the approach you're following is good 👌

@simoneb
Copy link
Contributor Author

simoneb commented Nov 14, 2022

@guilhermelimak once the releases are done, please close this issue

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

No branches or pull requests

2 participants