Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An option to disable automatic issue creation when build does not succeed #10

Open
kumlali opened this issue Apr 19, 2017 · 1 comment

Comments

@kumlali
Copy link
Contributor

kumlali commented Apr 19, 2017

gogs-branch-source plugin automatically creates an issue when build does not completes successfully (unstable, failure, aborted, etc.).

I have added auto-create issue option which lets users to disable automatic issue creation: PR #11.

@kumlali
Copy link
Contributor Author

kumlali commented Apr 21, 2017

By using SQLiteStudio I executed following SQL commands on SQLite database to disable issue tracking, to delete all the issues and to delete all the actions created for build failures.

-- Disable issue tracking of all repositories
SELECT * FROM repository WHERE enable_issues = 1;
UPDATE repository SET enable_issues = 0 WHERE enable_issues = 1;

-- Delete issues and issue-user dependencies
SELECT name, num_issues FROM repository WHERE num_issues > 0;
DELETE FROM issue WHERE id > -1;
DELETE FROM issue_user WHERE id > -1;
UPDATE repository SET num_issues = 0;

-- Delete actions recorded for Jenkins failures (op_type=6)
SELECT op_type, content, act_user_name FROM action WHERE op_type = 6;
DELETE FROM action WHERE op_type = 6;

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

No branches or pull requests

1 participant