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

How to condition based on github teams? #260

Open
alexInhert opened this issue Apr 28, 2022 · 1 comment
Open

How to condition based on github teams? #260

alexInhert opened this issue Apr 28, 2022 · 1 comment
Labels
question A question on how to use this action

Comments

@alexInhert
Copy link

the example https://github.com/actions/github-script#welcome-a-first-time-contributor shows how to write a message to a first time contributor.
Is it possible to write a message to any contributor except users set in a specific github team?

@joshmgross joshmgross added the question A question on how to use this action label Jan 21, 2023
@joshmgross
Copy link
Member

👋 You could do this by fetching the members of a team and then checking if the creator is in that team.

The List team members API should help get you started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A question on how to use this action
Projects
None yet
Development

No branches or pull requests

2 participants