Skip to content

Conversation

@redreceipt
Copy link
Member

Summary

  • adjust leaderboard scoring
  • update tooltip text
  • extract priority scoring constant

Testing

  • python -m py_compile jobs.py linear.py app.py github.py config.py openai_client.py constants.py
  • flake8 (fails: command not found)

https://chatgpt.com/codex/tasks/task_e_687f1d96a1c08324aace3ceb5abfb9d5

Copilot AI review requested due to automatic review settings July 22, 2025 16:29
@redreceipt redreceipt temporarily deployed to bug-board-codex-update--12moiz July 22, 2025 16:29 Inactive

This comment was marked as outdated.

@redreceipt redreceipt requested a review from Copilot July 22, 2025 16:31
@redreceipt redreceipt temporarily deployed to bug-board-codex-update--12moiz July 22, 2025 16:31 Inactive
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the leaderboard scoring system by extracting the priority-to-score mapping into a shared constant. The change eliminates code duplication and centralizes the scoring configuration for better maintainability.

  • Extracts hardcoded priority scoring logic into a shared constant PRIORITY_TO_SCORE
  • Updates both linear.py and jobs.py to use the centralized constant
  • Creates a new constants.py file to house application-wide constants

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
constants.py New file defining the PRIORITY_TO_SCORE constant with priority level mappings
linear.py Removes local priority scoring dictionary and imports from constants
jobs.py Replaces local priority scoring dictionary with imported constant

Co-authored-by: Copilot <[email protected]>
@redreceipt redreceipt temporarily deployed to bug-board-codex-update--12moiz July 22, 2025 16:33 Inactive
@redreceipt redreceipt merged commit fed1f7d into main Jul 22, 2025
2 checks passed
@redreceipt redreceipt deleted the codex/update-leaderboard-scoring-to-10,-5,-1 branch July 22, 2025 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants