Helper scripts for doing things through Forgejo's API.
move_issue is a workaround pending https://codeberg.org/forgejo/forgejo/issues/1280
.env.example | ||
.gitignore | ||
move_issue.py | ||
README.md |
Forgejo Helpers
Setup:
git clone https://git.agaric.com/agaric/forgejo_helpers.git
cd forgejo_helpers
cp .env.example .env
Set your instance URL there and your API token (with permission to read and write issues at least).
Move issues
Currently this is the only script:
Use it by passing in the source owner, the source repository, the issue number, the destination owner, and the destination repository, like so:
python move_issue old-example-org old-example-repo 123 new-example-org new-example-repo
All five parameters are needed, even if it is within the same organization.
It would not be difficult to change it so these could be environment variables so that only the issue need to be passed in, and in would not be hard to allow passing in a list of issues, but this has not been done yet.