Skip to content

Conversation

@redreceipt
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings August 12, 2025 13:26
@redreceipt redreceipt temporarily deployed to bug-board-inactive-devs-tvmtvb August 12, 2025 13:26 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 adds functionality to alert managers about engineers who have been inactive (no completed Linear issues) in the last 7 days. The system now sends these alerts to a separate manager Slack webhook on Fridays.

  • Introduces a new function to track and report engineer inactivity to managers
  • Adds a dedicated Slack webhook for manager notifications
  • Includes minor code formatting improvements and import reorganization

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
jobs.py Adds inactive engineer tracking with manager notifications, new Slack webhook function, and minor formatting improvements
README.md Removes trailing whitespace from documentation

response.raise_for_status()


def post_to_manager_slack(markdown: str):
Copy link

Copilot AI Aug 12, 2025

Choose a reason for hiding this comment

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

The function lacks a docstring explaining its purpose and parameters. Consider adding documentation similar to the existing post_to_slack function.

Copilot uses AI. Check for mistakes.
try:
completed = get_completed_issues_for_person(login, 7)
except Exception as e:
logging.error(f"Failed to fetch completed issues for {login}: {e}")
Copy link

Copilot AI Aug 12, 2025

Choose a reason for hiding this comment

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

Using f-string in logging.error can cause issues if the variables contain format specifiers. Use logging.error("Failed to fetch completed issues for %s: %s", login, e) instead.

Suggested change
logging.error(f"Failed to fetch completed issues for {login}: {e}")
logging.error("Failed to fetch completed issues for %s: %s", login, e)

Copilot uses AI. Check for mistakes.
@redreceipt redreceipt merged commit f46c69d into main Aug 12, 2025
3 checks passed
@redreceipt redreceipt deleted the inactive-devs branch August 12, 2025 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants