Giter Club home page Giter Club logo

labeler's Introduction

๐Ÿ‘‹ Hey there! I'm Zeb. ๐ŸŽฉ

Glad to have you on board! Here's some info about me:

  • ๐Ÿ”ญ I'm currently maintaining Labeler and Voyager up to date and running.
  • ๐ŸŒฑ I'm mainly a NodeJS back-end developer who loves creating APIs and anything that is related to JavaScript. I also like to automate any repetitive task in my life and have a special interest in AI.
  • โš™๏ธ I mostly work with .js, .sh and .md.
  • ๐Ÿ’ฌ Contact me through Discord under zebiano! Ask me anything, I promise I'll always answer honestly.
  • โšก Fun fact: I'm colorblind and I once had a viral YouTube comment.

Most of my GitHub repositories will probably be personal projects where I felt the need for something that didn't exist yet or that I couldn't find online, so I made it myself. Take a look around, I'm sure at least one repository will interest you!

labeler's People

Contributors

dependabot[bot] avatar ryanpsm avatar zebiano avatar zlovatt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

labeler's Issues

Add appropriate tests

This project is completely blind in terms of testing. Whoever works on it and does some changes has no idea if it breaks something not possible to be tested. Ideally, tests would be created and ran before releasing a new version, and/or when opening PRs, etc.

Rework code

I was checking through my code and realized it could be a bit more organized. Sort of like a "rework" of the way code is written.

labels.json write permissions

I've encountered a bug where labels.json gets saved to the current directory, instead of the package directory. I'm not sure if it could even be considered a bug, as some users might actually like it that way. Though it was not intentional and I personally don't like it.

Version @2.1.1 uses current directory, version @2.1.4 uses package directory. The drawback of using the package directory is having to run labeler with sudo, since fs needs root permissions to write into the package directory.

I'm still unsure on how I'll handle this situation. Pick the version that suits you best for now.

Act upon every repository of an user

This is already implemented for GitHub Enterprise (flag -b, --bulkUpdate), but it would be nice to also have it implemented for a normal GitHub user.

Wanted is for the -b flag to also work with non-GHE instances. It should update every repository that is fetchable through the API of an User and apply the desired Labels.

Censor out the token

This is something that crossed my mind as the token is quite confidential. If enough users want this, I could take it into consideration.

This way, whenever you enter the token through the labeler -c config, it'll be hidden.

When creating new labels, ask if the user wants to clean the .json file

Very simple, and something I will most likely develop.

When running labeler -n, there might be some users who expect to start a fresh new file (which is not the case currently). So by asking if the user wants to start fresh, that is that problem solved.

I might also make the -f work with it, and I guess it'll default to "No, I don't want to reset the file". We'll see.

Error shows twice when showing an error message

Whenever an error happens, it's displayed like:

Error: An unexpected error occurred.
Error: Error: Request failed with status code 401 

Ideally, the word Error should not get repeated twice.

Nicer error message: Wrong hex

With labeler -n, only D2DAE1 is seen as a valid input, and not #D2DAE1. When trying to use #D2DAE1, the error doesn't tell the user to remove the hashtag, but instead simply says "Please enter a valid Hex color".

Support for GitHub Enterprise

I think this is a fantastic tool, but I can't figure out how to get it working with a GitHub Enterprise instance. Is that currently supported, or do you know an easy way to help make that happen?

Add GitHub API headers

GitHub recommends using the following header when making a request:

accept: application/vnd.github.v3+json

Basically specifies that the answer should come in json format (which I guess is the default one anyways), as well as the API version. This ensures labeler will always work with the GitHub API, at least with the v3 version.

Add flag to delete labels.json file

This is actually quite important. Whenever no labels.json file is detected, a new one gets created with the default labels that are stored in the "lib/fs.js" file. Though currently, if a user updates labeler and the default labels were changed, labels.json will not get updated.

This is actually planned, since I don't want to accidentally overwrite a custom labels.json file from users. But I also want to give the option to manually update the file to the defaults. As such, I recommend a --dlf flag (delete labels file).

CTRL+V not working to paste text from Clipboard

Hello. Thanks for the Tool.

It seems that CTRL+V is broken. I can not paste Text I have copied to the Clipboard to

  • Enter Label Name
  • Enter Label Description
  • Enter Label Color

Is this a limitation of the Script or of NPM?

  • Windows 10 21H1
  • NPM 7.18.1
  • Node 16.4.1

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.