Skip to content

Commit

Permalink
add opt out strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
roryscarson committed Sep 26, 2023
1 parent 9de5e3d commit d738600
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- [Contentful Architecture](architecture.md)
- [Creating a New Policy](create-a-new-policy.md)
- [Deploying Changes](deployment.md)
- [Opt-out of Checks](opt-out.md)
________
________

Expand Down
55 changes: 55 additions & 0 deletions opt-out.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# How to disable Allstar
If you are receiving unwanted issues created by Allstar, follow the instructions on this page to disable the app on your project.

[Disable Allstar, org-level opt-out strategy](#disable-allstar-org-level-opt-out-strategy)
[Disable Check, repository level](#disable-a-specific-check-with-repo-override)
[Disable Allstar, repo level](#disable-allstar-with-repo-override)


## Disable Allstar, org-level opt-out strategy

These instructions disable Allstar on a repository when Allstar is configured at the organization level using the opt-out strategy.

In the `.allstar` repository in your organization, open the file named
`allstar.yaml`.

Find the `optOutStrategy` setting:

```
optConfig:
optOutStrategy: true
```

To opt-out, submit a PR to the `.allstar` repo, and add the name of your
repository to the opt-out list:

```
optConfig:
optOutStrategy: true
optOutRepos:
- my-repo-name-here
```

Allstar will be disabled on your repository when the pull request is merged.

### Disable a specific check with repo-override

To opt-out of a specific check in your repo create `.allstar/control-name.yaml` and add
```
optConfig:
optOut: true
```

Merge this file to disable Allstar on your repository.

### Disable allstar with repo-override

To disable Allstar using repo-override, create a file in your repo named
`.allstar/allstar.yaml` with the contents:

```
optConfig:
optOut: true
```

Merge this file to disable Allstar on your repository.

0 comments on commit d738600

Please sign in to comment.