Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Issue Closer action updates #2107

Merged
merged 4 commits into from
Jun 23, 2023
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
30 changes: 30 additions & 0 deletions .github/actions/issue_closer/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
}
}
12 changes: 12 additions & 0 deletions .github/actions/issue_closer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,15 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
```

## Contributing

- Clone the repo containing the action
- Make sure you have Node.js (the action was originally tested with version 18 LTS) and Yarn installed
- In the directory containing this `README.md` file and the `package.json` file, run `yarn install`
- Make your desired changes to `index.js`
- note: ignore `dist/index.js`, as it is only intended for use by GitHub Actions
- Test your changes with `node index.js` and/or `yarn run test`
- Lint your changes with `yarn run lint`
- Regenerate the distribution file `dist/index.js` by running `yarn run package`
- Submit a PR with your changes
2 changes: 1 addition & 1 deletion .github/actions/issue_closer/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ inputs:
required: true
runs:
using: 'node16'
main: 'index.js'
main: 'dist/index.js'
Loading