11import 'reflect-metadata'
2- import { Repository } from '../resources/repository'
3- import { format } from './shared/format'
4- import { setPropertyInAllRepos } from './shared/set-property-in-all-repos'
5- import { toggleArchivedRepos } from './shared/toggle-archived-repos'
6- import { describeAccessChanges } from './shared/describe-access-changes'
2+ import { Repository } from '../resources/repository.js '
3+ import { runFormat } from './shared/format.js '
4+ import { runSetPropertyInAllRepos } from './shared/set-property-in-all-repos.js '
5+ import { runToggleArchivedRepos } from './shared/toggle-archived-repos.js '
6+ import { runDescribeAccessChanges } from './shared/describe-access-changes.js '
77
88import * as core from '@actions/core'
99
@@ -12,18 +12,18 @@ function isPublic(repository: Repository) {
1212}
1313
1414async function run ( ) {
15- await setPropertyInAllRepos (
15+ await runSetPropertyInAllRepos (
1616 'secret_scanning' ,
1717 true ,
1818 r => isPublic ( r )
1919 )
20- await setPropertyInAllRepos (
20+ await runSetPropertyInAllRepos (
2121 'secret_scanning_push_protection' ,
2222 true ,
2323 r => isPublic ( r )
2424 )
25- await toggleArchivedRepos ( )
26- const accessChangesDescription = await describeAccessChanges ( )
25+ await runToggleArchivedRepos ( )
26+ const accessChangesDescription = await runDescribeAccessChanges ( )
2727 core . setOutput (
2828 'comment' ,
2929 `The following access changes will be introduced as a result of applying the plan:
@@ -36,7 +36,7 @@ ${accessChangesDescription}
3636
3737</details>`
3838 )
39- await format ( )
39+ await runFormat ( )
4040}
4141
4242run ( )
0 commit comments