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

CLOUDP-278929: Send a remind if an API version is approching the release date #260

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

andreaangiolillo
Copy link
Collaborator

@andreaangiolillo andreaangiolillo commented Oct 17, 2024

Proposed changes

This PR introduces a new GitHub Action that runs daily to verify that the API versions listed in the versions.json file in the development environment are not nearing their release dates (less than three weeks away). If there are any upcoming API versions scheduled for release, the action performs the following steps:

  • Check if there is already a Jira ticket for the API version
    • If there is already a ticket, the action will stop here
  • Create a jira ticket
  • Send a slack notification to the team channel.

Jira ticket: CLOUDP-278929

Note

The only way to test the action is by running it after the merge, so I will open follow-up PRs to fix possible bugs.

@andreaangiolillo andreaangiolillo marked this pull request as ready for review October 17, 2024 17:30
@andreaangiolillo andreaangiolillo requested a review from a team as a code owner October 17, 2024 17:30
This commit update the logic in the create_jira_ticket.sh to check for a ticket with the same title before creating the ticket
URL="https://raw.githubusercontent.com/mongodb/openapi/dev/openapi/v2/versions.json"

# Fetch the version.json file
response=$(curl -s "${URL}")
Copy link
Collaborator

Choose a reason for hiding this comment

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

wondering what will be our plan long-term with .sh logic in our platform since in the past it has proven itself difficult to maintain, perharps we can add unit tests here like it was explored with the postman project? OK to make it in a follow-up PR

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.

3 participants