This repo exists for the sole purpose of trying out automatic issue labeling triage.
This repo uses the moxious/chatgpt-cli-action repo to automatically label issues whenever they are opened.
The only interesting code here is the invocation of a remote GitHub action with configuration.
See .github/workflows/new-issue.yaml
for the whole thing.
All of the issues in this repo are copies of issues from grafana/grafana
. This issue is a good example.
label_issue
workflow.elaborate_issue
workflow.Copy an issue from grafana/grafana
to this repo by running this command (requires gh CLI installed and authenticated with a token)
./copy-issue.sh 78106
This script will output the URL of a new issue created that is a copy of grafana/grafana's issue of the same number. Because it's in this repo, it will be auto-labeled.
Using the gh CLI, you can even bulk/mass copy issues if you wish.
Copy all the unlabeled issues that are recent:
for number in $(gh search issues -R grafana/grafana --no-label --json number | jq '.[].number') ; do
./copy-issue.sh $number ;
done
Or just copy the 10 most recent issues.
for number in $(gh issue list -L 10 --json number -R grafana/grafana | jq '.[].number') ; do
./copy-issue.sh $number ;
done