Skip to content

fix: skip changes updated check on gitea empty PRs#3299

Draft
YoukouTenhouin wants to merge 1 commit intoopenSUSE:masterfrom
YoukouTenhouin:empty-pr-fix
Draft

fix: skip changes updated check on gitea empty PRs#3299
YoukouTenhouin wants to merge 1 commit intoopenSUSE:masterfrom
YoukouTenhouin:empty-pr-fix

Conversation

@YoukouTenhouin
Copy link
Copy Markdown
Contributor

On Gitea the process of adding a new package is created by submitting an empty PR for that. This wasn't allowed by factory-auto before. Skip that check for Gitea to allow new package submission.

@YoukouTenhouin
Copy link
Copy Markdown
Contributor Author

As the process for submitting a new package is still in the flux, this is created as a draft for now.

labels = set((x["name"] for x in json["labels"]))
if "new_package" in labels:
new_package = True
self.logger.info("Empty PR; skippng changes_updated check")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.logger.info("Empty PR; skippng changes_updated check")
self.logger.info("Empty PR; skipping changes_updated check")

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

Successfully merging this pull request may close these issues.

2 participants