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

Add download counters script #58

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

utarwyn
Copy link
Member

@utarwyn utarwyn commented Feb 13, 2025

This pull request introduces a new script to retrieve the download counts of a list of repositories from the GitHub API. The changes include adding a README file with detailed instructions and the actual script to perform the download count retrieval.

Here is an example of what the script shows:

$ ./tools/download_counters/count.sh
Repository: green-code-initiative/ecoCode-android, Download Count: 2974
Repository: green-code-initiative/creedengo-csharp-sonarqube, Download Count: 1302
Repository: green-code-initiative/creedengo-ios, Download Count: 421
Repository: green-code-initiative/creedengo-java, Download Count: 14548
Repository: green-code-initiative/creedengo-javascript, Download Count: 12767
Repository: green-code-initiative/creedengo-php, Download Count: 5529
Repository: green-code-initiative/creedengo-python, Download Count: 12370

This is a first version which can be improved to see the detail by version for example.
And I can also propose a GitHub workflow to run the script from GitHub directly. Good idea?

@utarwyn utarwyn requested a review from dedece35 February 13, 2025 22:46
@utarwyn utarwyn self-assigned this Feb 13, 2025
@utarwyn utarwyn requested a review from glalloue February 14, 2025 08:05
3. Set the `GITHUB_TOKEN` environment variable with your GitHub personal access token:

```bash
export GITHUB_TOKEN=your_github_token
Copy link
Member

Choose a reason for hiding this comment

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

for me, it's less system intrusive if you manage the github_token as an input parameter of the script instead of using a new system variable which can potentially be used for other usages in local machine

sudo apt-get install jq
```

2. Obtain a GitHub personal access token. You can create one [here](https://github.com/settings/tokens).
Copy link
Member

Choose a reason for hiding this comment

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

maybe here, a lack of information to configure the personal github token, i.e. options to select for token generation (after testing your script, only "repo / public_repo" option needed)

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