Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Throwing an error in getManifestFromRepo when the github API rate limiting response is a JSON object.#945

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Lavaerius wants to merge1 commit intoactions:main
base:main
Choose a base branch
Loading
fromLavaerius:main

Conversation

@Lavaerius
Copy link

Description:

Updates fail condition for getManifestFromRepo function to include instances when github responds with JSON body for API rate limiting, that is incorrectly handled.
Related issue:

#903

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

jonathonlacher reacted with eyes emoji
@LavaeriusLavaerius requested a review froma team as acode ownerSeptember 17, 2024 19:31
}
}
return releases;
if (!releases.hasOwnProperty('documentation_url')){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Dist/index.js is not where these changes should be directly made.

This index.js is a form of webpack and gets auto-generated from the source files in thesrc directory.

"release":"ncc build -o dist/setup src/setup-python.ts && ncc build -o dist/cache-save src/cache-save.ts && git add -f dist/",

Fundamentially you're trying to update thegetManifestFromRepo function. That can be found here:

exportfunctiongetManifestFromRepo():Promise<tc.IToolRelease[]>{
core.debug(
`Getting manifest from${MANIFEST_REPO_OWNER}/${MANIFEST_REPO_NAME}@${MANIFEST_REPO_BRANCH}`
);
returntc.getManifestFromRepo(
MANIFEST_REPO_OWNER,
MANIFEST_REPO_NAME,
AUTH,
MANIFEST_REPO_BRANCH
);
}

That uses a function from the our tool-cache NPM package in the actions/toolkit repository. This is the actual place where the change would need to be made:https://github.com/actions/toolkit/blob/6dd369c0e648ed58d0ead326cf2426906ea86401/packages/tool-cache/src/tool-cache.ts#L589-L632

So upstream the change would need to be made totool-cache, a new version would then need to be published and then pulled into this repository/action.https://www.npmjs.com/package/@actions/tool-cache

I recommend submitting a PR tohttps://github.com/actions/toolkit

Lavaerius and Mrvp215 reacted with thumbs up emoji
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Appreciate the feedback on this issue. I'll investigate your recommendation.

@mahabaleshwars
Copy link
Contributor

Hello@Lavaerius,

Are you planning to make modifications to this PR as per@konradpabjan's suggestion?
Please update your input so that we can move this forward and resolve the issue.

Thank you!

@Lavaerius
Copy link
Author

Yes, I'll look into that.

@Lavaerius
Copy link
Author

I've submitted:
actions/toolkit#1832

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@konradpabjankonradpabjankonradpabjan left review comments

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@Lavaerius@mahabaleshwars@konradpabjan

[8]ページ先頭

©2009-2025 Movatter.jp