Skip to content

Use a dedicated output field to indicate request conclusion #219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Jan 13, 2025

In cases where the request submitter or the submitted repositories are from entities without registry access privileges, the parser can determine the conclusion of the request. When the access control system was implemented, the pre-existing type field was used to pass this information. That field is used in two ways:

  • Determine the appropriate handling for the request.
  • Apply the appropriate labeling to the pull request.

Although the type field is suitable for the first of these in the case where the request is declined, it is not very suitable for the second. The reason is that the labels are grouped in sets. The type data corresponds to the "topic" label set, while the conclusion corresponds to the "conclusion" set. The PR should be labeled with the appropriate label from each of these sets.

So the request conclusion data is moved to a dedicated conclusion output field, leaving the type field to be used exclusively for its original purpose.

In cases where the request submitter or the submitted repositories are from entities without registry access privileges,
the parser can determine the conclusion of the request. When the access control system was implemented, the pre-existing
`type` field was used to pass this information. That field is used in two ways:

- Determine the appropriate handling for the request.
- Apply the appropriate labeling to the pull request.

Although the `type` field is suitable for the first of these in the case where the request is declined, it is not very
suitable for the second. The reason is that the labels are grouped in sets. The type data corresponds to the "topic"
label set, while the conclusion corresponds to the "conclusion" set. The PR should be labeled with the appropriate label
from each of these sets.

So the request conclusion data is moved to a dedicated `conclusion` output field, leaving the `type` field to be used
exclusively for its original purpose.
@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Jan 13, 2025
@per1234 per1234 self-assigned this Jan 13, 2025
@per1234 per1234 merged commit 7adf92f into arduino:main Jan 13, 2025
9 of 10 checks passed
@per1234 per1234 deleted the conclusion branch January 14, 2025 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant