Skip to content

Commit b3f197d

Browse files
authored
fix: Add skip for archived repos (#4)
1 parent 5e51e74 commit b3f197d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

script.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ export async function script(octokit, repository) {
1919
return;
2020
}
2121

22+
if (repository.archived) {
23+
octokit.log.info(
24+
`Repository is archived, ignoring`
25+
);
26+
return;
27+
}
28+
2229
await octokit.request("POST /repos/{owner}/{repo}/branches/{branch}/rename", {
2330
owner: repository.owner.login,
2431
repo: repository.name,

0 commit comments

Comments
 (0)