Skip to content

Commit

Permalink
Bump typescript from 4.7.4 to 4.8.2 (#106)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Zois Pagoulatos <[email protected]>
  • Loading branch information
dependabot[bot] and zoispag authored Sep 1, 2022
1 parent fd6a5f8 commit 1f7abbb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
15 changes: 8 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
"eslint-plugin-github": "^4.3.7",
"js-yaml": "^4.1.0",
"prettier": "2.7.1",
"typescript": "^4.7.4"
"typescript": "^4.8.2"
}
}
15 changes: 14 additions & 1 deletion src/milestone-actions.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
import { context, getOctokit } from '@actions/github'
import { graphql } from '@octokit/graphql'

type Milestone = {
title: string
number: number
}

type Repository = {
repository: {
milestones: {
nodes: Milestone[]
}
}
}

const findMilestoneByName = async (
repoToken: string,
milestoneName: string,
): Promise<{ title: string; id: number }> => {
const { repository } = await graphql({
const { repository } = await graphql<Repository>({
query: `query fetchMilestone($owner: String!, $repo: String!, $milestoneQuery: String!) {
repository(owner:$owner, name:$repo) {
milestones(query:$milestoneQuery, last: 1) {
Expand Down

0 comments on commit 1f7abbb

Please sign in to comment.