raulcd opened a new pull request, #14978:
URL: https://github.com/apache/arrow/pull/14978

   This can be added to run weekly on crossbow similar to the email report 
generation tasks.
   
   In the case of a non expired token:
   ```
   $ CROSSBOW_GITHUB_TOKEN=${TOKEN} archery crossbow notify-token-expiration 
--days 30
   Notification not sent. Token will expire in 39 days.
   ```
   In the case of an expired token:
   ```
   $ CROSSBOW_GITHUB_TOKEN=${TOKEN} archery crossbow notify-token-expiration 
--days 40
   From: None <None>
   To: None
   Subject: [CI] Arrow Crossbow Token Expiration in 2023-01-23
   
   The Arrow Crossbow Token will expire in 39 days.
   
   Please generate a new Token. Send it to Apache INFRA to update the 
CROSSBOW_GITHUB_TOKEN.
   Update it on the crossbow repository and in the Azure pipelines.
   ```
   In the case of a non-existing token:
   ```
   $ CROSSBOW_GITHUB_TOKEN=wrong_token archery crossbow notify-token-expiration 
--days 40
   From: None <None>
   To: None
   Subject: [CI] Arrow Crossbow Token Expiration in ALREADY_EXPIRED
   
   The Arrow Crossbow Token will expire in 0 days.
   
   Please generate a new Token. Send it to Apache INFRA to update the 
CROSSBOW_GITHUB_TOKEN.
   Update it on the crossbow repository and in the Azure pipelines.


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