Skip to content

Conversation

yairm210
Copy link
Collaborator

  • Reduce @octokit/core version to one compatible with @actions/github, which is what actually provides the Octokit instance, so we can type things with it and tsc doesn't complain (it's only for typing anyway)
  • Convert eslint to the new format according to this guide
  • Added some ignore signals to tsc so it doesn't break on response types returned as generic and converted to specific

@yairm210 yairm210 requested a review from svenstaro June 11, 2025 14:05
@yairm210
Copy link
Collaborator Author

I see E2E tests fail on PRs, because they can't create a release - makes sense, that's a restricted action
I think the risk here is minor, I'm willing to give the PR github permissions to edit releases 🤔

@@ -1,5 +1,5 @@
name: "CI"
on: [pull_request, push]
on: [pull_request, push, workflow_dispatch]
Copy link
Owner

Choose a reason for hiding this comment

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

Why this change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So I can test things if CI fails on flaky things

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

On second thought I could just 'retry'... Removable

Copy link
Owner

Choose a reason for hiding this comment

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

Ah, I see. Well, if it makes that easier for you, feel free to leave it in by I usually just retry it.

Copy link
Owner

Choose a reason for hiding this comment

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

Please rebase this so that we don't have a commit adding and then removing it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Reverted, in any case I think this should be squash-merged 🤔

@@ -38,6 +38,8 @@ async function get_release_by_tag(
let release: ReleaseByTagResp
try {
core.debug(`Getting release by tag ${tag}.`)

// @ts-ignore
Copy link
Owner

Choose a reason for hiding this comment

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

Isn't there a better way than just ignoring these?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not that I found... I could "as object as resulttype", but I think that's just as bad :/

Copy link
Owner

Choose a reason for hiding this comment

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

Alright, that's unfortunate but I have no better idea either.

@svenstaro
Copy link
Owner

After doing the rebase, feel free to merge.

@yairm210 yairm210 merged commit 7a203f9 into svenstaro:master Jun 11, 2025
6 of 12 checks passed
@yairm210
Copy link
Collaborator Author

Security warnings went from 7 to 1 👍🏿

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 this pull request may close these issues.

2 participants