Skip to content

Commit 97160b9

Browse files
committed
fix: formatting fixes
Signed-off-by: Zack Koppert <[email protected]>
1 parent 9a931c8 commit 97160b9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ All feedback regarding our GitHub Actions, as a whole, should be communicated th
2929
1. Select a best fit workflow file from the [examples below](#example-workflows).
3030
1. Copy that example into your repository (from step 1) and into the proper directory for GitHub Actions: `.github/workflows/` directory with the file extension `.yml` (ie. `.github/workflows/evergreen.yml`)
3131
1. Edit the values below from the sample workflow with your information:
32-
3332
- `ORGANIZATION`
3433
- `TEAM_NAME`
3534
- `REPOSITORY`
@@ -51,7 +50,6 @@ All feedback regarding our GitHub Actions, as a whole, should be communicated th
5150
1. Also edit the value for `GH_ENTERPRISE_URL` if you are using a GitHub Server and not using github.com.
5251
For github.com users, leave it empty.
5352
1. Update the value of `GH_TOKEN`. Do this by creating a [GitHub API token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic) with the following permissions:
54-
5553
- If using **classic tokens**:
5654
- `workflow`, this will set also all permissions for `repo`
5755
- under `admin`, `read:org` and `write:org`
@@ -107,7 +105,7 @@ The needed GitHub app permissions are the following under `Repository permission
107105
| `GH_ENTERPRISE_URL` | False | "" | The `GH_ENTERPRISE_URL` is used to connect to an enterprise server instance of GitHub, ex: `https://yourgheserver.com`.<br>github.com users should not enter anything here. |
108106
| `ORGANIZATION` | Required to have `ORGANIZATION` or `REPOSITORY` | | The name of the GitHub organization which you want this action to work from. ie. github.com/github would be `github` |
109107
| `REPOSITORY` | Required to have `ORGANIZATION` or `REPOSITORY` | | The name of the repository and organization which you want this action to work from. ie. `github/evergreen` or a comma separated list of multiple repositories `github/evergreen,super-linter/super-linter` |
110-
| `REPOSITORY_SEARCH_QUERY` | False | "" | When set, directs the action to use the GitHub Search API to search repositories matching this query instead of enumerating all organization repositories. Example: `org:my-org is:repository archived:false created:>2025-07-01`. |
108+
| `REPOSITORY_SEARCH_QUERY` | False | "" | When set, directs the action to use the GitHub Search API to search repositories matching this query instead of enumerating all organization repositories. Example: `org:my-org is:repository archived:false created:>2025-07-01`. |
111109
| `EXEMPT_REPOS` | False | "" | These repositories will be exempt from this action considering them for dependabot enablement. ex: If my org is set to `github` then I might want to exempt a few of the repos but get the rest by setting `EXEMPT_REPOS` to `github/evergreen,github/contributors` |
112110
| `TYPE` | False | pull | Type refers to the type of action you want taken if this workflow determines that dependabot could be enabled. Valid values are `pull` or `issue`. |
113111
| `TITLE` | False | "Enable Dependabot" | The title of the issue or pull request that will be created if dependabot could be enabled. |

evergreen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""This file contains the main() and other functions needed to open an issue/PR dependabot is not enabled but could be"""
22

33
import io
4+
import os
45
import sys
56
import uuid
67
from datetime import datetime
@@ -343,7 +344,6 @@ def get_repos_iterator(organization, team_name, repository_list, github_connecti
343344
"""Get the repositories from the organization, team_name, repository_list, or via search query"""
344345
# Use GitHub search API if REPOSITORY_SEARCH_QUERY is set
345346
try:
346-
import os
347347
search_query = os.getenv("REPOSITORY_SEARCH_QUERY", "")
348348
except ImportError:
349349
search_query = ""

0 commit comments

Comments
 (0)