Skip to content

Commit 9798816

Browse files
Copilotzkoppert
andcommitted
Change ACKNOWLEDGE_COAUTHORS default to True
Co-authored-by: zkoppert <6935431+zkoppert@users.noreply.github.com>
1 parent f206280 commit 9798816

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

.env-example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ REPOSITORY = "organization/repository"
66
START_DATE = ""
77
SPONSOR_INFO = "False"
88
LINK_TO_PROFILE = "True"
9-
ACKNOWLEDGE_COAUTHORS = "False"
9+
ACKNOWLEDGE_COAUTHORS = "True"
1010

1111
# GITHUB APP
1212
GH_APP_ID = ""

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ This action can be configured to authenticate with GitHub App Installation or Pe
9393
| `END_DATE` | False | Current Date | The date at which you want to stop gathering contributor information. Must be later than the `START_DATE`. ie. Aug 2nd, 2023 would be `2023-08-02` |
9494
| `SPONSOR_INFO` | False | False | If you want to include sponsor information in the output. This will include the sponsor count and the sponsor URL. This will impact action performance. ie. SPONSOR_INFO = "False" or SPONSOR_INFO = "True" |
9595
| `LINK_TO_PROFILE` | False | True | If you want to link usernames to their GitHub profiles in the output. ie. LINK_TO_PROFILE = "True" or LINK_TO_PROFILE = "False" |
96-
| `ACKNOWLEDGE_COAUTHORS` | False | False | If you want to include co-authors from commit messages as contributors. Co-authors are identified via the `Co-authored-by:` trailer in commit messages using the GitHub noreply email format (e.g., `username@users.noreply.github.com`). This will impact action performance as it requires scanning all commits. ie. ACKNOWLEDGE_COAUTHORS = "True" or ACKNOWLEDGE_COAUTHORS = "False" |
96+
| `ACKNOWLEDGE_COAUTHORS` | False | True | If you want to include co-authors from commit messages as contributors. Co-authors are identified via the `Co-authored-by:` trailer in commit messages using the GitHub noreply email format (e.g., `username@users.noreply.github.com`). This will impact action performance as it requires scanning all commits. ie. ACKNOWLEDGE_COAUTHORS = "True" or ACKNOWLEDGE_COAUTHORS = "False" |
9797

9898
**Note**: If `start_date` and `end_date` are specified then the action will determine if the contributor is new. A new contributor is one that has contributed in the date range specified but not before the start date.
9999

env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def get_env_vars(
147147

148148
sponsor_info = get_bool_env_var("SPONSOR_INFO", False)
149149
link_to_profile = get_bool_env_var("LINK_TO_PROFILE", False)
150-
acknowledge_coauthors = get_bool_env_var("ACKNOWLEDGE_COAUTHORS", False)
150+
acknowledge_coauthors = get_bool_env_var("ACKNOWLEDGE_COAUTHORS", True)
151151

152152
# Separate repositories_str into a list based on the comma separator
153153
repositories_list = []

test_env.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def test_get_env_vars(self):
8080
self.assertEqual(end_date, "2022-12-31")
8181
self.assertFalse(sponsor_info)
8282
self.assertTrue(link_to_profile)
83-
self.assertFalse(acknowledge_coauthors)
83+
self.assertTrue(acknowledge_coauthors)
8484

8585
@patch.dict(
8686
os.environ,
@@ -192,7 +192,7 @@ def test_get_env_vars_no_dates(self):
192192
self.assertEqual(end_date, "")
193193
self.assertFalse(sponsor_info)
194194
self.assertTrue(link_to_profile)
195-
self.assertFalse(acknowledge_coauthors)
195+
self.assertTrue(acknowledge_coauthors)
196196

197197
@patch.dict(os.environ, {})
198198
def test_get_env_vars_missing_org_or_repo(self):

0 commit comments

Comments
 (0)