Skip to content

strawberry-graphql/autopub-plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

strawberry-autopub-plugins

AutoPub plugins maintained by Strawberry GraphQL.

Included plugins

  • InviteContributorsPlugin (strawberry_autopub_plugins.invite_contributors:InviteContributorsPlugin)
    • Invites PR contributors to a GitHub organization after autopub publish.
    • Optionally adds them to a team.

Installation

pip install strawberry-autopub-plugins

Usage

Add the plugin path to your AutoPub config:

[tool.autopub]
plugins = [
  "poetry",
  "github",
  "strawberry_autopub_plugins.invite_contributors:InviteContributorsPlugin",
]

[tool.autopub.plugin_config.invite_contributors]
organization = "strawberry-graphql"
team-slug = "strawberry-contributors"
role = "direct_member"
include-co-authors = true
# Optional: extend defaults.
# By default, skip-bots is true and these users are excluded:
# dependabot-preview[bot], dependabot-preview, dependabot, dependabot[bot]
exclude-users = ["renovate[bot]"]
dry-run = false

Required environment variables

  • GITHUB_TOKEN
  • GITHUB_REPOSITORY

The token must be able to invite users to the target organization.

Development

uv sync
uv run pytest

When changing dependencies, update the lockfile:

uv lock

Next plugin

This repository is structured to host multiple plugins under src/strawberry_autopub_plugins/.

About

Autopub plugins for Strawberry GraphQL

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages