Comments (2)
Hi @tprasadtp! 👋
Thank you for your suggestions. Here are my thoughts on the individual items:
-
We currently use HTTP basic authentication and accept a username and a token. It is my understanding that this method is still supported and not subject of the announced deprecations
-
I believe that is how sub-commands are designed in click. Can you please describe what a help message you would expect?
-
I'm happy to review pull-requests for adding a new CLI option for the API URL. 👍
-
As a user, I would find it more helpful if labels tells me that it's missing a required parameter, rather than it silently loading generic environment variables. Chances are that people already have a
GITHUB_TOKEN
that is not set to the token with the correct scope for labels. -
Let's not introduce breaking changes unless it's strictly necessary.
⚠️ -
Sure, we can build a Docker image with GitHub actions and publish to GitHub Packages. 🤖
-
What would be the benefit of a self contained static binary over Installing the package from PyPI or pulling the Docker image from GitHub?
-
The labels source code is formatted with black. We could add pre-commit or automation for isort and black though. 🙂
from labels.
Thank you,
We currently use HTTP basic authentication and accept a username and a token. It is my understanding that this method is still supported and not subject of the announced deprecations
Yes, because we use tokens, username is not necessary if we authenticate with headers. I thought it would be better because that's one less argument to specify https://developer.github.com/v3/#oauth2-token-sent-in-a-header
I believe that is how sub-commands are designed in click. Can you please describe what a help message you would expect?
I understand that. I would expect the following to be the help message. But to see that I have to specify -u
and -t
labels -t 1bc -u none fetch --help
Usage: labels fetch [OPTIONS]
Fetch labels for a GitHub repository.
This will write the labels information to disk to the specified filename.
Options:
-o, --owner TEXT GitHub owner name [required]
-r, --repo TEXT GitHub repository name [required]
-f, --filename PATH Filename for labels [required]
--help Show this message and exit.
I am not exactly sure how to overcome that other than making them arguments to subcommands.
as its click's limitation.
I'm happy to review pull-requests for adding a new CLI option for the API URL
I need to test it with custom CA and then I will submit a PR.
Sure, we can build a Docker image with GitHub actions and publish to GitHub Packages.
I just found out that GitHub packages does not support un-authenticated docker pulls yet.:(
What would be the benefit of a self contained static binary over Installing the package from PyPI or pulling the Docker image from GitHub?
If docker images are provided then I don't think its necessary.
The labels source code is formatted with black. We could add pre-commit or automation for isort and black though.
That's a good idea.
from labels.
Related Issues (19)
- Update contributing guide
- Add -f, --file FILENAME option HOT 8
- Add Code of Conduct HOT 1
- Feature Request: Can this be turned into a GitHub App? HOT 10
- Infer labels owner and repo from git in working directory HOT 1
- Feature Request: label issues HOT 2
- Add Python 3.7 to package, docs, and tests HOT 2
- Feature request: merge labels HOT 3
- Don't `exit` during a dry run? HOT 1
- Handle differences in capitalisation HOT 3
- Don't `exit` if a renamed label wasn't found
- Switch to Calendar Versioning 📅 HOT 1
- [Feature proposal]: Reuse same color for multiple labels
- Switch to a different TOML parser? 📦
- Rename default branch to main 📋 HOT 1
- Fix broken CI checks 🤖
- Run CI checks on newer Python 3 environments 🤖
- Update GitHub Actions workflow events 🤖
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from labels.