Skip to content

MVP: gather data and metadata #4

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

Merged
merged 6 commits into from
Jan 9, 2025
Merged

MVP: gather data and metadata #4

merged 6 commits into from
Jan 9, 2025

Conversation

owenatgov
Copy link
Contributor

@owenatgov owenatgov commented Dec 11, 2024

Enables:

  • collection of data:
    • repoOwner
    • repoName
    • Frontend Version
    • Built By Government?
    • Indirect Dependency?
    • Is Prototype?
    • Last Updated
    • First created

Also creates a PR with the latest data once the script has finished running.

As the basic functionality works, I'm marking this ready for review, and adding issues to describe further work.

@owenatgov owenatgov marked this pull request as draft December 11, 2024 18:34
@domoscargin domoscargin force-pushed the process-all-data branch 4 times, most recently from f732207 to 5f7b5c0 Compare December 19, 2024 11:43
@domoscargin domoscargin marked this pull request as ready for review December 19, 2024 14:42
@domoscargin domoscargin changed the title WIP MVP: gather data and metadata Dec 19, 2024
Copy link
Contributor Author

@owenatgov owenatgov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewing my own PR since @domoscargin did loads of work on it.

I've left one comment, otherwise this is looking good, especially with the context of #20 getting a review once this one's in. Also world be keen to clean up the commit history if poss.

@@ -43,7 +47,8 @@ jobs:
# github action which doesn't give us the option to output this data as
# something like json which we can programmatically interogate.
- name: Pipe our deps to a json file
run: github-dependents-info --repo alphagov/govuk-frontend --sort stars --json > raw-deps.json
run: npm -v
# run: github-dependents-info --repo alphagov/govuk-frontend --sort stars --json > ./data/raw-deps.json
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can put this back now that we're done testing!

@domoscargin
Copy link
Contributor

domoscargin commented Jan 9, 2025

@owenatgov I've hacked way at the commit history - not sure if you want to do anything to #6318865 other than reword it?

Copy link
Contributor

@domoscargin domoscargin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving.

owenatgov and others added 6 commits January 9, 2025 16:07
Adds a base head_ref, and gives the action contents:write permission
I've had to pop some Babel foo on top of eslint because we're using import assertions.
Uses the repo's `created_at` and `pushed_at` properties.
We were just writing to a JSON file, but CSV is more useful for other folks who want to use the data.
@owenatgov owenatgov merged commit 22f3f13 into main Jan 9, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants