Skip to content

Make issues.Client.LabelIssue() idempotent for delete. #40

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

Merged
merged 1 commit into from
Apr 30, 2020
Merged

Make issues.Client.LabelIssue() idempotent for delete. #40

merged 1 commit into from
Apr 30, 2020

Conversation

cjyar
Copy link
Contributor

@cjyar cjyar commented Apr 30, 2020

This is a fix for my previous PR #38 which incorrectly assumed that the GitHub API was idempotent. It is actually idempotent for label add, but not for label delete.


This change is Reviewable

@coveralls
Copy link

Pull Request Test Coverage Report for Build 128

  • 11 of 11 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 127: 0.0%
Covered Lines: 378
Relevant Lines: 378

💛 - Coveralls

@cjyar
Copy link
Contributor Author

cjyar commented Apr 30, 2020

Tested on a real system. ;) Seems to work.

Copy link
Contributor

@stephen-soltesz stephen-soltesz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! 1 of 1 LGTMs obtained

@stephen-soltesz stephen-soltesz merged commit c25bff8 into m-lab:master Apr 30, 2020
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

Successfully merging this pull request may close these issues.

3 participants