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

Not seeing changes updated to an organization #33

Open
Julian opened this issue Mar 30, 2023 · 0 comments
Open

Not seeing changes updated to an organization #33

Julian opened this issue Mar 30, 2023 · 0 comments

Comments

@Julian
Copy link

Julian commented Mar 30, 2023

Hi there! Hope all's well.

We've/I've been trying to evaluate using GithubOrganizer for the JSON Schema projects. Thanks for writing it!

I seem to be having difficulty getting it set up. I first was trying to follow the instructions to use the normal hosted GitHub app. After creating a testing GitHub organization with a few test repostiories and creating a organizer.yml which I think should be valid? I didn't notice the GitHub app making any changes to repositories, they all stayed with their default settings.

I've tried now to instead download and run the CLI myself (after creating a testing GitHub App, generating a private key, and giving it whichever permissions made running the CLI succeed without a traceback).

But I still don't see changes to the organizer.yml show up. Somehow it does seem to have modified the labels once (to create the label) but it doesn't seem to reliably update them as I change the organizer.yml. If I say, add a new label and push (which I've done), then running the CLI doesn't create the new label. Or if I enable wiki's on all repos, the same, I don't see the setting modified.

Maybe I'm missing something, let me know if so! A sample CLI run is below, where I've done what I just mentioned (added a label and changed the wiki default setting), which seems to complete successfully, but hasn't made any changes I can see:

/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/github3/session.py:3: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
  from collections import Callable
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/github3/structs.py:11: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
  class GitHubIterator(models.GitHubCore, collections.Iterator):
Configuring all repos in julian-testing-organization-om.
Updating the settings of repository julian-testing-organization-om/.github.
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49197), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Updating the labels of repository julian-testing-organization-om/.github.
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49199), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Updating the dependency security settings of repository julian-testing-organization-om/.github.
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49201), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Updating branch protection for main in julian-testing-organization-om/.github.
{"required_status_checks": {"contexts": [], "strict": false, "required_approving_review_count": 1}, "enforce_admins": false, "required_pull_request_reviews": null, "restrictions": null, "required_linear_history": false, "allow_force_pushes": false, "allow_deletions": false}
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=8, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49207), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49205), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Updating the settings of repository julian-testing-organization-om/example_repo.
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49210), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Updating the labels of repository julian-testing-organization-om/example_repo.
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49212), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Updating the settings of repository julian-testing-organization-om/another_repo.
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49214), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Updating the labels of repository julian-testing-organization-om/another_repo.
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49216), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Updating the dependency security settings of repository julian-testing-organization-om/another_repo.
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49218), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Updating branch protection for main in julian-testing-organization-om/another_repo.
{"required_status_checks": {"contexts": [], "strict": false, "required_approving_review_count": 1}, "enforce_admins": false, "required_pull_request_reviews": null, "restrictions": null, "required_linear_history": false, "allow_force_pushes": false, "allow_deletions": false}
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=8, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49224), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49222), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Updating the settings of repository julian-testing-organization-om/last-one.
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49227), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Updating the labels of repository julian-testing-organization-om/last-one.
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49229), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Updating the dependency security settings of repository julian-testing-organization-om/last-one.
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49231), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Updating branch protection for main in julian-testing-organization-om/last-one.
{"required_status_checks": {"contexts": [], "strict": false, "required_approving_review_count": 1}, "enforce_admins": false, "required_pull_request_reviews": null, "restrictions": null, "required_linear_history": false, "allow_force_pushes": false, "allow_deletions": false}
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=8, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49237), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49235), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Updating the settings of repository julian-testing-organization-om/foo.
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49240), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Updating the labels of repository julian-testing-organization-om/foo.
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49242), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Updating the dependency security settings of repository julian-testing-organization-om/foo.
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49244), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Updating branch protection for main in julian-testing-organization-om/foo.
{"required_status_checks": {"contexts": [], "strict": false, "required_approving_review_count": 1}, "enforce_admins": false, "required_pull_request_reviews": null, "restrictions": null, "required_linear_history": false, "allow_force_pushes": false, "allow_deletions": false}
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=8, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49251), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49248), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/Users/julian/Desktop/asdf/venv/lib/python3.9/site-packages/celery/app/task.py:393: ResourceWarning: unclosed <ssl.SSLSocket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.150.192', 49195), raddr=('140.82.112.5', 443)>
  return self.run(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback

(n.b. there was a small bug I saw which is that runs of the CLI blew up if they encountered an empty repository with no main branch as trying to access branch protections obviously doesn't work in that case. So I've since ensured my testing repositories are indeed not empty now, so the CLI runs.)

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

No branches or pull requests

1 participant