# gh-user-org-events

> Get the list of events related to the specific Github organization performed by a user

Latest version **1.0.0** (published 2016-01-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install gh-user-org-events
pnpm add gh-user-org-events
yarn add gh-user-org-events
bun add gh-user-org-events
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-01-12 |
| First published | 2016-01-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Shinnosuke Watanabe |
| Maintainers | shinnn |
| Keywords | github, user, event, events, org, organization, filter, filtered, list, array, api, github-api, get, request, promise, promises, then, async, asynchronous, asynchronously |

## Links

- npm: https://www.npmjs.com/package/gh-user-org-events
- Repository: https://github.com/shinnn/gh-user-org-events
- Homepage: https://github.com/shinnn/gh-user-org-events#readme
- Issues: https://github.com/shinnn/gh-user-org-events/issues
- npm.io page: https://npm.io/package/gh-user-org-events

## Dependencies (2)

- [arr-filter](https://npm.io/package/arr-filter.md) ^1.1.1
- [gh-user-events](https://npm.io/package/gh-user-events.md) ^1.0.1

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-01-12
- 0.0.0 — 2016-01-12

## README

# gh-user-org-events

[![NPM version](https://img.shields.io/npm/v/gh-user-org-events.svg)](https://www.npmjs.com/package/gh-user-org-events)
[![Build Status](https://travis-ci.org/shinnn/gh-user-org-events.svg?branch=master)](https://travis-ci.org/shinnn/gh-user-org-events)
[![Coverage Status](https://img.shields.io/coveralls/shinnn/gh-user-org-events.svg)](https://coveralls.io/github/shinnn/is-gist-starred?branch=master)
[![Dependency Status](https://david-dm.org/shinnn/gh-user-org-events.svg)](https://david-dm.org/shinnn/gh-user-org-events)
[![devDependency Status](https://david-dm.org/shinnn/gh-user-org-events/dev-status.svg)](https://david-dm.org/shinnn/gh-user-org-events#info=devDependencies)

Get the list of [events](https://developer.github.com/v3/activity/events/#events) related to the specific [Github](https://github.com/) [organization](https://help.github.com/articles/creating-a-new-organization-account/) performed by a user

```javascript
const ghUserOrgEvents = require('gh-user-org-events');

ghUserOrgEvents('shinnn', 'imagemin', orgEvents => console.log(orgEvents));
```

```javascript
[
  {
    id: '3494270483',
    type: 'IssueCommentEvent',
    actor: {login: 'shinnn', ...},
    repo: {id: 19068515, name: 'imagemin/imagemin-pngquant', ...},
    payload: {action: 'created', issue: {...}, ...},
    public: true,
    created_at: '2016-01-05T09:32:57Z',
    org: {
      id: 7868808,
      login: 'imagemin',
      gravatar_id: '',
      url: 'https://api.github.com/orgs/imagemin',
      avatar_url: 'https://avatars.githubusercontent.com/u/7868808?'
    }
  },
  {
    id: '3494270483',
    type: 'IssueCommentEvent',
    actor: {login: 'shinnn', ...},
    repo: {id: 19068515, name: 'imagemin/imagemin-pngquant', ...},
    payload: {action: 'created', issue: {...}, ...},
    public: true,
    created_at: '2016-01-05T09:32:57Z',
    org: {
      id: 7868808,
      login: 'imagemin',
      gravatar_id: '',
      url: 'https://api.github.com/orgs/imagemin',
      avatar_url: 'https://avatars.githubusercontent.com/u/7868808?'
    }
  },
  {
    id: '3494210472',
    type: 'PushEvent',
    actor: {login: 'shinnn', ...},
    repo: {id: 19068515, name: 'imagemin/imagemin-pngquant', ...},
    payload: {push_id: 922716391, size: 1, ...},
    public: true,
    created_at: '2016-01-05T09:11:21Z',
    org: {
      id: 7868808,
      login: 'imagemin',
      gravatar_id: '',
      url: 'https://api.github.com/orgs/imagemin',
      avatar_url: 'https://avatars.githubusercontent.com/u/7868808?'
    }
  },
  // ...
]
```

## Installation

[Use npm.](https://docs.npmjs.com/cli/install)

```
npm install gh-user-org-events
```

## API

```javascript
const ghUserEvents = require('gh-user-org-events');
```

### ghUserOrgEvents(*user*, *org* [, *options*])

*user*: `String` (a Github username, for example <https://github.com/shinnn> → `'shinnn'`)  
*org*: `String` (a Github organization username, for example <https://github.com/nodejs> → `'nodejs'`)  
*options*: `Object` ([gh-user-events](https://github.com/shinnn/gh-user-events#api) options)  
Return: [`Promise`](http://www.ecma-international.org/ecma-262/6.0/#sec-promise-constructor) instance

It has almost the same API as [gh-user-events](https://github.com/shinnn/gh-user-events)'s, except that it only gets items related to a specific organization.

## License

Copyright (c) 2016 [Shinnosuke Watanabe](https://github.com/shinnn)

Licensed under [the MIT License](./LICENSE).

---
_Source: https://npm.io/package/gh-user-org-events · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
