> ## Documentation Index
> Fetch the complete documentation index at: https://docs.snagsolutions.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Become a GitHub Repository Collaborator

> GitHub collaborator loyalty rule. Reward users who are collaborators on your repository.

<head>
  <script type="application/ld+json">
    {JSON.stringify({
            "@context": "https://schema.org",
            "@type": "TechArticle",
            "headline": "Become a GitHub Repository Collaborator",
            "description": "GitHub collaborator loyalty rule. Reward users who are collaborators on your repository.",
            "author": {"@type": "Organization", "name": "Snag Solutions", "url": "https://www.snagsolutions.io/"},
            "publisher": {"@type": "Organization", "name": "Snag Solutions", "url": "https://www.snagsolutions.io/", "logo": {"@type": "ImageObject", "url": "https://assets.snagsolutions.io/public/docs/snag-logo-dark-no-bg.svg"}},
            "mainEntityOfPage": "https://docs.snagsolutions.io/loyalty/rules/github-repo-collaborator"
          })}
  </script>
</head>

## **Overview**

This loyalty rule allows admins to reward users for becoming a collaborator on a specific [GitHub](https://github.com/) repository. This rule is useful for recognizing and incentivizing contributors who have been granted collaborator access to your repository.

<Frame>
  ![Snag admin GitHub repository collaborator rule configuration form](https://assets.snagsolutions.io/public/docs/rules/github-repo-collaborator.png)
</Frame>

## **Prerequisites**

* The user must have connected their GitHub account to Snag.
* The user must be added as a collaborator to the specified GitHub repository by the repository owner or administrator.

## **Rule Configuration Fields**

### **Reward**

* **Type of Reward**: Choose between "Points" or "Multiplier".

* **Points**: Users will get the defined no of points.

* **Multiplier**: Users will get the multiplier of the defined amount.

### **Basic Settings**

* **Update Cadence**: The GitHub Repository Collaborator rule rewards users **immediately** upon successful verification that they are a collaborator on the repository.
* **User Reward Frequency**: This is a one-time reward that users can claim after being added as a collaborator.

### **Custom Settings**

* **Skip the multiplier for this rule**: Toggle to skip the multiplier for this rule
* **GitHub Repo URL** \*: The full URL of the GitHub repository where users need to be collaborators (e.g., `https://github.com/owner/repository`). This is a required field that identifies the target repository.

## **Verification Process**

Users verify their GitHub repository collaborator status through the following process:

<Steps>
  <Step title="Connect GitHub account">
    Users must first connect their GitHub account to Snag if they haven't already done so.
  </Step>

  <Step title="Become a collaborator">
    Repository owners or administrators must add the user as a collaborator to the
    specified GitHub repository through the repository settings.
  </Step>

  <Step title="Claim the reward">
    After being added as a collaborator, users can claim the reward through the
    loyalty rule interface.
  </Step>

  <Step title="System verification">
    The system verifies that: - The user is listed as a collaborator on the
    specified repository
  </Step>

  <Step title="Reward distribution">
    Once verified, users receive their reward immediately.
  </Step>
</Steps>

## **Important Notes**

<Info>
  The GitHub Repo URL should be in the format
  `https://github.com/owner/repository`.
</Info>

<Tip>
  To add a user as a collaborator, go to your repository on GitHub, navigate to
  Settings → Collaborators, and add the user by their GitHub username. The user
  will need to accept the collaboration invitation before they can claim the
  reward.
</Tip>
