You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/07/22 17:58:58 UTC

[GitHub] [airflow] rossturk commented on a diff in pull request #25239: Adjust heuristics for PR of the Month script

rossturk commented on code in PR #25239:
URL: https://github.com/apache/airflow/pull/25239#discussion_r927879982


##########
dev/stats/get_important_pr_candidates.py:
##########
@@ -45,73 +46,180 @@
     required=True,
     help=textwrap.dedent(
         """
-        GitHub token used to authenticate.
-        You can set omit it if you have GITHUB_TOKEN env variable set
+        A GitHub token is required, and can also be provided by setting the GITHUB_TOKEN env variable.
         Can be generated with:
         https://github.com/settings/tokens/new?description=Read%20issues&scopes=repo:status"""
     ),
     envvar='GITHUB_TOKEN',
 )
 
-PROVIDER_SCORE = 0.5
-REGULAR_SCORE = 1.0
 
-REVIEW_INTERACTION_VALUE = 1.0

Review Comment:
   Moving these inside the class lets us import the class into a notebook, needed for successful unpickling.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org