Skip to content

Commit

Permalink
[WIP] Updating repo, code update pending
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurvasconcelos committed Jul 5, 2023
1 parent bbd4c93 commit e0825ba
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 23 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Tamim Khan
Copyright (c) 2023 Arthur Vasconcelos

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
19 changes: 8 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* TODO: UPDATE CODE AND README
**/




# Pull Request Updater

![Update Pull Request](https://github.com/tzkhan/pr-update-action/workflows/Update%20Pull%20Request/badge.svg)
Expand Down Expand Up @@ -50,8 +57,6 @@ Create a workflow yaml file (for e.g. `.github/workflows/update-pr.yml`). See [C

## Example

So the following yaml

```
name: "Update Pull Request"
on: pull_request
Expand All @@ -71,12 +76,4 @@ jobs:
[Link to %headbranch%](https://url/to/browse/ticket/%headbranch%)
body-update-action: 'suffix'
body-uppercase-base-match: false
```

produces this effect... :point_down:

#### before:
![pr before](img/pr-before.png)

#### after:
![pr after](img/pr-after.png)
```
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "Pull Request Updater GitHub Action"
description: "GitHub Action that updates a pull request with information extracted from branch name"
author: "Tamim Khan"
author: "Arthur Vasconcelos"
runs:
using: "node12"
main: "dist/index.js"
Expand Down
Binary file removed img/pr-after.png
Binary file not shown.
Binary file removed img/pr-before.png
Binary file not shown.
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
{
"name": "pr-update-action",
"version": "2.0.0",
"version": "1.0.0",
"description": "PR Update GitHub Action",
"main": "index.js",
"main": "dist/index.js",
"scripts": {
"build": "ncc build index.js --out dist",
"lint": "eslint index.js",
"test": "eslint index.js && jest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tzkhan/pr-update-action.git"
"url": "git+https://github.com/kognity/pr-update-action.git"
},
"keywords": [
"GitHub",
"Actions",
"PullRequest"
],
"author": "Tamim Khan",
"author": "Arthur Vasconcelos",
"license": "MIT",
"bugs": {
"url": "https://github.com/tzkhan/pr-update-action/issues"
"url": "https://github.com/kognity/pr-update-action/issues"
},
"homepage": "https://github.com/tzkhan/pr-update-action/#readme",
"homepage": "https://github.com/kognity/pr-update-action/#readme",
"dependencies": {
"@actions/core": "^1.2.6",
"@actions/github": "^4.0.0"
"@actions/core": "^1.10.0",
"@actions/github": "^5.1.1"
},
"devDependencies": {
"eslint": "^6.3.0",
"jest": "^24.9.0"
"eslint": "^8.44.0",
"jest": "^29.6.0"
}
}

0 comments on commit e0825ba

Please sign in to comment.