Skip to content

Commit

Permalink
Improvement: Renamed branch master to main
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmhtr committed Dec 12, 2024
1 parent 3b54903 commit e92c081
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file.
- Deprecated the kebab case options: `publish-as`, `disable-links`, `sort-by`, `slack-webhook`, `slack-channel` and `teams-webhook`. Now you need to use the camel case format: `publishAs`, `disableLinks`, `sortBy`, `slackWebhook`, `slackChannel` and `teamsWebhook`.`
- The values for `sortBy` have changed. `REVIEWS`, `TIME`, `COMMENTS` are invalid. Now you need to use the full name of the stat that will be used for sorting, for example: `totalComments`, `timeToReview`...
- The JSON output for the action and the JSON payload for the webhook have changed. Check the new format in the [webhook documentation](/docs/webhook.md).
- Renamed branch `master` to `main`.

## [2.15.2] - 2024-12-01
### Fixed
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Just add this action to one of your [workflow files](https://docs.github.com/en/

```yml
- name: Run pull request stats
uses: flowwer-dev/pull-request-stats@master
uses: flowwer-dev/pull-request-stats@main
```
If you are getting an empty table or an error, check the [troubleshooting section](#troubleshooting).
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Run pull request stats
uses: flowwer-dev/pull-request-stats@master
uses: flowwer-dev/pull-request-stats@main
```

This config will:
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Run pull request stats
uses: flowwer-dev/pull-request-stats@master
uses: flowwer-dev/pull-request-stats@main
with:
token: ${{ secrets.ADD_A_PERSONAL_ACCESS_TOKEN }}
organization: 'piedpiper'
Expand Down Expand Up @@ -197,7 +197,7 @@ Check the guide for the tool you want to integrate:
pull-requests: write
steps:
- name: Run pull request stats
uses: flowwer-dev/pull-request-stats@master
uses: flowwer-dev/pull-request-stats@main
```
</details>

Expand All @@ -215,7 +215,7 @@ Check the guide for the tool you want to integrate:
pull-requests: write
steps:
- name: Run pull request stats
uses: flowwer-dev/pull-request-stats@master
uses: flowwer-dev/pull-request-stats@main
```
</details>

Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49526,7 +49526,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"name":"mixpanel","description":"A si
/***/ ((module) => {

"use strict";
module.exports = /*#__PURE__*/JSON.parse('{"name":"pull-request-stats","version":"2.15.2","description":"Github action to print relevant stats about Pull Request reviewers","main":"dist/index.js","type":"commonjs","scripts":{"build":"eslint src && ncc build src/index.js -o dist -a","test":"jest","lint":"eslint ./"},"keywords":[],"author":"Manuel de la Torre","license":"MIT","jest":{"testEnvironment":"node","testMatch":["**/?(*.)+(spec|test).[jt]s?(x)"]},"dependencies":{"@actions/core":"^1.11.1","@actions/github":"^6.0.0","axios":"^1.7.9","humanize-duration":"^3.32.1","i18n-js":"^3.9.2","jsurl":"^0.1.5","lodash.get":"^4.4.2","markdown-table":"^2.0.0","mixpanel":"^0.18.0"},"devDependencies":{"@eslint/eslintrc":"^3.2.0","@eslint/js":"^9.16.0","@vercel/ncc":"^0.38.3","eslint":"^9.16.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.31.0","eslint-plugin-jest":"^28.9.0","globals":"^15.13.0","jest":"^29.7.0"},"funding":"https://github.com/sponsors/manuelmhtr","packageManager":"[email protected]"}');
module.exports = /*#__PURE__*/JSON.parse('{"name":"pull-request-stats","version":"3.0.0","description":"Github action to print relevant stats about Pull Request reviewers","main":"dist/index.js","type":"commonjs","scripts":{"build":"eslint src && ncc build src/index.js -o dist -a","test":"jest","lint":"eslint ./"},"keywords":[],"author":"Manuel de la Torre","license":"MIT","jest":{"testEnvironment":"node","testMatch":["**/?(*.)+(spec|test).[jt]s?(x)"]},"dependencies":{"@actions/core":"^1.11.1","@actions/github":"^6.0.0","axios":"^1.7.9","humanize-duration":"^3.32.1","i18n-js":"^3.9.2","jsurl":"^0.1.5","lodash.get":"^4.4.2","markdown-table":"^2.0.0","mixpanel":"^0.18.0"},"devDependencies":{"@eslint/eslintrc":"^3.2.0","@eslint/js":"^9.16.0","@vercel/ncc":"^0.38.3","eslint":"^9.16.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.31.0","eslint-plugin-jest":"^28.9.0","globals":"^15.13.0","jest":"^29.7.0"},"funding":"https://github.com/sponsors/manuelmhtr","packageManager":"[email protected]"}');

/***/ }),

Expand Down
2 changes: 1 addition & 1 deletion docs/slack.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Run pull request stats
uses: flowwer-dev/pull-request-stats@master
uses: flowwer-dev/pull-request-stats@main
with:
slackChannel: '#mystatschannel'
slackWebhook: 'https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX'
Expand Down
2 changes: 1 addition & 1 deletion docs/teams.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Run pull request stats
uses: flowwer-dev/pull-request-stats@master
uses: flowwer-dev/pull-request-stats@main
with:
teamsWebhook: 'https://abcXXX.webhook.office.com/webhookb2/...'
# teamsWebhook: ${{ secrets.TEAMS_WEBHOOK }} You may want to store this value as a secret.
Expand Down
2 changes: 1 addition & 1 deletion docs/webhook.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Run pull request stats
uses: flowwer-dev/pull-request-stats@master
uses: flowwer-dev/pull-request-stats@main
with:
repositories: 'piedpiper/repo1,piedpiper/repo2'
webhook: 'https://hooks.zapier.com/hooks/catch/123456/XXXXXXXX'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pull-request-stats",
"version": "2.15.2",
"version": "3.0.0",
"description": "Github action to print relevant stats about Pull Request reviewers",
"main": "dist/index.js",
"type": "commonjs",
Expand Down

0 comments on commit e92c081

Please sign in to comment.