You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First stab at figuring out the number of very active mentors (#206)
* First stab at figuring out the number of very active mentors in a project.
* Fix format and linter errors.
* Add flake to requirements.
* Adds call to mentor counter and output in markdown.
This adds the call to mentor counter and displays the results in markdown
including first tests for this functionality.
* Make mentor counting configurable.
This adds two configuration options: One to enable mentor counting and one for
configuring how many comments a user needs to leave in discussions, PRs. and
issues to be counted as an active mentor.
* Adds mentor counting to json output and adds missing config.
This adds mentor counting output to json format. In addition this change makes
max number of comments to evaluate configurable as well as the cutoff for
heavily involved mentors.
* Fix merge conflicts.
* Fix linting errors.
* fix: linting fixes
Signed-off-by: Zack Koppert <[email protected]>
* 8 is reasonable number of attrs
Signed-off-by: Zack Koppert <[email protected]>
* Update test_most_active_mentors.py
Co-authored-by: Jason Meridth <[email protected]>
* Update config.py
Co-authored-by: Jason Meridth <[email protected]>
* Update config.py
Remove merge residual
* Update requirements.txt
Remove lib only needed for testing.
* Update issue_metrics.py
Co-authored-by: Jason Meridth <[email protected]>
* Update config.py
* Update config.py
set type of `enable_mentor_count` to `bool`
* Update test_config.py
change tests to handle boolean change of enable_mentor_count
---------
Signed-off-by: Zack Koppert <[email protected]>
Co-authored-by: Drost-Fromm <[email protected]>
Co-authored-by: Zack Koppert <[email protected]>
Co-authored-by: Jason Meridth <[email protected]>
Co-authored-by: Jason Meridth <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+4
Original file line number
Diff line number
Diff line change
@@ -145,6 +145,10 @@ This action can be configured to authenticate with GitHub App Installation or Pe
145
145
| `HIDE_TIME_TO_CLOSE` | False | False | If set to `true`, the time to close will not be displayed in the generated Markdown file. |
146
146
| `HIDE_TIME_TO_FIRST_RESPONSE` | False | False | If set to `true`, the time to first response will not be displayed in the generated Markdown file. |
147
147
| `IGNORE_USERS` | False | False | A comma separated list of users to ignore when calculating metrics. (ie. `IGNORE_USERS: 'user1,user2'`). To ignore bots, append `[bot]` to the user (ie. `IGNORE_USERS: 'github-actions[bot]'`) |
148
+
| `ENABLE_MENTOR_COUNT` | False | False | If set to 'TRUE' count number of comments users left on discussions, issues and PRs and display number of active mentors |
149
+
| `MIN_MENTOR_COMMENTS` | False | 10 | Minimum number of comments to count as a mentor |
150
+
| `MAX_COMMENTS_EVAL` | False | 20 | Maximum number of comments per thread to evaluate for mentor stats |
151
+
| `HEAVILY_INVOLVED_CUTOFF` | False | 3 | Cutoff after which a mentor's comments in one issue are no longer counted against their total score |
148
152
| `LABELS_TO_MEASURE` | False | `""` | A comma separated list of labels to measure how much time the label is applied. If not provided, no labels durations will be measured. Not compatible with discussions at this time. |
149
153
| `SEARCH_QUERY` | True | `""` | The query by which you can filter issues/PRs which must contain a `repo:`, `org:`, `owner:`, or a `user:` entry. For discussions, include `type:discussions` in the query. |
0 commit comments