Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: github/issue-metrics
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9133bca6efc630f370bc2d5e802705c35f7ded1b
Choose a base ref
..
head repository: github/issue-metrics
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1a0109353a4e801d09c8b106963ba5232ebd6276
Choose a head ref
Showing with 1,557 additions and 325 deletions.
  1. +0 −14 .devcontainer/devcontainer.json
  2. +12 −3 .env-example
  3. +1 −1 .github/CODEOWNERS
  4. +5 −0 .github/linters/.flake8
  5. +2 −0 .github/linters/.isort.cfg
  6. +5 −0 .github/linters/.mypy.ini
  7. +644 −0 .github/linters/.python-lint
  8. +5 −5 .github/pull_request-template.md
  9. +4 −0 .github/workflows/codeql-analysis.yml
  10. +3 −3 .github/workflows/docker-image.yml
  11. +35 −0 .github/workflows/linter.yaml
  12. +32 −27 .github/workflows/major-version-updater.yml
  13. +5 −3 .github/workflows/python-package.yml
  14. +6 −0 .github/workflows/release-drafter.yml
  15. +0 −16 .pylintrc
  16. +2 −1 Dockerfile
  17. +6 −3 Makefile
  18. +46 −18 README.md
  19. +1 −1 action.yml
  20. +143 −47 config.py
  21. +1 −0 discussions.py
  22. +12 −4 docs/assign-team-instead-of-individual.md
  23. +62 −0 docs/authenticating-with-github-app-installation.md
  24. +7 −5 docs/example-using-json-instead-markdown-output.md
  25. +15 −9 docs/example-workflows.md
  26. +5 −3 docs/measure-time.md
  27. +9 −5 docs/search-query.md
  28. +42 −34 issue_metrics.py
  29. +19 −19 json_writer.py
  30. +7 −7 labels.py
  31. +1 −3 most_active_mentors.py
  32. +9 −0 requirements-test.txt
  33. +2 −6 requirements.txt
  34. +250 −0 test_config.py
  35. +2 −0 test_discussions.py
  36. +34 −23 test_issue_metrics.py
  37. +1 −0 test_json_writer.py
  38. +5 −5 test_labels.py
  39. +3 −5 test_markdown_writer.py
  40. +1 −4 test_most_active_mentors.py
  41. +11 −6 test_time_to_answer.py
  42. +4 −3 test_time_to_close.py
  43. +66 −21 test_time_to_first_response.py
  44. +2 −1 test_time_to_merge.py
  45. +2 −1 test_time_to_ready_for_review.py
  46. +2 −2 time_to_answer.py
  47. +2 −2 time_to_close.py
  48. +23 −15 time_to_first_response.py
  49. +1 −0 time_to_merge.py
14 changes: 0 additions & 14 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,13 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
{
"name": "Existing Dockerfile",
"build": {
// Sets the run context to one level up instead of the .devcontainer folder.
"context": "..",
"dockerfile": "../Dockerfile"
},

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "echo hello",

// Configure tool-specific properties.
// "customizations": {},

// Connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
"remoteUser": "devcontainer"
}
15 changes: 12 additions & 3 deletions .env-example
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
GH_TOKEN = " "
SEARCH_QUERY = "repo:owner/repo is:open is:issue"
LABELS_TO_MEASURE = "waiting-for-review,waiting-for-manager"
GH_APP_ID=""
GH_APP_INSTALLATION_ID=""
GH_APP_PRIVATE_KEY=""
GH_ENTERPRISE_URL = ""
GH_TOKEN = ""
HIDE_AUTHOR = "false"
HIDE_LABEL_METRICS = "false"
HIDE_TIME_TO_ANSWER = "false"
HIDE_TIME_TO_CLOSE = "false"
HIDE_TIME_TO_FIRST_RESPONSE = "false"
IGNORE_USERS = "user1,user2"
LABELS_TO_MEASURE = "waiting-for-review,waiting-for-manager"
SEARCH_QUERY = "repo:owner/repo is:open is:issue"
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @zkoppert
* @jmeridth @zkoppert
5 changes: 5 additions & 0 deletions .github/linters/.flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[flake8]
exclude = venv,.venv,.git,__pycache__
extend-ignore = C901
max-line-length = 150
statistics = True
2 changes: 2 additions & 0 deletions .github/linters/.isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[settings]
profile = black
5 changes: 5 additions & 0 deletions .github/linters/.mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[mypy]
disable_error_code = attr-defined, import-not-found

[mypy-github3.*]
ignore_missing_imports = True
Loading