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:
BUGZILLA_API_KEY: a Bugzilla API keyJIRA_TOKEN: a Jira API token of an account that can access the OCPBUGS projectSLACK_HOOK: a Slack hook URLTEAM_MEMBERS_DICTis a JSON object in the form:
{
"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"
}
]To validate the Bugzilla query:
- Run
make query_url_pretriage - Paste the resulting URL in your browser address bar
- Click on the button "Edit Search" at the bottom of the bug list
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:
BUGZILLA_API_KEY: a Bugzilla API key.JIRA_TOKEN: a Jira API token of an account that can access the OCPBUGS project
To validate the Bugzilla query:
- Run
make query_url_posttriage - Paste the resulting URL in your browser address bar
- Click on the button "Edit Search" at the bottom of the bug list
Usage: ./doctext.py
Finds OCP 4.10 resolved bugs lacking a doc text, and posts a reminder to Slack.
Required environment variables:
BUGZILLA_API_KEY: a Bugzilla API keySLACK_HOOK: a Slack hook URLTEAM_MEMBERS_DICTas described above
To validate a Bugzilla query:
- Run
make query_url_doctext - Paste the resulting URL in your browser address bar
- Click on the button "Edit Search" at the bottom of the bug list