Skip to content

Commit

Permalink
chore : gitbroker text changed
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyadip007 committed Feb 7, 2024
1 parent 76e1853 commit be98501
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPAship Puzzle
# SPAship Git Broker

> A GitHub App built for SPAship
Expand All @@ -8,10 +8,10 @@
# Install dependencies
npm install

# Run the Puzzle for development
# Run the Git Broker for development
npm run start:dev

# Run the Puzzle for production
# Run the Git Broker for production
npm run start

# env
Expand Down
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ app
.use(responseWrapper())
.get('/liveness', liveness)
.get('/readiness', readiness)
.use('/puzzle', routes)
.use('/git-broker', routes)
.use(errorHandler());

module.exports = app;
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ console.info(`
`);

if (config.env === 'production') {
log.info(`Starting SPAship Puzzle ${pkgJSON.version} running on production`);
log.info(`Starting SPAship Git Broker ${pkgJSON.version} running on production`);
} else {
log.info(`Starting SPAship Puzzle ${pkgJSON.version} running on ${config.env}`);
log.info(`Starting SPAship Git Broker ${pkgJSON.version} running on ${config.env}`);
}

(async () => {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "SPAship Puzzle",
"name": "SPAship Git Broker",
"version": "1.0.0",
"private": true,
"description": "SPAship Puzzle",
"description": "SPAship Git Broker",
"license": "ISC",
"owner": "Soumyadip Chowdhury",
"homepage": "https://github.com/spaship/puzzle",
Expand Down
2 changes: 1 addition & 1 deletion services/github/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const githubPullRequestOnCloseAndMerge = async (payload) => {

const gitOperations = async (payload) => {
const filePath = 'spaship.yaml';
const commentBody = `## Deployed by SPAship Puzzle`;
const commentBody = `## Deployed by SPAship Git Broker`;
const newRef = `${deployment.SPECIFIER}-${uuidv4().substring(0, 5)}`;
// @internal comment on a specific commit
await commentOnGithubMergedCommit(payload, commentBody);
Expand Down
2 changes: 1 addition & 1 deletion services/github/octokit.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const createFileOnGithubRepository = async (payload, commentBody, filePath, newR
};

const alterFileOnGithubRepository = async (payload, currentContent, newRef) => {
const content = '### Deployment by SPAship Puzzle 1.0.0.';
const content = '### Deployment by SPAship Git Broker 1.0.0.';
await octokit.repos
.createOrUpdateFileContents({
owner: payload.repository.owner.login,
Expand Down
2 changes: 1 addition & 1 deletion services/gitlab/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const gitlabMergeRequestOnCloseAndMerge = async (payload) => {

const gitlabOperations = async (payload) => {
const filePath = 'spaship.yaml';
const commentBody = `## Deployed by SPAship Puzzle`;
const commentBody = `## Deployed by SPAship Git Broker`;
const projectId = payload.project.id;
const newRef = `${deployment.SPECIFIER}-${uuidv4().substring(0, 5)}`;
const targetBranch = payload.object_attributes.target_branch;
Expand Down

0 comments on commit be98501

Please sign in to comment.