GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — I get an error with no error message · Issue #10 · danger/python

I get an error with no error message #10

New issue
Copy link
New issue
Copy link
Open
Open
I get an error with no error message#10
Copy link

Description

@TurnrDev
TurnrDev
opened on Aug 22, 2020
Issue body actions

Using danger-python-0.1.0 and [email protected] in CLI I get the following error:

(env) [jay@jay-arch DiscordBot]$ danger-python pr TrainerDex/DiscordBot#25
Starting Danger PR on TrainerDex/DiscordBot#25
You don't have a DANGER_GITHUB_API_TOKEN set up, this is optional, but TBH, you want to do this
Check out: http://danger.systems/js/guides/the_dangerfile.html#working-on-your-dangerfile
Usage: danger-python run [OPTIONS]
Try 'danger-python run --help' for help.

Error: no such option: -p

Danger: ⅹ Failing the build, there is 1 fail.

Failures

danger-python failed.

Markdowns

Log

I get the same issue in the GitHub action

Reacted by Oleg Kainov, stratocaster89 and JamneshManiya
Reacted by JamneshManiya

Activity

  1. okainov commented on Apr 12, 2021

    @okainov
    okainov
    on Apr 12, 2021
    More actions

    Still the same. It IS the error message: Error: no such option: -p. Coming from https://github.com/danger/python/blob/master/danger_python/shell.py#L30

    But TBH when I first saw this repo, I was super excited... but when I looked in the code what do I see? That this just calls danger JS... SO what's the point?...

    Reacted by JamneshManiya
  2. orta commented on Apr 12, 2021

    @orta
    orta
    on Apr 12, 2021
    Member
    More actions

    You can write your rules, and libraries in python - https://danger.systems/js/usage/danger-process.html

    Reacted by JamneshManiya
  3. marekargalas commented on Sep 6, 2022

    @marekargalas
    marekargalas
    on Sep 6, 2022
    More actions

    Hey! Any example how to get danger-python working? I got same error as above and can't figure it out. My GH actions example:

    jobs:
      run-danger:
        name: "Run danger"
        runs-on: ubuntu-latest
        steps:
          - name: Check out code
            uses: actions/checkout@v3
          - name: Run command
            env:
              GITHUB_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
            run: |
                npm install -g danger
                pip install danger-python
                danger-python ci
    

    I got either Error: no such option: -p or Could not add a commit status, the GitHub token for Danger does not have access rights. even though it really creates a (blank) comment. Token is correct as with js danger everything works well. Thanks!

    Reacted by JamneshManiya
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.