Changesets: Tools

master f3ca9f0b

2021-06-02 16:34:11

dregad

Details Diff
Nightly builds: remove build directories

We don't use them or offer them for download, so there is no need to
keep the source directories used to generate the nightly builds
tarballs once they have been created.
mod - nightly-builds.sh Diff File

master 3c04cff9

2021-06-02 16:32:27

dregad

Details Diff
Nightly builds: no need to include manuals

Unlikely that a person downloading the nightly build would need the
manual, and if they did they can always get the latest version online at
https://mantisbt.org/documentation.php
mod - nightly-builds.sh Diff File

master 285ea384

2021-05-06 13:33:08

dregad

Details Diff
Config: remove obsolete user and password keys

Accessing the GitHub API with user/password is no longer possible since
2020-11-13, so it makes no sense to keep these settings in here.
mod - config_defaults.yml Diff File

master 6a22fb6a

2021-05-06 13:19:15

dregad

Details Diff
New script to identify merged branches to delete

Once a PR has been merged, its reference branch is in most cases no
longer needed. GitHub offers a button to delete it, but this is a manual
task and if not done right away developers forget to do it and these
branches tends to pile up.

This script checks all branches in the specified developer's repository
against successfully merged PRs that were submitted by that developer in
the reference repository. If one or more matching references are found,
it prints a command that can be used to delete the no-longer needed
branches.
add - merged_pr_branches.py Diff File

master d1fff335

2021-05-06 13:17:42

dregad

Details Diff
New script to update Github teams access to plugin repos

Helper script for mantisbt-plugins organization maintenance.

Uses Github API to
- Create a team for each plugin, granting push access to it
- grant the "Special" teams specified in config file access to all
plugins in the organization
mod - config_defaults.yml Diff File
add - github_plugin_teams.py Diff File

master 7ab8cab4

2021-05-06 13:11:39

dregad

Details Diff
New script to get all repos for an org

Clones or updates local copies of all the specified organization's
repositories.

Execute in a new directory, or one already containing one or more of the
organization's repos.
add - get_all_repos.py Diff File

master 5a56a458

2021-05-06 13:04:19

dregad

Details Diff
Print team URL for "orphan"

Facilitates manual check for those.
mod - github_plugin_teams.py Diff File

master 0cd735ae

2021-05-06 13:02:37

dregad

Details Diff
Fix deprecated method call

DeprecationWarning: Call to deprecated method set_repo_permission.
(Team.set_repo_permission() is deprecated, use Team.update_team_repository()
instead.)
mod - github_plugin_teams.py Diff File

master 55631840

2021-05-06 12:59:07

dregad

Details Diff
Improve handling of token with insufficient rights

Catch the error early, and provide descriptive message.
mod - github_plugin_teams.py Diff File

master 172bc675

2021-05-06 12:57:15

dregad

Details Diff
Rename Github object variable to 'gh'
mod - github_plugin_teams.py Diff File

master 8c26efe7

2021-05-06 11:53:33

dregad

Details Diff
Use token to access GitHub API

User/password authentication is no longer possible since 2020-11-13.
mod - github_plugin_teams.py Diff File

master 90fa75e0

2021-05-06 08:52:27

dregad

Details Diff
Fix static analysis warnings
mod - github_plugin_teams.py Diff File

master 19f1bc02

2021-05-06 08:45:39

dregad

Details Diff
Set default credentials to null instead of None

This way, when pyyaml imports the config file, the attribute is actually
set to _None_ and not 'None' (string).
mod - config_defaults.yml Diff File

master 800c5a0d

2021-05-06 08:41:28

dregad

Details Diff
Handle invalid credentials error

Previously, a misleading "repo not found" error would be printed.
mod - merged_pr_branches.py Diff File

master 820eee8f

2021-05-06 08:40:15

dregad

Details Diff
Fix static analysis warnings

- unused imports
- declare global Github object
- Use """ instead of ''' for docstrings
- get_options() has no return value
mod - merged_pr_branches.py Diff File

master 0f2f82ee

2021-05-06 05:51:52

dregad

Details Diff
Use pyyaml safe_load() function

load() is deprecated for security reasons [1].

[1]: https://msg.pyyaml.org/load
mod - config.py Diff File

master f74dbac1

2021-04-04 18:03:47

dregad

Details Diff
irclogs.py: Fix syntax errors

- renamed variable `source` to `source_dir`
- use `{}` as format() placeholder
mod - irclogs.py Diff File

master 551846f7

2021-03-07 12:54:19

dregad

Details Diff
Add missing `!`

Regression from 4658d62db2a8344c39307aafd9b8e47bab96bc96
mod - update-trackers.sh Diff File

master 4658d62d

2021-03-07 12:38:17

dregad

Details Diff
Fix shellcheck warnings
mod - update-trackers.sh Diff File

master 9a473c63

2021-03-07 12:30:00

dregad

Details Diff
Use git-rev-parse to retrieve short commit sha
mod - update-trackers.sh Diff File

master fc65663e

2021-03-07 12:20:17

dregad

Details Diff
nightly-builds.sh: new log() function
mod - nightly-builds.sh Diff File

master 421087da

2021-03-07 12:12:42

dregad

Details Diff
Don't hardcode git commit sha length to 7

Since Git 2.11 [1], by default the abbreviated commit sha's length is
determined automatically based on the number of objects in the
repository.

As of this commit, in the mantisbt repository that gives us 9 chars,
which causes the nightly-builds.sh script's logic to keep the N most
recent builds to fail.

Changing the regex to accept any number of chars.

Fixes #28009

[1]: https://github.com/git/git/blob/master/Documentation/RelNotes/2.11.0.txt#L22
mod - nightly-builds.sh Diff File

master bf636c65

2021-03-07 11:59:52

dregad

Details Diff
Switch to using scripts in mantisbt repo

Fixes #28008
mod - nightly-builds.sh Diff File

master e2ec0af8

2021-03-07 11:59:22

dregad

Details Diff
Fix shellcheck warnings
mod - nightly-builds.sh Diff File

master 341729b4

2021-03-07 09:47:46

dregad

Details Diff
Convert irclogs.py to Python3
mod - irclogs.py Diff File
1 2 3 4 5 6 7 8 9 10  Next  Last