adlio / trello

Trello API wrapper for Go
MIT License
219 stars 71 forks source link

feat: support `Archive` and `Unarchive` methods on `List` #89

Closed G-Rath closed 2 years ago

G-Rath commented 3 years ago

Adds the ability to archive and unarchive lists in the same manner as with cards.

Trello does actually provide a list/{id}/closed endpoint you can PUT to with value: true | false, but using Update is a bit smaller codewise and there doesn't seem to be any downside, so I went with that :)

codecov[bot] commented 3 years ago

Codecov Report

Merging #89 (ae1e262) into master (f1fa5fb) will increase coverage by 0.06%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #89      +/-   ##
==========================================
+ Coverage   73.38%   73.45%   +0.06%     
==========================================
  Files          22       22              
  Lines         853      855       +2     
==========================================
+ Hits          626      628       +2     
  Misses        195      195              
  Partials       32       32              
Impacted Files Coverage Δ
list.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f1fa5fb...ae1e262. Read the comment docs.