Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Automate organization invitation based on the label (used by EddieHub org)

License

NotificationsYou must be signed in to change notification settings

vj-abigo/invite-on-label

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Screenshot of the invite the bot sends

This action allows you to auto-invite people to your org. after they open an issue, with a specific label.

How to use

  • Go to your repository
  • Create a folder named.github and create aworkflows folder inside it if it doesn't exist.
  • Create a new file namedinvitation.yml with the following contents inside theworkflows folder:
on:issues:types:[labeled]jobs:automate_invite:runs-on:ubuntu-lateststeps:      -name:Invite on labeluses:vj-abigo/invite-on-label@v1.4with:organization:GitHub-Orglabel:invite me to the organizationrepo-token:${{ secrets.GITHUB_TOKEN }}comment:'Welcome to the Org.'env:INVITE_TOKEN:${{ secrets.INVITE_TOKEN }}
  • Replace theorganization name to put in name of your org, replace thelabel with name of the label with which you want this action to be triggered.
  • Replacecomment with the message you want the github-actions bot to send after an invite is sent.
  • NOTE: create apersonal access token calledINVITE_TOKEN(or give it another name, but don't forget to change it in the workflow) with the scope ofadmin:org and set the expiration date asNo expiration(If you don't want to regenerate token again)

Give admin:org access to the token

  • Copy the generated token and navigate to your org's secrets(Organization Settings > Secrets) and create aNew Organization Secret with the Name asINVITE_TOKEN and the value as the token that you copied in the previous step.https://github.com/organizations/*your-org-name*/settings/secrets/actions
  • You don't worry about theGITHUB_TOKEN, It will be given by GitHub

Note:

organization -(required) Name of the organization to which you would like to invite your contributors

label -(required) Name of the label

comment -(optional) A comment which will be posted by github-actions bot after invite is sent.

Default comment:Invitation sent for the GitHub Organisation. Welcome to the community

existingMemberMessage(optional) Message for existing organisation members

Default Message:You are already a member of our Organisation.

Examples

Contributing

Please seeCONTRIBUTING.md for getting started with the contribution. Make sure that you followCODE_OF_CONDUCT.md while contributing and engaging in the discussions.When contributing, please first discuss the change you wish to make via an issue on this repository before making the actual change.

ToDo-

  • Better Docs
  • Fix bugs, if any

Bugs-

If you feel any difficulty in usage or notice a bug, don't forget toopen a new issue.

Contributors

Made withcontributors-img.


[8]ページ先頭

©2009-2025 Movatter.jp