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

Quieten binder-badge bot #3

Merged
merged 2 commits into from
Jun 2, 2023
Merged

Conversation

manics
Copy link
Member

@manics manics commented Feb 8, 2021

Use an action to comment once and update the comment instead of repeatedly commenting.

See #2 (comment)
This action should ensure there's only one comment that gets updated.

@github-actions
Copy link

github-actions bot commented Feb 8, 2021

Binder 👈 Launch a binder notebook on this branch for commit 32bc0e7

Base automatically changed from master to main March 11, 2021 20:58
@consideRatio
Copy link
Member

For this to work in the JupyterHub GitHub org, I believe you need to be explicit about the permissions granted to the github token. By default, you only have read inside our org.

Docs about this: https://docs.github.com/en/actions/reference/authentication-in-a-workflow#permissions-for-the-github_token

I think you need...

jobs:
  badge:
    permissions:
      pull-requests: write

Perhaps also contents: read? I'm not sure.

@consideRatio
Copy link
Member

Ping @manics, I've not used your action before but we can absolutely go for it! You will need to update permissions though.

Use an action to comment once and update the comment instead of repeatedly commenting
@github-actions
Copy link

Binder 👈 Launch a binder notebook on this branch for commit 89345d3

@consideRatio consideRatio merged commit e8ef8a7 into jupyterhub:main Jun 2, 2023
@manics manics deleted the binderbadge branch June 2, 2023 06:18
willend added a commit to McStasMcXtrace/jupyter-mcstas-mcxtrace-desktop that referenced this pull request Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants