Skip to content

Feat: add recursive group search#37

Open
aoktox wants to merge 2 commits into
phillipj:masterfrom
aoktox:master
Open

Feat: add recursive group search#37
aoktox wants to merge 2 commits into
phillipj:masterfrom
aoktox:master

Conversation

@aoktox
Copy link
Copy Markdown

@aoktox aoktox commented Nov 29, 2022

fix #34

@aoktox aoktox mentioned this pull request Nov 30, 2022
@pequeurb
Copy link
Copy Markdown

pequeurb commented Mar 2, 2023

This explains why I couldn't find some things, I'd love to see this added!
Would you be willing to have a look at this whenever you find some time @phillipj ?

Copy link
Copy Markdown

@ericonr ericonr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I didn't understand was how the version of gitlab-search installed via npm worked for finding a project belonging to a subgroup since I only specified the group

Comment thread README.md
2. Create a [personal GitLab access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#creating-a-personal-access-token) with the `read_api` scope.

## Installation

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: don't remove this newline.

Comment thread src/Main.re
"-g, --groups <group-names>",
"group(s) to find repositories in (separated with comma)",
)
|> option("-r, --recursive", "Search recursively in projects in the given groups")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: lowercase is used for the other options (also update README)

Comment thread README.md
Comment on lines +89 to +99
## Installing from source
1. Install node 14.x
2. Clone this repository
3. Build with
```sh
$ npm run build
```
4. Run from bin directory
```sh
$ bin/gitlab-search.js -h
```
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be a separate commit?

The prerequisites don't list a specific NodeJS version, and it doesn't seem to be required from what I tested.

@marsluca
Copy link
Copy Markdown

Some news? @phillipj

@phillipj
Copy link
Copy Markdown
Owner

Hi @marsluca,

Any improvements going forward, will have to be made on the TypeScript rewrite: #45.

If you could help out giving that beta version a try, I'd be grateful as it would set the stage for merging & publishing a new version, before consider porting these changes into TypeScript.

In case you're not interested in trying it out, I'd suggest forking the project and adding these changes into your version of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FR: Subgroup search

5 participants