Skip to content

Commit 708bf94

Browse files
chore: remove dead code (#72)
1 parent 04876c9 commit 708bf94

2 files changed

Lines changed: 4 additions & 16 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
All notable changes to this project will be documented in this file.
44

55
<!-- git-cliff-unreleased-start -->
6+
67
## 0.6.2 - **not yet released**
78

89
### 🚀 Features
910

1011
- Add delete-old-build that was present in previous testing system ([#71](https://github.com/apify/apify-test-tools/pull/71)) ([ad521a8](https://github.com/apify/apify-test-tools/commit/ad521a8242a81dd9f92285dc9a3bddaf98685db2)) by [@metalwarrior665](https://github.com/metalwarrior665)
1112

12-
1313
<!-- git-cliff-unreleased-end -->
14+
1415
## [0.6.1](https://github.com/apify/apify-test-tools/releases/tag/v0.6.1) (2026-03-26)
1516

1617
## [0.6.0](https://github.com/apify/apify-test-tools/releases/tag/v0.6.0) (2026-03-26)
@@ -102,4 +103,4 @@ feat: feat: add maxRetriesPerRequest test
102103
### Cli
103104

104105
- fix: parsing commits
105-
- feat: add `--workspace` cli option
106+
- feat: add `--workspace` cli option

bin/utils.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { spawnSync } from 'node:child_process';
22
import fs from 'node:fs/promises';
33

4-
import type { ActorConfig, GitHubEvent } from './types.js';
4+
import type { ActorConfig } from './types.js';
55

66
export const spawnCommandInGhWorkspace = (command: string, args: string[] = []) => {
77
console.error(command, args.join(' '));
@@ -21,11 +21,6 @@ export const spawnCommandInGhWorkspace = (command: string, args: string[] = [])
2121
return commandResult.stdout.toString().trim();
2222
};
2323

24-
export const getRepoName = (githubEvent: GitHubEvent) => {
25-
const [, repoName] = githubEvent.repository.full_name.split('/');
26-
return repoName;
27-
};
28-
2924
export const getEnvVar = (varName: string, defaultValue?: string): string => {
3025
const value = process.env[varName] ?? defaultValue;
3126
if (!value) {
@@ -34,10 +29,6 @@ export const getEnvVar = (varName: string, defaultValue?: string): string => {
3429
return value;
3530
};
3631

37-
export const getRunUrlKvsKey = (runnerName: string) => {
38-
return `RUN_URL-${runnerName}`;
39-
};
40-
4132
/**
4233
* Reads and parses all directories in `actors` directory
4334
* This works locally if checkoutRepoLocally is called first
@@ -93,7 +84,3 @@ export const setCwd = ({ workspace }: { workspace: string | undefined }) => {
9384
const ghWorkspace = getEnvVar('GITHUB_WORKSPACE', process.cwd());
9485
process.chdir(ghWorkspace);
9586
};
96-
97-
export const getHeadCommitSha = (githubEvent: GitHubEvent) => {
98-
return githubEvent.type === 'pull_request' ? githubEvent.pull_request.head.sha : githubEvent.head_commit.id;
99-
};

0 commit comments

Comments
 (0)