diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..a1e3d35 --- /dev/null +++ b/.env.example @@ -0,0 +1,3 @@ +APP_ID=your_app_id +PRIVATE_KEY=path_to_your_private_key.pem +WEBHOOK_SECRET=your_webhook_secret \ No newline at end of file diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml deleted file mode 100644 index d804c0f..0000000 --- a/.github/workflows/node.js.yml +++ /dev/null @@ -1,45 +0,0 @@ -# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs - -name: Node.js Dev - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Use Node.js 18.x - uses: actions/setup-node@v3 - with: - node-version: 18.x - cache: 'npm' - - run: npm ci - - run: npm run build - - - name: upload GitHub Pages site - uses: actions/upload-pages-artifact@v1 - with: - path: ./lib - token: ${{ github.token }} - - deploy: - needs: build - permissions: - pages: write # to deploy to Pages - id-token: write # to verify the deployment originates from an appropriate source - environment: - name: github_pages - url: ${{ steps.deployment.outputs.page_url }} - # Specify runner + deployment step - runs-on: ubuntu-latest - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v1 diff --git a/README.md b/README.md index 3f62acc..f011588 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,10 @@ # Nexos Bot This is a GitHub App built with [Probot](https://github.com/probot/probot) that automates various GitHub workflows. - -[![Node.js Dev](https://github.com/nexoscreator/bot-nexos-app/actions/workflows/node.js.yml/badge.svg)](https://github.com/nexoscreator/bot-nexos-app/actions/workflows/node.js.yml) [![CI](https://github.com/nexoscreator/bot-nexos-app/actions/workflows/main.yml/badge.svg)](https://github.com/nexoscreator/bot-nexos-app/actions/workflows/main.yml) ## Install -First [Connect bot](https://github.com/apps/nexos-bot) - ## Setup 1. Install dependencies: diff --git a/package.json b/package.json index 62db9c4..a13a35f 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { - "name": "nexos-bot-app", + "name": "bot-github-starter", "version": "0.0.2", "private": true, "description": "A Nexos Automation Bot", "author": "Nexos Creator", "license": "ISC", "main": "./lib/index.js", - "homepage": "https://github.com/nexoscreator/bot-nexos-app", + "homepage": "https://github.com/nexoscreator/bot-nexos-github-starter", "keywords": [ "probot", "github", @@ -33,4 +33,4 @@ "node": ">= 18" }, "type": "module" -} +} \ No newline at end of file