Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking issue for github always failed #1551

Open
empiredan opened this issue Jun 27, 2023 · 0 comments
Open

Checking issue for github always failed #1551

empiredan opened this issue Jun 27, 2023 · 0 comments
Labels

Comments

@empiredan
Copy link
Contributor

empiredan commented Jun 27, 2023

neofinancial/[email protected] always failed as below:

Run neofinancial/[email protected]
  with:
    token: ***
    titleFormat: %title%
    quiet: true
    bodyRegex: #(\d+)
    bodyURLRegex: http(s?):\/\/(github.com)(\/apache)(\/incubator-pegasus)(\/issues)\/\d+
    ticketPrefix: #
    titleRegex: ^(CH)(-?)(\d{3,})
    titleRegexFlags: gi
    branchRegex: ^(CH)(-?)(\d{3,})
    branchRegexFlags: gi
    bodyRegexFlags: gim
    bodyURLRegexFlags: gim
/home/runner/work/_actions/neofinancial/ticket-check-action/v1.3.0/build/index.js:1
module.exports=function(e,t){"use strict";var r={};function __webpack_require__(t){if(r[t]){return r[t].exports}var i=r[t]={i:t,l:false,exports:{}};e[t].call(i.exports,i,i.exports,__webpack_require__);i.l=true;return i.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(3[2](https://github.com/apache/incubator-pegasus/actions/runs/5385704346/jobs/9774987825?pr=1548#step:2:2)5)}return startup()}({0:function(e,t,r){const{requestLog:i}=r(916);const{restEndpointMethods:n}=r(842);const s=r(529);const o=[r(190),r(19),i,r(148),n,r(4[3](https://github.com/apache/incubator-pegasus/actions/runs/5385704346/jobs/9774987825?pr=1548#step:2:3)0),r(850)];const a=s.plugin(o);function DeprecatedOctokit(e){const t=e&&e.log&&e.log.warn?e.log.warn:console.warn;t('[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead');return new a(e)}const u=Object.assign(DeprecatedOctokit,{Octokit:a});Object.keys(a).forEach(e=>{if(a.hasOwnProperty(e)){u[e]=a[e]}});e.exports=u},2:function(e,t,r){"use strict";const i=r(87);const n=r(118);const s=r([4](https://github.com/apache/incubator-pegasus/actions/runs/5385704346/jobs/9774987825?pr=1548#step:2:4)9);const o=(e,t)=>{if(!e&&t){throw new Error("You can't specify a `release` without specifying `platform`")}e=e||i.platform();let r;if(e==="darwin"){if(!t&&i.platform()==="darwin"){t=i.release()}const e=t?Number(t.split(".")[0])>1[5](https://github.com/apache/incubator-pegasus/actions/runs/5385704346/jobs/9774987825?pr=1548#step:2:5)?"macOS":"OS X":"macOS";r=t?n(t).name:"";return e+(r?" "+r:"")}if(e==="linux"){if(!t&&i.platform()==="linux"){t=i.release()}r=t?t.replace(/^(\d+\.\d+).*/,"$1"):"";return"Linux"+(r?" "+r:"")}if(e==="win32"){if(!t&&i.platform()==="win32"){t=i.release()}r=t?s(t):"";return"Windows"+(r?" "+r:"")}return e};e.exports=o},9:function(e,t,r){var i=r(9[6](https://github.com/apache/incubator-pegasus/actions/runs/5385704346/jobs/9774987825?pr=1548#step:2:6)9);var n=function(){};var s=function(e){return e.setHeader&&typeof e.abort==="function"};var o=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var a=function(e,t,r){if(typeof t==="function")return a(e,null,t);if(!t)t={};r=i(r||n);var u=e._writableState;var p=e._readableState;var c=t.readable||t.readable!==false&&e.readable;var d=t.writable||t.writable!==false&&e.writable;var l=false;var g=function(){if(!e.writable)m()};var m=function(){d=false;if(!c)r.call(e)};var h=function(){c=false;if(!d)r.call(e)};var y=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var f=function(t){r.call(e,t)};var b=function(){process.nextTick(_)};var _=function(){if(l)return;if(c&&!(p&&(p.ended&&!p.destroyed)))return r.call(e,new Error("premature close"));if(d&&!(u&&(u.ended&&!u.destroyed)))return r.call(e,new Error("premature close"))};var q=function(){e.req.on("finish",m)};if(s(e)){e.on("complete",m);e.on("abort",b);if(e.req)q();else e.on("request",q)}else if(d&&!u){e.on("end",g);e.on("close",g)}if(o(e))e.on("exit",y);e.on("end",h);e.on("finish",m);if(t.error!==false)e.on("error",f);e.on("close",b);return function()

...... (omit since it's too long)

RequestError [HttpError]: Resource not accessible by integration
    at /home/runner/work/_actions/neofinancial/ticket-check-action/v1.3.0/build/index.js:1:117831
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  status: 403,
  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',
    connection: 'close',
    'content-encoding': 'gzip',
    'content-security-policy': "default-src 'none'",
    'content-type': 'application/json; charset=utf-8',
    date: 'Tue, 27 Jun [20](https://github.com/apache/incubator-pegasus/actions/runs/5386751996/jobs/9777176479?pr=1552#step:2:21)23 07:00:46 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-content-type-options': 'nosniff',
    'x-frame-options': 'deny',
    'x-github-api-version-selected': '20[22](https://github.com/apache/incubator-pegasus/actions/runs/5386751996/jobs/9777176479?pr=1552#step:2:23)-11-28',
    'x-github-media-type': 'github.v3; format=json',
    'x-github-request-id': '5501:8C31:1F989E:20C608:649A891E',
    'x-ratelimit-limit': '15000',
    'x-ratelimit-remaining': '14960',
    'x-ratelimit-reset': '1687851297',
    'x-ratelimit-resource': 'core',
    'x-ratelimit-used': '40',
    'x-xss-protection': '0'
  },
  request: {
    method: 'PATCH',
    url: 'https://api.github.com/repos/apache/incubator-pegasus/pulls/1552',
    headers: {
      accept: 'application/vnd.github.v3+json',
      'user-agent': 'octokit.js/16.[43](https://github.com/apache/incubator-pegasus/actions/runs/5386751996/jobs/9777176479?pr=1552#step:2:44).1 Node.js/16.16.0 (Linux 5.15; x64)',
      authorization: 'token [REDACTED]',
      'content-type': 'application/json; charset=utf-8'
    },
    body: '{"title":"chore(github): upgrade neofinancial/ticket-check-action to 2.0.0"}',
    request: {
      hook: [Function: bound bound register],
      validate: {
        base: { type: 'string' },
        body: { type: 'string' },
        maintainer_can_modify: { type: 'boolean' },
        number: { alias: 'pull_number', deprecated: true, type: 'integer' },
        owner: { required: true, type: 'string' },
        pull_number: { required: true, type: 'integer' },
        repo: { required: true, type: 'string' },
        state: { enum: [ 'open', 'closed' ], type: 'string' },
        title: { type: 'string' }
      }
    }
  },
  documentation_url: 'https://docs.github.com/rest/reference/pulls/#update-a-pull-request'
}
empiredan pushed a commit that referenced this issue Oct 23, 2023
#1551

Remove the "Check issue" from Standardization Lint because it makes other
linter failed becuse the action `neofinancial/[email protected]`
is not allowed for Apache repos.

In fact, the issue checker is just an optional, we shall keep the pull
requests description clarify when submit or update, but an issue link is
not necessary.
empiredan pushed a commit to empiredan/pegasus that referenced this issue Oct 23, 2023
…#1652)

apache#1551

Remove the "Check issue" from Standardization Lint because it makes other
linter failed becuse the action `neofinancial/[email protected]`
is not allowed for Apache repos.

In fact, the issue checker is just an optional, we shall keep the pull
requests description clarify when submit or update, but an issue link is
not necessary.
empiredan added a commit that referenced this issue Oct 23, 2023
…-pick #1652) (#1653)

#1551

Remove the "Check issue" from Standardization Lint because it makes other
linter failed becuse the action `neofinancial/[email protected]`
is not allowed for Apache repos.

In fact, the issue checker is just an optional, we shall keep the pull
requests description clarify when submit or update, but an issue link is
not necessary.

This PR is to cherry-pick #1652 into v2.5 to solve issue #1551.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant