old_contents: #! /usr/bin/env python
  
  from __future__ import print_function
  
  import os
  import time
  
  from github import Github
  
  gh = Github(os.environ['DMWMBOT_TOKEN'])
  codeRepo = os.environ.get('CODE_REPO', 'WMCore')
  teamName = os.environ.get('WMCORE_REPO', 'dmwm')
  repoName = '%s/%s' % (teamName, codeRepo)
  
  issueID = None
  
  if 'ghprbPullId' in os.environ:
      issueID = os.environ['ghprbPullId']
      mode = 'PR'
  elif 'TargetIssueID' in os.environ:
      issueID = os.environ['TargetIssueID']
      mode = 'Daily'
  
  repo = gh.get_repo(repoName)
  issue = repo.get_issue(int(issueID))
  reportURL = os.environ['BUILD_URL']
  
  lastCommit = repo.get_pull(int(issueID)).get_commits().get_page(0)[-1]
  lastCommit.create_status(state='pending', target_url=reportURL,
                           description='Tests started by Jenkins at ' + time.strftime("%d %b %Y %H:%M"))
  
new_contents: #! /usr/bin/env python
  
  from __future__ import print_function
  
  import os
  import time
  
  from github import Github
  
  gh = Github(os.environ['DMWMBOT_TOKEN'])
  codeRepo = os.environ.get('CODE_REPO', 'WMCore')
  teamName = os.environ.get('WMCORE_REPO', 'dmwm')
  repoName = '%s/%s' % (teamName, codeRepo)
  
  issueID = None
  
  if 'ghprbPullId' in os.environ:
      issueID = os.environ['ghprbPullId']
      mode = 'PR'
  elif 'TargetIssueID' in os.environ:
      issueID = os.environ['TargetIssueID']
      mode = 'Daily'
  
  repo = gh.get_repo(repoName)
  issue = repo.get_issue(int(issueID))
  reportURL = os.environ['BUILD_URL']
  
  lastCommit = repo.get_pull(int(issueID)).get_commits().get_page(0)[-1]
  lastCommit.create_status(state='pending', target_url=reportURL,
                           description='Tests started at ' + time.strftime("%d %b %Y %H:%M CEDT"))
  
subject: Make timestamp in CEDT