Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove the old source tracker code #1578

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions .github/workflows/source-tracker.yml

This file was deleted.

20 changes: 0 additions & 20 deletions scripts/deno/octokit.ts

This file was deleted.

20 changes: 1 addition & 19 deletions scripts/deno/source-tracker/README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
# `@guardian/source-*` package usage tracker

This Deno script is used to track the usage of the `@guardian/source-*` packages in the Guardian GitHub organisation.

It keeps https://github.com/guardian/csnx/issues/1058 up to date.

## Development

You can run it locally by running `deno run -A scripts/deno/source-tracker/mod.ts`.

You will need to create a personal access token at https://github.com/settings/tokens/new?scopes=repo and add it to an `.env` file as `GITHUB_TOKEN`.

### Local caching

To avoid hitting the rate limit in dev, the script saves the responses from the APIs it hits in Deno's `localStorage`.

If you want to clear/disable that, uncomment the `localStorage.clear()` line in `mod.ts`.

## Production

The script is run once a day by a GitHub Action. See `.github/workflows/source-tracker.yml`.
This script has been superseded by [the `package-tracker` script in `guardian/CSTI-team`](https://github.com/guardian/CSTI-team/tree/main/scripts/package-tracker).
21 changes: 0 additions & 21 deletions scripts/deno/source-tracker/get-installation-data.ts

This file was deleted.

26 changes: 0 additions & 26 deletions scripts/deno/source-tracker/get-installations.ts

This file was deleted.

15 changes: 0 additions & 15 deletions scripts/deno/source-tracker/get-latest-version.ts

This file was deleted.

45 changes: 0 additions & 45 deletions scripts/deno/source-tracker/get-markdown.ts

This file was deleted.

82 changes: 0 additions & 82 deletions scripts/deno/source-tracker/get-pkg-versions-in-use.ts

This file was deleted.

54 changes: 0 additions & 54 deletions scripts/deno/source-tracker/mod.ts

This file was deleted.