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

fix: pull-request.yml to ignore actions on ignore-sensitive-files-pr and Introspection workflow #2391

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
exit 1

Check-Sensitive-Files:
if: ${{ github.actor != 'dependabot[bot]' }}
if: ${{ github.actor != 'dependabot[bot]' && !contains(github.event.pull_request.labels.*.name, 'ignore-sensitive-files-pr') }}
varshith257 marked this conversation as resolved.
Show resolved Hide resolved
name: Checks if sensitive files have been changed without authorization
runs-on: ubuntu-latest
steps:
Expand Down
46 changes: 0 additions & 46 deletions src/GraphQl/Mutations/OrganizationMutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,34 +57,6 @@ export const REMOVE_SAMPLE_ORGANIZATION_MUTATION = gql`
* @returns The created direct chat object.
*/

export const CREATE_GROUP_CHAT = gql`
mutation createGroupChat(
$userIds: [ID!]!
$organizationId: ID!
$title: String!
) {
createGroupChat(
data: {
userIds: $userIds
organizationId: $organizationId
title: $title
}
) {
_id
}
}
`;

export const CREATE_DIRECT_CHAT = gql`
mutation createDirectChat($userIds: [ID!]!, $organizationId: ID) {
createDirectChat(
data: { userIds: $userIds, organizationId: $organizationId }
) {
_id
}
}
`;

export const CREATE_CHAT = gql`
mutation createChat(
$userIds: [ID!]!
Expand Down Expand Up @@ -140,24 +112,6 @@ export const SEND_MESSAGE_TO_CHAT = gql`
}
`;

export const CREATE_MESSAGE_CHAT = gql`
mutation createMessageChat($receiver: ID!, $messageContent: String!) {
createMessageChat(data: { receiver: $receiver, message: $messageContent }) {
_id
createdAt
message
languageBarrier
receiver {
_id
}
sender {
_id
}
updatedAt
}
}
`;

export const MESSAGE_SENT_TO_CHAT = gql`
subscription messageSentToChat($userId: ID!) {
messageSentToChat(userId: $userId) {
Expand Down
1 change: 0 additions & 1 deletion src/GraphQl/Mutations/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,6 @@ export {
// Changes the role of a user in an organization
export {
ADD_CUSTOM_FIELD,
CREATE_DIRECT_CHAT,
CREATE_SAMPLE_ORGANIZATION_MUTATION,
JOIN_PUBLIC_ORGANIZATION,
PLUGIN_SUBSCRIPTION,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ import styles from './CreateDirectChat.module.css';
import type { ApolloQueryResult } from '@apollo/client';
import { useMutation, useQuery } from '@apollo/client';
import useLocalStorage from 'utils/useLocalstorage';
import {
CREATE_CHAT,
CREATE_DIRECT_CHAT,
} from 'GraphQl/Mutations/OrganizationMutations';
import { CREATE_CHAT } from 'GraphQl/Mutations/OrganizationMutations';
import Table from '@mui/material/Table';
import TableCell, { tableCellClasses } from '@mui/material/TableCell';
import TableContainer from '@mui/material/TableContainer';
Expand Down
Loading