Skip to content

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.

- 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.

3 participants