Skip to content

Commit 3f25ab7

Browse files
authored
Merge pull request #4 from pre-commit-ci/remove-pr-from-artifact-name
remove pr from artifact name
2 parents efe3e82 + fab94f9 commit 3f25ab7

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

bin/main

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,13 @@ def _get_data(
201201

202202
def _save_artifact(
203203
data: dict[str, Any],
204-
pr: int,
205204
run_id: int,
206205
url: str,
207206
token: str,
208207
) -> None:
209208
contents = json.dumps(data, separators=(',', ':')).encode()
210209

211-
artifact_name = f'pre-commit-ci-lite-{pr}-{run_id}'
210+
artifact_name = f'pre-commit-ci-lite-{run_id}'
212211

213212
headers = {
214213
'Accept': 'application/json;api-version=6.0-preview',
@@ -283,7 +282,6 @@ def main(argv: Sequence[str] | None = None) -> int:
283282
else:
284283
_save_artifact(
285284
data=data,
286-
pr=args.pr,
287285
run_id=args.run_id,
288286
url=args.runtime_url,
289287
token=args.runtime_token,

0 commit comments

Comments
 (0)