Skip to content

imatza-rh/bugwatcher

 
 

Repository files navigation

Shiftstack Bugwatcher

pretriage

Usage:

  • for Bugzilla: ./pretriage.py
  • for Jira: go build ./cmd/pretriage && ./pretriage

Finds untriaged, unassigned Shiftstack bugs and assigns them to a team member.

Required environment variables:

{
  "kerberos_id1": {
    "slack_id": "UG65473AM",
    "bz_id": "user1@example.com",
    "components": ["component1"],
    "jira_name": "user1",
    "jira_components": ["component1/sub-component1"]
  },
  "kerberos_id2": {
    "slack_id": "UGF8B93HA",
    "bz_id": "user2@example.com",
    "components": [],
    "jira_name": "user2",
    "jira_components": []
  }
}

Optional environment variable: TEAM_VACATION in the form:

[
  {
    "kerberos": "jdoe",
    "start": "2022-01-01",
    "end": "2022-01-15"
  },
  {
    "kerberos": "jdoe",
    "start": "2022-06-12",
    "end": "2022-06-15"
  }
]

Development

To validate the Bugzilla query:

  1. Run make query_url_pretriage
  2. Paste the resulting URL in your browser address bar
  3. Click on the button "Edit Search" at the bottom of the bug list

posttriage

Usage:

  • for Bugzilla: ./posttriage.py
  • for Jira: go build ./cmd/posttriage && ./posttriage

Resets the Triaged keyword on bugs that still need attention.

Required environment variables:

Development

To validate the Bugzilla query:

  1. Run make query_url_posttriage
  2. Paste the resulting URL in your browser address bar
  3. Click on the button "Edit Search" at the bottom of the bug list

doctext

Usage: ./doctext.py

Finds OCP 4.10 resolved bugs lacking a doc text, and posts a reminder to Slack.

Required environment variables:

Development

To validate a Bugzilla query:

  1. Run make query_url_doctext
  2. Paste the resulting URL in your browser address bar
  3. Click on the button "Edit Search" at the bottom of the bug list

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 55.2%
  • Python 44.4%
  • Makefile 0.4%