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

feat: allow for releasedLabels with successComment set to false #861

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

kristof-mattei
Copy link

@kristof-mattei kristof-mattei commented Jun 23, 2024

As title says, this PR allow you to set successComment to false and still get the labels.

I recommend a review with whitespace changes hidden to reduce noise due to changes in indentation.

Oh, and I fixed body -> labels for posting labels: https://docs.github.com/en/rest/issues/labels?apiVersion=2022-11-28#add-labels-to-an-issue

test/success.test.js Outdated Show resolved Hide resolved
@kristof-mattei
Copy link
Author

@gr2m done!

@gr2m gr2m enabled auto-merge (squash) July 1, 2024 18:55
@gr2m gr2m disabled auto-merge July 1, 2024 18:56
@gr2m
Copy link
Member

gr2m commented Jul 1, 2024

Hmm sorry some of the tests are failing, from the looks of it, it is most likely related to #857. Could you have a look? I'm sorry this is probably unrelated to your changes, I don't have time to look into it myself. Let us know if you don't have time either and we will get back to it another time

@kristof-mattei
Copy link
Author

Hmm sorry some of the tests are failing, from the looks of it, it is most likely related to #857. Could you have a look? I'm sorry this is probably unrelated to your changes, I don't have time to look into it myself. Let us know if you don't have time either and we will get back to it another time

Totally, maybe not today, but definitely this week.

@kristof-mattei
Copy link
Author

@gr2m it now works on my machine!

@babblebey
Copy link
Member

Hi @kristof-mattei, kindly resolve the conflict 😉

@babblebey
Copy link
Member

Hey @kristof-mattei, thank you for sticking to this.

This PR was blocked by the work going on in the PR #874, hence we haven't gotten to this yet.... the PR deprecates the ability of setting successComment to false, introducing successCommentCondition in its place.... It merges soon though 😉

But, in the mean time, kindly confirm my understanding of this feature by answering the question below...

  1. Noting the introduction of the new successCommentCondition (in feat: allow conditional skip on success and fail comments #874) which accepts condition via config that results to a boolean value declaring whether both successComment and releasedLabel is added to issues/PRs.... Does this feature separate the releasedLabel from this condition??
  2. If this seperate the releasedLabel from the successCommentCondition, Are we gonna be looking to introduce a similar config property releasedLabelCondition to accept dictated conditions under which a release label is added to issues/PRs??

🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants