Skip to content

Commit

Permalink
remove githelm from config
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven-Harris committed Sep 15, 2024
1 parent 315436a commit c28e990
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
5 changes: 0 additions & 5 deletions src/modules/services/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,6 @@ export const config = `
"org": "JHADigitalCore",
"repo": "general-ledger-import-service",
"filter": "deploy"
},
{
"org": "steven-harris",
"repo": "githelm",
"filter": "deploy"
}
]
}
Expand Down
12 changes: 5 additions & 7 deletions src/modules/services/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,14 @@ export async function getPendingEnvironments(org: string, repo: string, runId: s

export async function reviewDeployment(org: string, repo: string, runId: string, envIds: number[], state: string, comment: string) {
const url = `https://api.github.com/repos/${org}/${repo}/actions/runs/${runId}/pending_deployments`;
const body = JSON.stringify({
state: state,
environment_ids: envIds,
comment: comment
});
console.log(body)
return await fetch(url, {
method: 'POST',
headers: getHeaders(),
body
body: JSON.stringify({
state: state,
environment_ids: envIds,
comment: comment
})
});

}
Expand Down

0 comments on commit c28e990

Please sign in to comment.