https://github.com/jamessingleton/is-organization-member
GitHub Action to check if someone is part of a GitHub organization.
https://github.com/jamessingleton/is-organization-member
actions github github-action github-action-javascript github-actions github-actions-javascript github-actions-nodejs hacktoberfest is-organization-member member organization
Last synced: 5 months ago
JSON representation
GitHub Action to check if someone is part of a GitHub organization.
- Host: GitHub
- URL: https://github.com/jamessingleton/is-organization-member
- Owner: JamesSingleton
- License: mit
- Created: 2020-05-27T04:41:01.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-04-01T21:50:18.000Z (6 months ago)
- Last Synced: 2025-05-04T22:55:33.615Z (5 months ago)
- Topics: actions, github, github-action, github-action-javascript, github-actions, github-actions-javascript, github-actions-nodejs, hacktoberfest, is-organization-member, member, organization
- Language: JavaScript
- Homepage:
- Size: 530 KB
- Stars: 11
- Watchers: 0
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Is Organization Member
This action returns if someone belongs to a certain organization or not.
## Usage
An example workflow using the action:
```yaml
name: Is Organization Member Exampleon:
issues:
types: [opened, labeled]jobs:
welcome:
name: Welcome
runs-on: ubuntu-latest
steps:
- name: Check if organization member
id: is_organization_member
if: github.event.action == 'opened'
uses: JamesSingleton/is-organization-member@1.1.0
with:
organization: testorg
username: ${{ github.event.issue.user.login }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Create Comment
if: |
${{ steps.is_organization_member.outputs.result == 'false' }}
run: echo User Does Not Belong to testorg
```> **Note:** In order to check whether a member is part of the organization
> or not, the members **must** have their "Organization Visibility" set to
> Public.
> In order to ensure your "Organization Visibility" is correct, please,
> check https://github.com/orgs/**your_organization**/people.