Skip to content
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/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
push: false
context: .
load: true
tags: github-graphql-client:latest
tags: github-commit-sign:latest

- name: Run Docker tests
env:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
jobs:
publish:
runs-on: ubuntu-20.04
permissions:
contents: read
id-token: write

steps:
- name: Clone repo
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ You can use this module as a GitHub Action. It is a Docker-based action.
```yaml
# Print help
- name: Print graphQL client help
uses: pirafrank/github-graphql-client@v0
uses: pirafrank/github-commit-sign@v0
with:
args: "--help"
```
Expand All @@ -132,7 +132,7 @@ To commit to other repositories, you may need to override the default `GITHUB_TO
# Commit changes...
- name: Commit changes
id: commit_changes
uses: pirafrank/github-graphql-client@v0
uses: pirafrank/github-commit-sign@v0
if: ${{ vars.RUN_COMMIT_CHANGES == 'true' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pirafrank/github-graphql-client",
"version": "0.1.3",
"name": "@pirafrank/github-commit-sign",
"version": "0.1.4",
"description": "Simple GitHub client to commit via their graphql APIs",
"main": "index.js",
"private": false,
Expand All @@ -12,7 +12,7 @@
"test": "jest --runInBand",
"test:index": "jest --runInBand --testPathPattern=index.test.js",
"test:github": "jest --runInBand --testPathPattern=github.test.js",
"docker:build": "docker build -t github-graphql-client -f Dockerfile .",
"docker:build": "docker build -t github-commit-sign -f Dockerfile .",
"docker:test": "./test.docker.sh",
"docker:all": "npm run docker:build && npm run docker:test"
},
Expand All @@ -21,18 +21,20 @@
"github",
"graphql",
"client",
"commit"
"commit",
"signed",
"sign"
],
"author": "pirafrank",
"url": "https://fpira.com/",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/pirafrank/github-graphql-client.git"
"url": "git+https://github.com/pirafrank/github-commit-sign.git"
},
"homepage": "https://github.com/pirafrank/github-graphql-client",
"homepage": "https://github.com/pirafrank/github-commit-sign",
"bugs": {
"url": "https://github.com/pirafrank/github-graphql-client/issues"
"url": "https://github.com/pirafrank/github-commit-sign/issues"
},
"dependencies": {
"graphql": "^16.8.1",
Expand Down
10 changes: 5 additions & 5 deletions test.docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ docker run --rm \
-v ./dummy:/app/dummy \
-w /app \
-e DEBUG \
github-graphql-client:latest "--help"
github-commit-sign:latest "--help"

echo "************** version *****************"

Expand All @@ -18,7 +18,7 @@ docker run --rm \
-v ./dummy:/app/dummy \
-w /app \
-e DEBUG \
github-graphql-client:latest "-v"
github-commit-sign:latest "-v"

# commands below need GITHUB_TOKEN to be set.
if [[ -f .env.sh ]]; then
Expand All @@ -39,7 +39,7 @@ docker run --rm \
-w /app \
-e GITHUB_TOKEN \
-e DEBUG \
github-graphql-client:latest commit -o pirafrank -r 'test-repo' -c dummy/file1.txt -m 'this is a commit msg'
github-commit-sign:latest commit -o pirafrank -r 'test-repo' -c dummy/file1.txt -m 'this is a commit msg'

echo "************** all separated *****************"

Expand All @@ -49,7 +49,7 @@ docker run --rm \
-w /app \
-e GITHUB_TOKEN \
-e DEBUG \
github-graphql-client:latest commit -o pirafrank -r 'test-repo' -b main -c dummy/file1.txt -m onewordcommitmsg
github-commit-sign:latest commit -o pirafrank -r 'test-repo' -b main -c dummy/file1.txt -m onewordcommitmsg

echo "************** all as one arg *****************"

Expand All @@ -61,4 +61,4 @@ docker run --rm \
-w /app \
-e GITHUB_TOKEN \
-e DEBUG \
github-graphql-client:latest "commit -o pirafrank -r "test-repo" -b main -c dummy/file1.txt -m 'this is a commit msg'"
github-commit-sign:latest "commit -o pirafrank -r "test-repo" -b main -c dummy/file1.txt -m 'this is a commit msg'"