Giter Club home page Giter Club logo

Comments (5)

jbarrella avatar jbarrella commented on June 3, 2024

We are experiencing the same issue. We use cdk-notifier during Circle CI build.

!/bin/bash -eo pipefail
if [[ -n "$CIRCLE_PULL_REQUEST" ]]; then
  curl -L "https://github.com/karlderkaefer/cdk-notifier/releases/latest/download/cdk-notifier_$(uname)_amd64.gz" -o cdk-notifier.gz
  gunzip cdk-notifier.gz && chmod +x cdk-notifier && rm -rf cdk-notifier.gz
  sudo mv cdk-notifier /usr/local/bin/cdk-notifier
  cdk-notifier --version
  cdk-notifier -t $PR_COMMENT_TAG -l $CDK_LOG_FILE
fi

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 8262k  100 8262k    0     0  40.1M      0 --:--:-- --:--:-- --:--:--  118M
^@^@cdk-notifier version 2.4.2
FATA[0000] GET https://api.github.com/repos/<ORG>/<REPO>/issues/51/comments?per_page=100: 404 Not Found [] 

Exited with code exit status 1
CircleCI received exit code 1

from cdk-notifier.

jbarrella avatar jbarrella commented on June 3, 2024

Apologies, above was my issue. I supplied an incorrect Github token that did not have access to the correct repository.

from cdk-notifier.

karlderkaefer avatar karlderkaefer commented on June 3, 2024

thanks for report, sorry the delayed answer, somehow I do not get notified on new issues. I was not able to reproduce it locally. However github treats pull requests as a special kind of issue, and the Issues API endpoint is used for actions on both issues and pull requests. From what I have read, issues can not have the same id as the pull request in stackoverflow So it's more likely that you somehow used the issue id instead of pr id. So github will redirect to either /issues or /pulls depending on the id. can you try a test from your machine?

export REPO_NAME=your-repo
export REPO_OWNER=your-owner
export PR_ID=71
export GITHUB_TOKEN=***
cdk-notifier -l data/cdk-diff1.log --tag-id small

anyhow I will double-check if there are any API changes and also gonna update github client #71

from cdk-notifier.

karlderkaefer avatar karlderkaefer commented on June 3, 2024

@matthias-pichler-shopstory can you describe how you get the --pull-request-id? in github actions there are several ways to get the pull request id

from cdk-notifier.

karlderkaefer avatar karlderkaefer commented on June 3, 2024

PR #98 was merged closing this issue, I could not reproduce. please make sure the PR ID can be found and is valid. Feel free to open reopen the issue and provide more details, from my understanding it is not possible that a PR can have same ID as an Github Issue

from cdk-notifier.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.