Skip to content
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

maintainers/scripts/activity: review management tool #340663

Closed
wants to merge 15 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions maintainers/scripts/activity/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# NixOS maintainer activities

In order to maintain `maintainer-list.nix` itself we need a
standardized way to interact with inactive maintainers.

`./activity.bb` is a program, supporting various related tasks.

## Setup

### Access token

- Create a personal access token https://github.com/settings/tokens with capabilities
- `public_repo`
- `read:org`
- Save to `~/.config/nixpkgs/maintainer-activity-access-token` or as a [regular nix access token](https://nix.dev/manual/nix/2.18/command-ref/conf-file#conf-access-tokens)

### Environment

```sh
nix-shell -p babashka curl jq
```

## List github user names from `maintainer-list.nix`

```sh
./activity.bb maintainer names
```

## Extract data from github

```sh
./activity.bb gh latest-issue-comment-for <user> | jq
./activity.bb gh latest-contributions-for <user> | jq
./activity.bb gh search-for <user> | jq
```

## Find more data to extract from github

```sh
./activity.bb gh explorer
```

## Change `./activity.bb`

```sh
bb nrepl-server
```

Instructions at start of file in `./activity.bb`.
Loading