botframework-sdk/dri
dependabot[bot] 945a55fde7
Bump node-fetch in /dri/issueNotificationBot/AzureFunction (#6038)
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-27 20:23:55 -07:00
..
issueNotificationBot Bump node-fetch in /dri/issueNotificationBot/AzureFunction (#6038) 2020-10-27 20:23:55 -07:00
.gitignore Update dri script (#5694) 2019-12-11 13:24:29 -06:00
README.md Update README.md (#5830) 2020-05-07 09:47:38 -07:00
helpers.py dri tool update (#6051) 2020-09-21 14:58:04 -07:00
output.py Add json file for alternate UI & cleanup (#5664) 2019-11-25 16:37:39 -08:00
report.py dri tool update (#6051) 2020-09-21 14:58:04 -07:00
requirements.txt Add json file for alternate UI & cleanup (#5664) 2019-11-25 16:37:39 -08:00

README.md

Git Stats for Bot Framework

Command line tool to view active/aging issues associated with the Bot Framework Github repos.

Requires Python.

Currently performs the following (for repos managed by the Bot Framework):

  • Filters out Microsoft employees or vendors
  • Count of total issues after 7/1/1019.
  • Issues that don't contain the Bot Services label.
  • Issues that don't contain the customer-reported label.
  • Issues that don't contain the customer-replied-to label.
  • Issues that are endanger of not being closed within 90 days.
  • Outputs to local console and generates a HTML report.

Setup

Install dependent package (note: admin mode may be required.)

pip install -r requirements.txt

Set your Git Credentials

This tool uses a personal access token to authenticate with Github.

  • Go to https://github.com/settings/tokens

  • Click on "Generate new token"

    • Give note like "Bot DRI tool"
    • Check the "repo" check box (and all items underneath)
    • Copy the token value (don't worry you can regen if you forget it)
  • On command line: Windows: set GIT_PERSONAL_TOKEN=<your token>

       Powershell: `$env:GIT_PERSONAL_TOKEN="<your token>"` (Note the quotes)
    
       Linux: `export GIT_PERSONAL_TOKEN=<your token>`
    
  • To permanently set into your environment variables in Windows:

       `setx GIT_PERSONAL_TOKEN <your token>`
    

Run

python report.py

Note: The first time you run, the Microsoft organizations members will be cached on disk. This will take several minutes.

Sample Output:

PS D:\python\github\botframework-sdk\dri> python report.py
Bot Framework SDK Github Report
===============================
Repo: microsoft/BotFramework-DirectLine-DotNet:
   Total issues after 2019-07-01 00:00:00 : 0
   No "Bot Services": Count: 0
   No "Customer Reported": Count: 0
   No "Customer Replied": Count: 0
   90-day stale : Customer issues older than 60 days: 0
Repo: microsoft/BotFramework-Composer:
   Total issues after 2019-07-01 00:00:00 : 76
   No "Bot Services": Count: 0
   No "Customer Reported": Count: 0
   No "Customer Replied": Count: 0
   90-day stale : Customer issues older than 60 days: 0
...

Care and feeding

To filter out people (ie, consultants) which aren't subject to monitoring, edit the report.py and add the github alias (all lowercase) to the MICROSOFT_EMPLOYEES list.

To add new milestones labels (issues with milestone labels are filtered out), edit the helpers.py file and add the milestone label to MILESTONE_LABELS list.

Enjoy!