feat: new commands in mm channels and gitea issues #6
No reviewers
Labels
No Label
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: JOJ/Joint-Teapot#6
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "arthurcai/Joint-Teapot:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Main Changes
Doc
Gitea Issues
Mattermost
The fixes the problem of #3. Not sure whether code quality/effects is okay... The label adding and deleting is tested in engr151/test-repo.
pre-commit check passed after switching to pycln 2.5.0
@ -169,1 +169,4 @@@app.command("close-issues",help="close specific issues in a repository: joint-teapot close-issues REPO_NAME ISSUE_NUMBER [ISSUE_NUMBER ...]",no need to add sample usage in help text, typer will generate it
@ -170,0 +175,4 @@repo_name: str,issue_numbers: List[int] = Argument(..., help="One or more issue numbers to close"),dry_run: bool = Option(False, "--dry-run/--no-dry-run", help="Enable dry run (no changes will be made)""--dry-run/--no-dry-run"is also auto generated by typer@ -170,0 +219,4 @@),repo: bool = Option(False,"--repo",ditto
@ -548,6 +590,492 @@ class Gitea:self.create_milestone(repo_name, milestone, description, due_date)logger.info(f"Created milestone {milestone} in {repo_name}")def label_issues(function body too long
@ -551,0 +1038,4 @@path = f"/repos/{self.org_name}/{repo_name}/labels/{enc_name}"url = f"{self.api_client.configuration.host}{path}"try:resp = requests.delete(url, headers=headers_local, timeout=10)Does
focs_giteaprovide this endpoint?focs_gitea seems not to provide the endpoint/api to create labels. Also, using the label issue directly result in a failure on my computer, the issue can't be labeled.
Does
self.issue_api.issue_create_labelandself.issue_api.issue_delete_labelwork?Sorry, not tried. I thought that if label-issue failed then the other two might be failed. Will refactor to try to use these two tonight.
refactored, dry-run issue fixed.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Gitea.