File tree Expand file tree Collapse file tree 5 files changed +5
-7
lines changed
Expand file tree Collapse file tree 5 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1- #! /bin/sh
21bun generate && bun lint && bun format && bun package && git add .
Original file line number Diff line number Diff line change 99 "@actions/github" : " 6.0.1" ,
1010 "@adobe/node-fetch-retry" : " 2.2.0" ,
1111 "@octokit/graphql-schema" : " 15.26.0" ,
12- "@octokit/rest" : " 21.1.1" ,
1312 "axios" : " 1.9.0" ,
1413 "bluebird" : " 3.7.2" ,
1514 "codeowners-utils" : " 1.0.2" ,
5958 "generate" : " bun scripts/generate-helper-inputs.ts" ,
6059 "lint" : " eslint --quiet --fix ./**/*.ts src/**/*.ts test/**/*.ts" ,
6160 "package" : " ncc build --source-map --license licenses.txt" ,
62- "prepare" : " husky install " ,
61+ "prepare" : " husky" ,
6362 "setup" : " ./scripts/dev-setup.sh" ,
6463 "test" : " bun jest"
6564 }
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ See the License for the specific language governing permissions and
1111limitations under the License.
1212*/
1313
14- import { RestEndpointMethodTypes } from '@octokit/rest' ;
14+ import { RestEndpointMethodTypes } from '@octokit/plugin- rest-endpoint-methods/dist-types ' ;
1515import { octokit } from '../octokit' ;
1616
1717export type PipelineState = RestEndpointMethodTypes [ 'repos' ] [ 'createCommitStatus' ] [ 'parameters' ] [ 'state' ] ;
@@ -31,6 +31,7 @@ export type ProjectListResponse = RestEndpointMethodTypes['projects']['listForRe
3131export type ColumnListResponse = RestEndpointMethodTypes [ 'projects' ] [ 'listColumns' ] [ 'response' ] ;
3232export type ChecksUpdateConclusion = RestEndpointMethodTypes [ 'checks' ] [ 'update' ] [ 'parameters' ] [ 'conclusion' ] ;
3333export type MembersInOrg = RestEndpointMethodTypes [ 'teams' ] [ 'listMembersInOrg' ] [ 'response' ] [ 'data' ] ;
34+ export type MembersInOrgParams = RestEndpointMethodTypes [ 'teams' ] [ 'listMembersInOrg' ] [ 'parameters' ] ;
3435
3536export type GithubError = {
3637 status : number ;
Original file line number Diff line number Diff line change @@ -12,15 +12,14 @@ limitations under the License.
1212*/
1313
1414import { paginateMembersInOrg } from '../../src/utils/paginate-members-in-org' ;
15- import { MembersInOrg } from '../../src/types/github' ;
16- import { RestEndpointMethodTypes } from '@octokit/rest' ;
15+ import { MembersInOrg , MembersInOrgParams } from '../../src/types/github' ;
1716
1817jest . mock ( '@actions/github' , ( ) => ( {
1918 context : { repo : { repo : 'repo' , owner : 'owner' } } ,
2019 getOctokit : jest . fn ( ( ) => ( {
2120 rest : {
2221 teams : {
23- listMembersInOrg : jest . fn ( async ( args : RestEndpointMethodTypes [ 'teams' ] [ 'listMembersInOrg' ] [ 'parameters' ] ) => {
22+ listMembersInOrg : jest . fn ( async ( args : MembersInOrgParams ) => {
2423 let teamMembers : MembersInOrg = [ ] ;
2524 switch ( args . team_slug ) {
2625 case 'empty-team' :
You can’t perform that action at this time.
0 commit comments