This project demonstrates how PR Pilot can be used to easily automate some of your workflows in JIRA.
The demo uses FastAPI to create a web server that listens for incoming webhook requests.
The webhook handler reacts if a new label needs-refinement
is added to a JIRA issue. It then instructs PR Pilot to
act as a technical lead for the issue.
PR Pilot will autonomously:
JIRA_API_TOKEN
: The API token used to authenticate requests to the JIRA API. This is necessary for the application to interact with JIRA.JIRA_API_USER
: The email address associated with the JIRA account. This is used to authenticate requests to the JIRA API.JIRA_API_ENDPOINT
: The base URL of the JIRA instance. This is used to construct the URLs for the JIRA API requests.PR_PILOT_API_TOKEN
: The API token used to authenticate requests to the PR Pilot API. This is necessary for the application to interact with PR Pilot.GITHUB_REPO
: The name of the GitHub repository.pip install -r requirements.txt
.fastapi dev main.py
to start the FastAPI server.The application is set up to receive webhook events at the root URL (/
).
To trigger the webhook handler, add the label needs-refinement
to a JIRA issue.