Skip to content

Unknown error on adding contributors via expanded syntax #70

Closed

Description

@blackxored

For some reason, i'm getting exit code 1 (without an error, since I've added debugging and it properly returns undefined for error in the handler) when running:

$ add-contributors add blackxored code,doc,infra,test
$ echo $?
1

On README.md

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
| [<img src="https://avatars3.githubusercontent.com/u/133308?v=4" width="100px;"/><br /><sub><b>Adrian Perez</b></sub>](https://adrianperez.codes)<br />[💻](https://github.com/blackxored/testapp/commits?author=blackxored "Code") [🚇](#infra-blackxored "Infrastructure (Hosting, Build-Tools, etc)") [⚠️](https://github.com/black xored/testapp/commits?author=blackxored "Tests") [📖](https://github.com/blackxored/testapp/commits?author=blackxored "Documentation") |
| :---: |
<!-- ALL-CONTRIBUTORS-LIST:END -->

It successfully generates, adds to the contributors in .allcontributorsrc, and everything seems to work, but somehow I'm getting that exit code.

Activity

  1. machour commented on Nov 10, 2017

    @machour
    Contributor

    @blackxored just tested it on my side and the exit code for me is 0

    🍺  ~/all-contributors-cli-prod (master)$ ./cli.js add blackxored code,doc,infra,test
    🍺  ~/all-contributors-cli-prod (master)*$ echo $?
    0
    

    Can you make sure you are using the latest version? (4.8.1 at the time of writing)

  2. added
    type: bug
    on Nov 10, 2017
  3. blackxored commented on Nov 10, 2017

    @blackxored
    Author

    Yes, on the latest version.
    Pasting .all-contributorsrc:

    {
      "projectName": "testapp",
      "projectOwner": "blackxored",
      "files": [
        "README.md"
      ],
      "imageSize": 100,
      "commit": true,
      "contributors": [
        {
          "login": "blackxored",
          "name": "Adrian Perez",
          "avatar_url": "https://avatars3.githubusercontent.com/u/133308?v=4",
          "profile": "https://adrianperez.codes",
          "contributions": [
            "code",
            "infra",
            "test",
            "doc"
          ]
        }
      ]
    }
  4. machour commented on Nov 10, 2017

    @machour
    Contributor

    Could you try setting commit to false? Let's see if it's a commit issue

  5. blackxored commented on Nov 10, 2017

    @blackxored
    Author

    Yes, commit seems to be the issue, unsure why.

  6. kentcdodds commented on Nov 10, 2017

    @kentcdodds
    Member

    We're thinking of removing that feature. I never liked or used it. It seems to be fairly buggy in general.

  7. chinesedfan commented on Jun 24, 2018

    @chinesedfan
    Contributor

    @blackxored I guess the commit fails silently. Maybe #102 can help.

  8. Berkmann18 commented on Jan 18, 2019

    @Berkmann18
    Member

    @blackxored Does this still happen?

  9. added
    status: waiting for feedback
    on Feb 19, 2019
  10. Berkmann18 commented on Jun 11, 2019

    @Berkmann18
    Member

    @blackxored Friendly ping.

  11. blackxored commented on Jun 12, 2019

    @blackxored
    Author

    7.x or so I believe (current) doesn’t have this issue, sorry for the late response.

  12. Berkmann18 commented on Jun 12, 2019

    @Berkmann18
    Member

    Okay, good to hear.

  13. removed
    status: waiting for feedback
    on Jun 12, 2019
  14. added a commit that references this issue on May 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions