| 1 | package edu.ucsb.cs156.frontiers.enums; | |
| 2 | ||
| 3 | /** | |
| 4 | * Who may open pull requests against a GitHub repository: the values of the repository setting | |
| 5 | * {@code pull_request_creation_policy}. | |
| 6 | */ | |
| 7 | public enum PullRequestCreationPolicy { | |
| 8 | /** Only users with at least Write access to the repository. */ | |
| 9 | COLLABORATORS_ONLY("collaborators_only"), | |
| 10 | /** Anyone who can see the repository. */ | |
| 11 | ALL("all"); | |
| 12 | ||
| 13 | private final String githubValue; | |
| 14 | ||
| 15 | PullRequestCreationPolicy(String githubValue) { | |
| 16 | this.githubValue = githubValue; | |
| 17 | } | |
| 18 | ||
| 19 | /** The value that GitHub's REST API uses for this policy. */ | |
| 20 | public String getGithubValue() { | |
| 21 |
1
1. getGithubValue : replaced return value with "" for edu/ucsb/cs156/frontiers/enums/PullRequestCreationPolicy::getGithubValue → KILLED |
return githubValue; |
| 22 | } | |
| 23 | } | |
Mutations | ||
| 21 |
1.1 |