This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dotenv from 'dotenv'; | |
import type { CodegenConfig } from '@graphql-codegen/cli'; | |
import { AuthService } from './auth.service'; | |
import { AUTH_CONFIG } from './auth.config'; | |
dotenv.config(); | |
const authService = new AuthService(AUTH_CONFIG); | |
const getConfig = async (): Promise<CodegenConfig> => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Check if the Merge Request is Draft..." | |
if [[ "$CI_MERGE_REQUEST_TITLE" =~ "Draft" ]]; then | |
echo "The Merge Request is in draft. No JIRA action will be taken." | |
exit 0 | |
fi | |
echo "Check if the Merge Request title contains a JIRA ticket number..." | |
if [[ "$CI_MERGE_REQUEST_TITLE" =~ \[(TT-[0-9]+)\] ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Verifying if the Merge Request title contains a JIRA ticket number..." | |
if [[ "$CI_MERGE_REQUEST_TITLE" =~ \[(TT-[0-9]+)\] ]]; then | |
JIRA_ISSUE="${BASH_REMATCH[1]}" | |
echo "JIRA ticket number found : ${JIRA_ISSUE}" | |
else | |
echo "No JIRA ticket number was found in the Merge Request title." | |
exit 0 # Do nothing if no ticket is found | |
fi |