Skip to content
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

TM Comment Consolidation in Github/Gitlab #2131

Open
wants to merge 21 commits into
base: dev
Choose a base branch
from

Conversation

Drulikar
Copy link
Contributor

@Drulikar Drulikar commented Feb 14, 2025

🆑
Transitioned GitLab API to GraphQL due to incomplete implementation (namely for MR notes) in the abandoned API.
The option "Post comment when test merge is deployed" will now be consolidated into one message (until it approaches comment limit). In other words, rather than a new message each deployment, an existing message (if it exists) will be edited with a new line. The content of the message has also been altered.
/🆑

TGS creates a lot of noise currently on PRs, and this attempts to put it all in one message.

Github testing (I had to fix the timestamp and comment handling):
image

Gitlab testing (I had to fix the heading having line endings that differ):
image

Copy link
Contributor

Thank you for contributing to tgstation-server! The CI Pipeline workflow requires repository secrets and will not run without approval. Maintainers can add the CI Cleared label to allow it to run. Note that any changes to ci-security.yml and ci-pipeline.yml will not be reflected.

@tgstation-server-ci tgstation-server-ci bot added size/XXL CI Approval Required CI Pipeline execution blocked. Maintainers, apply the "CI Cleared" label to allow execution labels Feb 14, 2025
@Cyberboss Cyberboss added this to the v6.14.0 milestone Feb 15, 2025
@tgstation-server-ci tgstation-server-ci bot added CI Approval Required CI Pipeline execution blocked. Maintainers, apply the "CI Cleared" label to allow execution and removed CI Approval Required CI Pipeline execution blocked. Maintainers, apply the "CI Cleared" label to allow execution labels Feb 15, 2025
@tgstation-server-ci tgstation-server-ci bot added CI Approval Required CI Pipeline execution blocked. Maintainers, apply the "CI Cleared" label to allow execution and removed CI Approval Required CI Pipeline execution blocked. Maintainers, apply the "CI Cleared" label to allow execution labels Feb 15, 2025
@Drulikar Drulikar marked this pull request as ready for review February 15, 2025 02:41
@Drulikar Drulikar requested a review from Cyberboss as a code owner February 15, 2025 02:41
@Drulikar
Copy link
Contributor Author

@tgstation-server-ci tgstation-server-ci bot added CI Approval Required CI Pipeline execution blocked. Maintainers, apply the "CI Cleared" label to allow execution and removed CI Approval Required CI Pipeline execution blocked. Maintainers, apply the "CI Cleared" label to allow execution labels Feb 15, 2025
@Cyberboss Cyberboss self-assigned this Feb 17, 2025
mergeRequest(iid: $number) {
iid
id
notes {
Copy link
Member

Choose a reason for hiding this comment

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

Noting that we likely need to paginate any connections we're querying in the future but I'll wait for someone to complain about it

"devDependencies": {
"apollo": "^2.34.0"
},
"packageManager": "[email protected]+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
Copy link
Member

Choose a reason for hiding this comment

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

This is the wrong version but that's my fault I think. Reminder to myself to fix after merging

query GetMergeRequests($project: ID!, $numbers: [String!]!) {
project(fullPath: $project) {
mergeRequests(iids: $numbers) {
nodes {
Copy link
Member

Choose a reason for hiding this comment

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

Pointing out another connection that needs paginating eventually

@Cyberboss Cyberboss added Feature New functionality Area: Compiler With regard to managing the deployment process Dependencies Related to updating dependant libraries labels Feb 17, 2025
@tgstation-server-ci tgstation-server-ci bot added CI Approval Required CI Pipeline execution blocked. Maintainers, apply the "CI Cleared" label to allow execution and removed CI Approval Required CI Pipeline execution blocked. Maintainers, apply the "CI Cleared" label to allow execution labels Feb 17, 2025
@Drulikar Drulikar marked this pull request as draft February 18, 2025 00:23
@Drulikar Drulikar marked this pull request as ready for review February 18, 2025 04:54
@tgstation-server-ci tgstation-server-ci bot added CI Approval Required CI Pipeline execution blocked. Maintainers, apply the "CI Cleared" label to allow execution and removed CI Approval Required CI Pipeline execution blocked. Maintainers, apply the "CI Cleared" label to allow execution labels Feb 18, 2025
@tgstation-server-ci tgstation-server-ci bot removed this from the v6.14.0 milestone Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Compiler With regard to managing the deployment process CI Approval Required CI Pipeline execution blocked. Maintainers, apply the "CI Cleared" label to allow execution Dependencies Related to updating dependant libraries Feature New functionality size/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants