Skip to content
This repository was archived by the owner on May 25, 2025. It is now read-only.

Improve types for context.issue/pull_request#131

Merged
JasonEtco merged 1 commit intomainfrom
fix-context-types
Aug 9, 2020
Merged

Improve types for context.issue/pull_request#131
JasonEtco merged 1 commit intomainfrom
fix-context-types

Conversation

@JasonEtco
Copy link
Owner

Why?

Noticed these types were unhelpful - before, it was returning { [key: string]: any }, because of how we defined data.

How?

Now we only conditionally define the issue_number or pull_number, and return a more strict object that includes context.repo, so the typing is more specific.


  • Tests have been added/updated (if necessary)
  • Documentation has been updated (if necessary)

@JasonEtco JasonEtco merged commit 433cb37 into main Aug 9, 2020
@JasonEtco JasonEtco deleted the fix-context-types branch August 9, 2020 21:03
nevilm-lt pushed a commit to nevilm-lt/actions-toolkit that referenced this pull request Apr 22, 2022
Improve types for context.issue/pull_request
himanshiLt pushed a commit to himanshiLt/actions-toolkit that referenced this pull request Jun 17, 2022
Improve types for context.issue/pull_request
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant