Skip to content

ORGANIZATION is always required #27

Closed
@timdittler

Description

@timdittler

Contrary to the README, the env var ORGANIZATION is always required. Otherwise the action will fail with

Traceback (most recent call last):
  File "/action/workspace/cleanowners.py", line 206, in <module>
    main()
  File "/action/workspace/cleanowners.py", line [8](https://github.com/Staffbase/infrastructure/actions/runs/8158526447/job/22300640673?pr=5510#step:4:9)[9](https://github.com/Staffbase/infrastructure/actions/runs/8158526447/job/22300640673?pr=5510#step:4:10), in main
    if not github_connection.organization(organization).is_member(username):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.[12](https://github.com/Staffbase/infrastructure/actions/runs/8158526447/job/22300640673?pr=5510#step:4:13)/site-packages/github3/github.py", line 1688, in organization
    json = self._json(self._get(url), 200)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/github3/models.py", line [16](https://github.com/Staffbase/infrastructure/actions/runs/8158526447/job/22300640673?pr=5510#step:4:17)1, in _json
    raise exceptions.error_for(response)
github3.exceptions.NotFoundError: 404 Not Found

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions