| github-token | GitHub token with permissions to read collaborators and create discussions. | yes | — |
| target-repo | Target repository in owner/repo format. Defaults to the current repository. | no | — |
| swa-name | Name of the target Azure Static Web App. | yes | — |
| swa-resource-group | Resource group name of the Static Web App. | yes | — |
| swa-domain | Domain of the Static Web App (e.g. your-app.azurestaticapps.net). Used for invite links. | no | — |
| invitation-expiration-hours | Invitation link expiration in hours (1-168). | no | 168 |
| minimum-permission | Minimum GitHub permission level to sync. Options: read, triage, write, maintain, admin. | no | write |
| role-for-admin | SWA role name assigned to GitHub admin users. | no | github-admin |
| role-for-maintain | SWA role name assigned to GitHub maintain users. | no | github-maintain |
| role-for-write | SWA role name assigned to GitHub write users. | no | github-write |
| role-for-triage | SWA role name assigned to GitHub triage users. | no | github-triage |
| role-for-read | SWA role name assigned to GitHub read users. | no | github-read |
| role-prefix | Prefix used to detect SWA roles managed by this action. | no | github- |
| discussion-category-name | Discussion category name where invite summary Discussion will be created. | yes | — |
| discussion-title-template | Template for discussion title. Placeholders: {swaName}, {repo}, {date}, {login}. | no | SWA access invite for @{login} ({swaName}) - {date} |
| discussion-body-template | Template for discussion body. Placeholders: {swaName}, {repo}, {summaryMarkdown}, {login}, {role}, {inviteUrl}, {invitationExpirationHours}.
| no | Hi @{login},
You now have **{role}** access to **{swaName}** from **{repo}**.
- Invite link: {inviteUrl}
- Role: {role}
- Expires in: {invitationExpirationHours} hours
Use the invite link above to authenticate. After you confirm access, close this discussion so the admins know you're done. If the invite expired, comment here and we'll re-run the sync.
|