-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Adding initial scripts #1
base: main
Are you sure you want to change the base?
Conversation
IamLizu
commented
Oct 1, 2024
•
edited
Loading
edited
- Script for creating label in all existing repo of an organization
- Script for subscribing to all repo of an organization for triage members
- Improved readme
|
||
// Replace with your GitHub token and organization name | ||
const GITHUB_TOKEN = 'token'; | ||
const ORGANIZATION_NAME = 'pillarjs'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be passed as command-line arguments using process.argv
const ORGANIZATIONS = process.argv.slice(2)
for (const arg of ORGANIZATIONS) {
...
}
Or simply add the three organizations.
Hey @bjohansebas 👋 Yes, organization can be passed as arguments. Additionally, we can do the following things,
However, I don't that effort is required here. I think we should put more focus on the task at hand instead of making these scripts all customizable as they are intended for a few people only? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why isn't there a package.json? I don't think it matters to install all the packages even if we're just using a single script.
Hey @bjohansebas 👋 Yeah, I thought about adding a package.json too. I was a bit hesitant to be honest. I was thinking whether I should add it or not. Then the negative arguments won in mind, such as,
But yes, its merely my opinion. Let's wait and hear opinion from other people as well. There's certainly no harm in adding the file. |