Skip to content

paulbares/github-packages-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Packages Manager

Introduction

github-packages-manager is a client-side application to manage GitHub packages. It uses GitHub GraphQL API to fetch and display the list of packages and GitHub GraphQL Preview API for deletion. Because of it was made for my own needs only, it has a very limited set of functionalities.

It may be very useful for Java projects managed with maven having multi modules hence multiple Java artifacts.

Create a personal access token

To communicate with the GraphQL server, you'll need a token with the right scopes. Generate a new one by following those instructions https://docs.github.com/en/graphql/guides/forming-calls-with-graphql#authenticating-with-graphql

Request the following scope to be able to delete packages: delete:packages.

The token will only be used to communicate with GitHub servers. The deployed javascript files are not minimified to let you inspect the code if you want (/docs directory).

Usage

Screen Shot 2021-06-22 at 11 48 31 AM

Fill in the form (three fields) and click Fetch to fetch the list of available packages. To fetch and display the list of versions, simply expand the package node in the tree. Query results are paginated (max page size is 100 as per Github specification).

Screen Shot 2021-06-22 at 12 07 58 PM

Select the versions you want to delete and click Delete. A confirmation modal will appear: Screen Shot 2021-06-22 at 12 09 09 PM

Package versions will be immediately deleted once Confirm is clicked.

The icon 🏁 next to a version enables you to select all similar versions (having the same name) for each package.

Demo

ezgif com-gif-maker