Skip to content

Remove author filtering for GitLab commit statuses#27

Open
majamassarini wants to merge 1 commit intopackit:mainfrom
majamassarini:validate-fedora-ci-fixes3
Open

Remove author filtering for GitLab commit statuses#27
majamassarini wants to merge 1 commit intopackit:mainfrom
majamassarini:validate-fedora-ci-fixes3

Conversation

@majamassarini
Copy link
Copy Markdown
Member

The previous implementation filtered GitLab commit statuses by author, expecting all statuses to be created by the Packit service account. However, GitLab CI pipeline statuses are authored by the commit author or project owner, not by external service accounts.
Assisted-By: Claude Sonnet 4.5 noreply@anthropic.com

The previous implementation filtered GitLab commit statuses by author,
expecting all statuses to be created by the Packit service account.
However, GitLab CI pipeline statuses are authored by the commit author
or project owner, not by external service accounts.
Assisted-By: Claude Sonnet 4.5 <noreply@anthropic.com>
len(all_statuses),
)

filtered_statuses = [status for status in all_statuses if self._check_status_author(status)]
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.

do we still need the _check_status_author method?

len(filtered_statuses),
# GitLab pipeline statuses may not have the service account as author
# Only filter if we're looking for external commit statuses
# For now, accept all statuses to avoid filtering out GitLab CI pipelines
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.

for now - is there some plan here on how we should change the behaviour?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants