Naughty Programmer's Madness

    github-automation
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.4 • Public • Published

    hola

    oclif Version Downloads/week License

    Usage

    $ npm install -g github-automation
    $ github-automation COMMAND
    running command...
    $ github-automation (-v|--version|version)
    github-automation/2.0.4 darwin-x64 node-v14.18.1
    $ github-automation --help [COMMAND]
    USAGE
      $ github-automation COMMAND
    ...

    Commands

    `github-automation

    collaborators -r GITHUBREPOS… -u GITHUBUSERS… -p [pull,push,admin,maintain,triage] collaborators -r GITHUBREPOS… -u GITHUBUSERS… --delete `

    Manage Repo collaborators

    USAGE
      $ github-automation 
        collaborators -r GITHUBREPOS… -u GITHUBUSERS… -p [pull,push,admin,maintain,triage]
        collaborators -r GITHUBREPOS… -u GITHUBUSERS… --delete
    
    OPTIONS
      -d, --delete                                         delete user permission
      -h, --help                                           show CLI help
      -p, --permissions=(pull|push|admin|maintain|triage)  [default: push] Select Permission to add
    
      -r, --repositories=repositories                      (required) Can be multiples repositories with shape OWNER/REPO
                                                           separated by space
    
      -u, --github-users=github-users                      (required) Can be multiples users
    
    EXAMPLE
    
          you must have a personal github token to set the first time that uses this tool
          $ github-automation delete-secret OWNER/REPO_NAME1 OWNER/REPO_NAME2 ... OWNER/REPO_NAMEn --secret-name 
      SECRET_NAME1 SECRET_NAME2 ... SECRET_NAME_N
          $ github-automation delete-secret OWNER/REPO_NAME1 OWNER/REPO_NAME2 ... OWNER/REPO_NAMEn -n SECRET_NAME1 
      SECRET_NAME2 ... SECRET_NAME_N
    

    See code: src/commands/collaborators.ts

    github-automation delete-secret -r REPOS -n NAMES

    Delete Secret from repo

    USAGE
      $ github-automation delete-secret -r REPOS -n NAMES
    
    OPTIONS
      -h, --help                       show CLI help
      -n, --secret-name=secret-name    (required) Can be multiples secret names separated by space
      -r, --repositories=repositories  (required) Can be multiples repositories with shape OWNER/REPO separated by space
    
    EXAMPLE
    
          $ github-automation delete-secret OWNER/REPO_NAME1 OWNER/REPO_NAME2 ... OWNER/REPO_NAMEn --secret-name 
      SECRET_NAME1 SECRET_NAME2 ... SECRET_NAME_N
          $ github-automation delete-secret OWNER/REPO_NAME1 OWNER/REPO_NAME2 ... OWNER/REPO_NAMEn -n SECRET_NAME1 
      SECRET_NAME2 ... SECRET_NAME_N
    

    See code: src/commands/delete-secret.ts

    github-automation help [COMMAND]

    display help for github-automation

    USAGE
      $ github-automation help [COMMAND]
    
    ARGUMENTS
      COMMAND  command to show help for
    
    OPTIONS
      --all  see all commands in CLI
    

    See code: @oclif/plugin-help

    github-automation list-org-repositories OWNER

    List Org Repositories if have access

    USAGE
      $ github-automation list-org-repositories OWNER
    
    OPTIONS
      -f, --filter=filter  filter by name contains
    
    EXAMPLE
    
          $ github-automation list-org-repositories OWNER
    

    See code: src/commands/list-org-repositories.ts

    github-automation repos-with-secret OWNER

    List Org Repositories if have access

    USAGE
      $ github-automation repos-with-secret OWNER
    
    EXAMPLE
    
          $ github-automation repos-with-secret OWNER
    

    See code: src/commands/repos-with-secret.ts

    github-automation set-secret -r REPOS -n NAMES -x VALUES

    describe the command here

    USAGE
      $ github-automation set-secret -r REPOS -n NAMES -x VALUES
    
    OPTIONS
      -h, --help                       show CLI help
      -n, --secret-name=secret-name    (required) Can be multiples secret names separated by space
      -r, --repositories=repositories  (required) Can be multiples repositories with shape OWNER/REPO separated by space
      -x, --secret-value=secret-value  (required) Can be multiples secret values separated by space
    
    EXAMPLE
    
          you must have a personal github token to set the first time that uses this tool
          $ github-automation set-secret -r OWNER/NAME1 OWNER/NAME2 ... OWNER/NAMEn --secret-name SECRET_NAME1 SECRET_NAME2 
      ... SECRET_NAMEN --secret-value SECRETVALUE1 SECRETVALUE2 ... SECRETVALUEN
          $ github-automation set-secret -r OWNER/NAME1 OWNER/NAME2 ... OWNER/NAMEn -n SECRET_NAME1 SECRET_NAME2 ... 
      SECRET_NAMEN -x SECRETVALUE1 SECRETVALUE2 ... SECRETVALUEN
    

    See code: src/commands/set-secret.ts

    Keywords

    Install

    npm i github-automation

    DownloadsWeekly Downloads

    18

    Version

    2.0.4

    License

    MIT

    Unpacked Size

    38.4 kB

    Total Files

    44

    Last publish

    Collaborators

    • giorgiosaud