You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/11/10 07:47:22 UTC

[GitHub] [pulsar] zymap opened a new pull request #8500: Add cherry-pick bot for the pulsar

zymap opened a new pull request #8500:
URL: https://github.com/apache/pulsar/pull/8500


   **Motivation**
   
   We want to make the pulsar can cherry-pick automatically. This action will make a closed PR can cherry-pick by the command /pulsarbot cherry-pick to branch-X.Y.
   
   When a PR is merged, the bot will say,
   
   Hey. If you want to cherry-pick this pr to a target branch, please comments '/pulsarbot, /pulsarbot cherry-pick to branch-X.Y'.
   Then you can comment /pulsarbot cherry-pick to branch-X.Y, the bot will open a new PR for cherry-picking the closed PR.
   
   If we open a new PR to do the cherry-pick, we can also use the CI to check the branch.


----------------------------------------------------------------
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.

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



[GitHub] [pulsar] zymap commented on pull request #8500: Add cherry-pick bot for the pulsar

Posted by GitBox <gi...@apache.org>.
zymap commented on pull request #8500:
URL: https://github.com/apache/pulsar/pull/8500#issuecomment-725054290


   /pulsarbot run-failure-checks


----------------------------------------------------------------
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.

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



[GitHub] [pulsar] zymap commented on pull request #8500: Add cherry-pick bot for the pulsar

Posted by GitBox <gi...@apache.org>.
zymap commented on pull request #8500:
URL: https://github.com/apache/pulsar/pull/8500#issuecomment-725765278


   /pulsarbot cherry-pick to branch-2.6


----------------------------------------------------------------
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.

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



[GitHub] [pulsar] codelipenghui commented on a change in pull request #8500: Add cherry-pick bot for the pulsar

Posted by GitBox <gi...@apache.org>.
codelipenghui commented on a change in pull request #8500:
URL: https://github.com/apache/pulsar/pull/8500#discussion_r520361250



##########
File path: .github/workflows/ci-pulsarbot.yaml
##########
@@ -41,6 +41,28 @@ jobs:
 
       - name: Execute pulsarbot command
         id:   pulsarbot
+        if: github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '/pulsarbot')
         env:
           GITHUB_TOKEN: ${{ secrets.PULSARBOT_TOKEN }}
         uses: apache/pulsar-test-infra/pulsarbot@master
+
+      - name: Cherry-pick prompt
+        if: github.event_name == 'pull_request' && github.event.pull_request.merged == true
+        uses: apache/pulsar-test-infra/cherry-pick@master
+        env:
+          GITHUB_TOKEN: ${{ secrets.PULSARBOT_TOKEN }}
+        with:
+          type: prompt-comment
+          github_user: codelipenghui

Review comment:
       Ok, we can update it later




----------------------------------------------------------------
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.

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



[GitHub] [pulsar] sijie commented on a change in pull request #8500: Add cherry-pick bot for the pulsar

Posted by GitBox <gi...@apache.org>.
sijie commented on a change in pull request #8500:
URL: https://github.com/apache/pulsar/pull/8500#discussion_r520435399



##########
File path: .github/workflows/ci-pulsarbot.yaml
##########
@@ -41,6 +41,28 @@ jobs:
 
       - name: Execute pulsarbot command
         id:   pulsarbot
+        if: github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '/pulsarbot')
         env:
           GITHUB_TOKEN: ${{ secrets.PULSARBOT_TOKEN }}
         uses: apache/pulsar-test-infra/pulsarbot@master
+
+      - name: Cherry-pick prompt
+        if: github.event_name == 'pull_request' && github.event.pull_request.merged == true
+        uses: apache/pulsar-test-infra/cherry-pick@master
+        env:
+          GITHUB_TOKEN: ${{ secrets.PULSARBOT_TOKEN }}
+        with:
+          type: prompt-comment
+          github_user: codelipenghui

Review comment:
       @zymap Can you leave a comment in the file?




----------------------------------------------------------------
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.

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



[GitHub] [pulsar] zymap commented on a change in pull request #8500: Add cherry-pick bot for the pulsar

Posted by GitBox <gi...@apache.org>.
zymap commented on a change in pull request #8500:
URL: https://github.com/apache/pulsar/pull/8500#discussion_r520964891



##########
File path: .github/workflows/ci-pulsarbot.yaml
##########
@@ -41,6 +41,28 @@ jobs:
 
       - name: Execute pulsarbot command
         id:   pulsarbot
+        if: github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '/pulsarbot')
         env:
           GITHUB_TOKEN: ${{ secrets.PULSARBOT_TOKEN }}
         uses: apache/pulsar-test-infra/pulsarbot@master
+
+      - name: Cherry-pick prompt
+        if: github.event_name == 'pull_request' && github.event.pull_request.merged == true
+        uses: apache/pulsar-test-infra/cherry-pick@master
+        env:
+          GITHUB_TOKEN: ${{ secrets.PULSARBOT_TOKEN }}
+        with:
+          type: prompt-comment
+          github_user: codelipenghui

Review comment:
       ok.




----------------------------------------------------------------
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.

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



[GitHub] [pulsar] sijie merged pull request #8500: Add cherry-pick bot for the pulsar

Posted by GitBox <gi...@apache.org>.
sijie merged pull request #8500:
URL: https://github.com/apache/pulsar/pull/8500


   


----------------------------------------------------------------
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.

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



[GitHub] [pulsar] zymap commented on a change in pull request #8500: Add cherry-pick bot for the pulsar

Posted by GitBox <gi...@apache.org>.
zymap commented on a change in pull request #8500:
URL: https://github.com/apache/pulsar/pull/8500#discussion_r520355600



##########
File path: .github/workflows/ci-pulsarbot.yaml
##########
@@ -41,6 +41,28 @@ jobs:
 
       - name: Execute pulsarbot command
         id:   pulsarbot
+        if: github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '/pulsarbot')
         env:
           GITHUB_TOKEN: ${{ secrets.PULSARBOT_TOKEN }}
         uses: apache/pulsar-test-infra/pulsarbot@master
+
+      - name: Cherry-pick prompt
+        if: github.event_name == 'pull_request' && github.event.pull_request.merged == true
+        uses: apache/pulsar-test-infra/cherry-pick@master
+        env:
+          GITHUB_TOKEN: ${{ secrets.PULSARBOT_TOKEN }}
+        with:
+          type: prompt-comment
+          github_user: codelipenghui

Review comment:
       Just use a github user who has permission to create a branch on the apache/pulsar repo. We can consider creating a bot user to do this.




----------------------------------------------------------------
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.

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