Triple-T / gradle-play-publisher

GPP is Android's unofficial release automation Gradle Plugin. It can do anything from building, uploading, and then promoting your App Bundle or APK to publishing app listings and other metadata.
MIT License
4.13k stars 341 forks source link

When promoteArtifact the release note is wrong #783

Closed Jintin closed 4 years ago

Jintin commented 4 years ago

Describe the bug

Using wrong release note when promoteArtifact

How To Reproduce

I have a release in internal channel and promote to alpha via ./gradlew promoteArtifact --from-track internal --promote-track alpha But the release not is not using the internal one but the alpha one.

Versions

Tasks executed

./gradlew promoteArtifact --from-track internal --promote-track alpha

Expected behavior

The release note should using internal one and better to update local text as well.

SUPERCILEX commented 4 years ago

That's expected behavior. First, let me tell you about how things should work with the reasoning attached, then we can figure out if it needs changing. How things work:

From your perspective, how should it work?

Jintin commented 4 years ago

From my perspective, it would be nice if for example: When we promote from Alpha to Beta, the Beta release note will be override by Alpha, and the play console release note will update together as well.

But never tried the default yet, are you saying the promote task will use default.txt to cover existing release note? If so it can cover the major flow but if in some rare scenario it will still work unexpected like you have two working track internal -> alpha and beta -> production in the same time.

Anyway what do you think about the proposal?

SUPERCILEX commented 4 years ago

Hmmm, yeah, I think your way actually makes more sense from a conceptual standpoint. Everything is copied over from the fromTrack.

Jintin commented 4 years ago

Let me know if there's anything I can help, this project is quite interesting.