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

Refactoring #239

Merged
merged 32 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
806fbc9
Switch to biome
lehmanmj Jan 8, 2025
563cb9c
add tsconfig and set engine version
kellertk Jan 8, 2025
2eef6b5
convert utils to typescript
kellertk Jan 8, 2025
98bc9f1
remove yarn.lock
kellertk Jan 8, 2025
e30dea0
Convert github.js to typescript (mostly?)
lehmanmj Jan 8, 2025
658878d
Modify github.ts to import Input type from entrypoint.ts
lehmanmj Jan 9, 2025
c340638
Translated entrypoint.js
alikulka Jan 9, 2025
c6ad69d
Merge branch 'refactoring' of https://github.com/aws-actions/stale-is…
alikulka Jan 9, 2025
e6da0c8
Fix syntax errors
lehmanmj Jan 9, 2025
4d0b9e2
Updated entrypoint.ts
alikulka Jan 9, 2025
91216e1
Merge branch 'refactoring' of https://github.com/aws-actions/stale-is…
lehmanmj Jan 9, 2025
5c6fe2d
Fix function signature in github.ts
lehmanmj Jan 9, 2025
751d3c4
Merge branch 'refactoring' of https://github.com/aws-actions/stale-is…
lehmanmj Jan 9, 2025
4be382d
Replace redundant type definitions with imports
lehmanmj Jan 9, 2025
0b510e6
Changes made to entrypoint.ts after resolving issues from PR
alikulka Jan 9, 2025
91854fc
Merge branch 'refactoring' of https://github.com/aws-actions/stale-is…
alikulka Jan 9, 2025
142f2bc
remove old js files
kellertk Jan 9, 2025
6c2d3a4
update dependencies
kellertk Jan 9, 2025
5567aa9
add initial test framework
kellertk Jan 9, 2025
8d6e9c2
add build system
kellertk Jan 10, 2025
7c02302
Added entrypoint.test.ts
alikulka Jan 10, 2025
3743d06
complete utils test
kellertk Jan 10, 2025
d6c8f89
update tests and minor fixes
kellertk Jan 12, 2025
9425580
Added vitest coverage config
alikulka Jan 13, 2025
6fd0d4c
Trying to add case where ancient issue has enough upvotes
lehmanmj Jan 13, 2025
b7058eb
Added tests for core.debug() in processIssues()
alikulka Jan 13, 2025
f280dfa
Fix bugs in reactions array and reaction counting
lehmanmj Jan 14, 2025
34da891
Add test for ancient issue with sufficient upvotes
lehmanmj Jan 14, 2025
2b09933
Added tests for entrypoint.ts for coverage
alikulka Jan 14, 2025
db1d157
Added tests for entrypoint.ts for coverage
alikulka Jan 14, 2025
937997b
Fixed conflicts in entrypoint.ts
alikulka Jan 14, 2025
9dd1b9b
add github workflow for dist
kellertk Jan 15, 2025
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
17 changes: 0 additions & 17 deletions .eslintrc.yml

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/package-dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: Update dist files on push to main
on:
push:
branches:
- main
paths-ignore:
- 'dist/**'
workflow_dispatch:

jobs:
package:
name: Package dist files
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.ref_name }}
persist-credentials: false
- name: Package
run: |
npm ci
npm run test
npm run package
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-west-2
role-to-assume: ${{ secrets.SECRETS_AWS_PACKAGING_ROLE_TO_ASSUME }}
role-duration-seconds: 900
role-session-name: ${{ github.run_id }}
- name: Get git credentials
uses: aws-actions/aws-secretsmanager-get-secrets@v2
with:
parse-json-secrets: true
secret-ids: |
OSDS,arn:aws:secretsmanager:us-west-2:206735643321:secret:github-aws-sdk-osds-automation-gebs9n
- name: Commit dist files to main
run: |
echo "::add-mask::${{ env.OSDS_ACCESS_TOKEN }}"
git config --global user.email "[email protected]"
git config --global user.name "github-aws-sdk-osds-automation"
git remove set-url origin https://${{ env.OSDS_ACCESS_TOKEN }}@github.com/aws-actions/stale-issue-cleanup.git
git add dist
git commit -m "chore: update dist" || echo "No changes to commit"
git push --force origin
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
.env
node_modules/
coverage/
dist/*
!dist/index.js
32 changes: 0 additions & 32 deletions .mergify.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .prettierrc.json

This file was deleted.

10 changes: 0 additions & 10 deletions Dockerfile

This file was deleted.

35 changes: 35 additions & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"formatter": {
"indentStyle": "space",
"lineWidth": 120,
"indentWidth": 2,
"lineEnding": "lf",
"enabled": true,
},
"linter": {
"enabled": true,
"rules": {
"performance": {
"noDelete": "off",
},
"complexity": {
"noExtraBooleanCast": "off",
}
},
},
"javascript": {
"formatter": {
"trailingCommas": "all",
"jsxQuoteStyle": "double",
"quoteStyle": "single",
"bracketSpacing": true,
"arrowParentheses": "always",
},
},
"json": {
"formatter": {
"trailingCommas": "all",
},
},
}

9 changes: 9 additions & 0 deletions dist/index.js

Large diffs are not rendered by default.

Loading
Loading