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

Push code release failed #300

Open
ghost opened this issue Dec 10, 2024 · 14 comments · May be fixed by #301
Open

Push code release failed #300

ghost opened this issue Dec 10, 2024 · 14 comments · May be fixed by #301

Comments

@ghost
Copy link

ghost commented Dec 10, 2024

Run pnpx pkg-pr-new publish

publish error

PR: ✔️
Push: ❌

logs

Error:  publishing failed: {"url":"/publish","statusCode":403,"statusMessage":"","message":"Resource not accessible by integration - https://docs.github.com/rest/issues/comments#create-an-issue-comment"}
  at Object.run (/home/runner/.cache/pnpm/dlx/t6c2gbxqvfjjki5ut3q3wgvbcu/193b0ccbbac-a75/node_modules/.pnpm/[email protected]/node_modules/pkg-pr-new/dist/index.js:3421:18)
  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
  at async runCommand (/home/runner/.cache/pnpm/dlx/t6c2gbxqvfjjki5ut3q3wgvbcu/193b0ccbbac-a75/node_modules/.pnpm/[email protected]/node_modules/pkg-pr-new/dist/index.js:2196:[16](https://github.com/element-plus/element-plus/actions/runs/12257309026/job/34194482729#step:10:17))
  at async runCommand (/home/runner/.cache/pnpm/dlx/t6c2gbxqvfjjki5ut3q3wgvbcu/193b0ccbbac-a75/node_modules/.pnpm/[email protected]/node_modules/pkg-pr-new/dist/index.js:2187:11)
  at async runMain (/home/runner/.cache/pnpm/dlx/t6c2gbxqvfjjki5ut3q3wgvbcu/193b0ccbbac-a75/node_modules/.pnpm/[email protected]/node_modules/pkg-pr-new/dist/index.js:2323:7) 

Error:  publishing failed: {"url":"/publish","statusCode":403,"statusMessage":"","message":"Resource not accessible by integration - https://docs.github.com/rest/issues/comments#create-an-issue-comment"}
Error: Process completed with exit code 1.

https://github.com/element-plus/element-plus/blob/d9da5341d2ce82e2de630fc794aef0b524beb74c/.github/workflows/publish-pr-commit-pkg.yml#L51C11-L51C34
https://github.com/element-plus/element-plus/actions/runs/12257309026/job/34194482729

@Aslemammad
Copy link
Member

Aslemammad commented Dec 10, 2024

thank you for creating the issue, can you try re-running the failed workflow?

@ghost
Copy link
Author

ghost commented Dec 11, 2024

@btea
Could you help me try it?

@btea
Copy link

btea commented Dec 11, 2024

thank you for creating the issue, can you try re-running the failed workflow?

I have tried again, but still get the 403 error.

The strange thing is that the created PR can be published normally, but this error will appear after the PR is merged into the dev branch. 🤔

@btea
Copy link

btea commented Dec 11, 2024

@btea Could you help me try it?

The problem still exists.

@Aslemammad
Copy link
Member

it is so strange, i'll do something about it!

@Aslemammad
Copy link
Member

can you try re-installing the app itself and try again with a new merge on another pr?

@Aslemammad
Copy link
Member

the error is 403 and it's something around messed up permissions, but it also shows that previous commits/merges used to work, which makes it weird!

@btea
Copy link

btea commented Dec 11, 2024

yeah, we have reinstalled it and will try to merge the new PR later.

@btea
Copy link

btea commented Dec 11, 2024

Unfortunately, this problem still exists. https://github.com/element-plus/element-plus/actions/runs/12271320706/job/34237996910

@Aslemammad
Copy link
Member

Aslemammad commented Dec 11, 2024 via email

@Aslemammad Aslemammad linked a pull request Dec 11, 2024 that will close this issue
@Aslemammad
Copy link
Member

which option do you choose, when merging? just asking to see if i can reproduce in the best way possible!

CleanShot 2024-12-11 at 1  54 00

@btea
Copy link

btea commented Dec 11, 2024

The second

image

@Aslemammad
Copy link
Member

@btea no luck, i can debug it in your repo with my staging deploys, would you like to be available for that? i'd like to have your discord so we talk there.

@Aslemammad
Copy link
Member

here's my username, feel free to send a friend request: aslemammad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants