uranusjr commented on code in PR #31427:
URL: https://github.com/apache/airflow/pull/31427#discussion_r1211347357


##########
airflow/providers/jenkins/sensors/jenkins.py:
##########
@@ -30,7 +30,8 @@
 class JenkinsBuildSensor(BaseSensorOperator):
     """
     Monitor a jenkins job and pass when it is finished building. This is 
regardless of the build outcome.

Review Comment:
   ```suggestion
       Monitor a jenkins job and pass when it is finished building.
       
       This is regardless of the build outcome.
   ```



##########
airflow/providers/mongo/sensors/mongo.py:
##########
@@ -28,14 +28,16 @@
 
 class MongoSensor(BaseSensorOperator):
     """
-    Checks for the existence of a document which
-    matches the given query in MongoDB. Example:
-
-    >>> mongo_sensor = MongoSensor(collection="coll",
-    ...                            query={"key": "value"},
-    ...                            mongo_conn_id="mongo_default",
-    ...                            mongo_db="admin",
-    ...                            task_id="mongo_sensor")
+    Checks for the existence of a document which matches the given query in 
MongoDB.
+
+    Example:
+    >>> mongo_sensor = MongoSensor(
+    ...     collection="coll",
+    ...     query={"key": "value"},
+    ...     mongo_conn_id="mongo_default",
+    ...     mongo_db="admin",
+    ...     task_id="mongo_sensor",
+    ... )

Review Comment:
   ```suggestion
       Example:
   
       .. code-block:: pycon
   
           >>> mongo_sensor = MongoSensor(
           ...     collection="coll",
           ...     query={"key": "value"},
           ...     mongo_conn_id="mongo_default",
           ...     mongo_db="admin",
           ...     task_id="mongo_sensor",
           ... )
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to