Skip to content

adds ability to remove contribution types when editing existing user - #94

Merged
kentcdodds merged 3 commits into
all-contributors:masterfrom
tyler-reitz:enhancement/remove-contribution-types-when-editing-existing-user
Jun 19, 2018
Merged

kentcdodds merged 3 commits into
all-contributors:masterfrom
tyler-reitz:enhancement/remove-contribution-types-when-editing-existing-user

Conversation

@tyler-reitz

@tyler-reitz tyler-reitz commented May 28, 2018 •

Copy link
Copy Markdown
Contributor

What:
Adds ability to remove contribution types from the command line

Why:
Provides an easy way to update existing contribution types

How:
Mostly, updates formatContributions() in src/contributors/add.js to check for similarities/differences between the existing user's types and the new types that are coming in and then either keep, add, or remove types.

Checklist:

  • Documentation
  • Tests
  • Ready to be merged
  • Added myself to contributors table

I kept getting formatting updates after the linting scripts ran. Let me know if these are not desireable as I tried deleting my own global .eslintrc config but kept getting formatting updates once the script ran regardless.

@codecov-io

codecov-io commented May 28, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #94 into master will increase coverage by 0.89%.
The diff coverage is 60%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #94      +/-   ##
==========================================
+ Coverage   53.54%   54.43%   +0.89%     
==========================================
  Files          19       19              
  Lines         409      417       +8     
  Branches       66       68       +2     
==========================================
+ Hits          219      227       +8     
  Misses        161      161              
  Partials       29       29
Impacted Files Coverage Δ
src/cli.js 0% <0%> (ø) ⬆️
src/contributors/add.js 100% <100%> (ø) ⬆️
src/util/config-file.js 68.18% <0%> (+7.07%) ⬆️

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 1562a37...8a7c8b0. Read the comment docs.

@kentcdodds kentcdodds left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this looks good though I'd like another reviewer on this one. Also, please remove the .cli.js.swp file. You should probably include that in your .gitignore_global file :)

@tyler-reitz

tyler-reitz commented Jun 2, 2018 •

Copy link
Copy Markdown
Contributor Author

Thanks for the tip @kentcdodds. Has anybody else been able to review this yet? Whoops, had a chance to do a little review myself and think I was able to simplify things.

@tyler-reitz

Copy link
Copy Markdown
Contributor Author

Hey @kentcdodds this (and #96) has been sitting idle for a good bit now. Is there anyone I can ping to get these reviewed?

@kentcdodds
kentcdodds merged commit 2c9f476 into all-contributors:master Jun 19, 2018
@tyler-reitz
tyler-reitz deleted the enhancement/remove-contribution-types-when-editing-existing-user branch June 20, 2018 01:08
Berkmann18 pushed a commit that referenced this pull request May 24, 2020
* docs: wip

* Update README.md

* delete files

* docs: readme tweaks

* motivation

* motivation
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