ubiquity / ubiquibot

Putting the 'A' in 'DAO'
https://github.com/marketplace/ubiquibot
MIT License
17 stars 61 forks source link

Fix Assistive Pricing #909

Closed 0x4007 closed 10 months ago

0x4007 commented 11 months ago

The bot needs to be able to gracefully handle a missing label (create it) instead of failing on a 404 so that we can set pricing.

https://github.com/ubiquity/business-development/issues/67#issuecomment-1871375461

! action has an uncaught error
{
  "handlerType": {
    "type": "post",
    "actions": [
      null
    ]
  },
  "activeHandler": "onLabelChangeSetPricing",
  "error": {
    "name": "HttpError",
    "status": 404,
    "response": {
      "url": "https://api.github.com/repos/ubiquity/business-development/labels/Price%3A%20800%20USD",
      "status": 404,
      "headers": {
        "access-control-allow-origin": "*",
        "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset",
        "content-encoding": "gzip",
        "content-security-policy": "default-src 'none'",
        "content-type": "application/json; charset=utf-8",
        "date": "Thu, 28 Dec 2023 17:46:11 GMT",
        "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
        "server": "GitHub.com",
        "strict-transport-security": "max-age=31536000; includeSubdomains; preload",
        "transfer-encoding": "chunked",
        "vary": "Accept-Encoding, Accept, X-Requested-With",
        "x-accepted-github-permissions": "issues=read; pull_requests=read",
        "x-content-type-options": "nosniff",
        "x-frame-options": "deny",
        "x-github-api-version-selected": "2022-11-28",
        "x-github-media-type": "github.v3; format=json",
        "x-github-request-id": "B722:4657:1571747:2CD2988:658DB463",
        "x-ratelimit-limit": "6650",
        "x-ratelimit-remaining": "6601",
        "x-ratelimit-reset": "1703789114",
        "x-ratelimit-resource": "core",
        "x-ratelimit-used": "49",
        "x-xss-protection": "0"
      },
      "data": {
        "message": "Not Found",
        "documentation_url": "https://docs.github.com/rest/issues/labels#get-a-label"
      }
    },
    "request": {
      "method": "GET",
      "url": "https://api.github.com/repos/ubiquity/business-development/labels/Price%3A%20800%20USD",
      "headers": {
        "accept": "application/vnd.github.v3+json",
        "user-agent": "probot/12.3.3 octokit-core.js/3.6.0 Node.js/20.9.0 (linux; x64)",
        "authorization": "token [REDACTED]"
      },
      "request": {
        "retryCount": 1
      }
    }
  },
  "caller": "renderCatchAll",
  "revision": "abf320c"
}
ubiquibot[bot] commented 11 months ago

@wannacfuture the deadline is at 2023-12-28T18:49:09.738Z

0x4007 commented 10 months ago

@wannacfuture

wannacfuture commented 10 months ago

https://github.com/pavlovcik/ubiquibot/pull/63

Currently working on CI fixing. @pavlovcik

ubiquibot[bot] commented 10 months ago

@wannacfuture the deadline is at 2024-01-16T23:26:03.176Z

ubiquibot[bot] commented 10 months ago
+ Evaluating results. Please wait...
0x4007 commented 10 months ago

@wannacfuture

https://github.com/ubiquibot/comment-incentives/actions/runs/7548284630/job/20550022286#step:5:1

Looks like the qualitative analysis of comments is shaky. Please look into solutions:

ubiquibot[bot] commented 10 months ago
! action has an uncaught error