8000 Update to use a standard organization variable · github/platform-samples@aff3f7e · GitHub
[go: up one dir, main page]

Skip to content

Commit aff3f7e

Browse files
committed
Update to use a standard organization variable
I noticed from another PR that we are using `ORG_NAME` for generic organization variables. This commit updates all the queries to use `ORG_NAME` instead of `ORGANIZATION_SLUG` to be consistent with the rest of the codebase.
1 parent 0862276 commit aff3f7e

8 files changed

+8
-8
lines changed

graphql/queries/org-branches-and-commits-by-repository.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
query getCommitsByBranchByRepo {
2-
organization(login: "ORGANIZATION_SLUG") {
2+
organization(login: "ORG_NAME") {
33
name
44
repository(name: "REPO_NAME") {
55
name

graphql/queries/org-get-ip-allow-list.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# - The IP allow list for GitHub Apps enabled setting
66

77
query GetOrganizationIPAllowList {
8-
organization(login: "ORGANIZATION_SLUG") {
8+
organization(login: "ORG_NAME") {
99
owner_id: id
1010
organization_slug: login
1111
is_ip_allow_list_enabled: ipAllowListEnabledSetting

graphql/queries/org-members-by-team.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
query getMembersByTeam {
2-
organization(login: "ORGANIZATION_SLUG") {
2+
organization(login: "ORG_NAME") {
33
id
44
name
55
teams(first: 1, query: "TEAM_NAME") {

graphql/queries/org-pr-merged-info-by-repository.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
query getRepoMergedPRDetails {
2-
repository(owner: "ORGANIZATION_SLUG, name: "REPO_NAME") {
2+
repository(owner: "ORG_NAME, name: "REPO_NAME") {
33
pullRequests(first: 100, states: MERGED) {
44
pageInfo {
55
endCursor #use this value in the pullRequests argument list

graphql/queries/org-repos-fragment-directive-2.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
query orgInfo($showRepoInfo: Boolean!) {
2-
organization(login: "ORGANIZATION_SLUG") {
2+
organization(login: "ORG_NAME") {
33
...orgFrag
44
}
55
}

graphql/queries/org-repos-fragment-directive.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
query orgInfo($showRepoInfo: Boolean!) {
2-
organization(login: "ORGANIZATION_SLUG") {
2+
organization(login: "ORG_NAME") {
33
login
44
name
55
repositories @include(if: $showRepoInfo) {

graphql/queries/repo-get-all-branches.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
query getExistingRepoBranches {
2-
organization(login: "ORGANIZATION_SLUG") {
2+
organization(login: "ORG_NAME") {
33
repository(name: "REPO_NAME") {
44
id
55
name

graphql/queries/repos-get-last-issue-comment.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
query getRepoIssue {
2-
repository(owner: "ORGANIZATION_SLUG", name: "REPO_NAME") {
2+
repository(owner: "ORG_NAME", name: "REPO_NAME") {
33
issues(last: 1) {
44
edges {
55
node {

0 commit comments

Comments
 (0)
0