Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
dc88da1
Feed issue title as display name to GPT
github-actions[bot] Nov 5, 2023
502bf1e
sanitize issue title
github-actions[bot] Nov 5, 2023
d7cb741
Mention new itiative issue author in PR title
github-actions[bot] Nov 5, 2023
80836b3
Add dev dependency for @octokit/rest
github-actions[bot] Nov 5, 2023
5efd45f
fix issue author env var
github-actions[bot] Nov 5, 2023
c04c655
allow forced PR generation
github-actions[bot] Nov 5, 2023
63a7615
Improve comment message
github-actions[bot] Nov 5, 2023
8c5194a
add some test auto pr github-script mocked data
github-actions[bot] Nov 5, 2023
cfb998a
fs - move to async
github-actions[bot] Nov 5, 2023
b722da3
minor rename
github-actions[bot] Nov 5, 2023
7c3a8e5
minor rename
github-actions[bot] Nov 5, 2023
b9559b9
minor refactor - exctract git operations to method
github-actions[bot] Nov 5, 2023
8eca4ce
remove redundant initiative JSON properties
github-actions[bot] Nov 5, 2023
c44a7d7
improved shell command execution
github-actions[bot] Nov 5, 2023
d991d11
Find existing link in all existing categories
github-actions[bot] Nov 5, 2023
0270963
Fix link file relative path
github-actions[bot] Nov 5, 2023
e7266fe
fix existing initiative detection
github-actions[bot] Nov 5, 2023
03ea5f3
Introduce Async suffix for async methods
github-actions[bot] Nov 5, 2023
672768a
minor comment markdown fix
github-actions[bot] Nov 5, 2023
5b0b45f
minot comment markdown fix
github-actions[bot] Nov 5, 2023
bf95e3a
Use glob
github-actions[bot] Nov 5, 2023
2f75b8c
glob - case-insensitive JSON extension pattern
github-actions[bot] Nov 5, 2023
725ceec
replace glob with custom recursive iterator
github-actions[bot] Nov 5, 2023
71b4852
shell exec - minor logging fix
github-actions[bot] Nov 5, 2023
0225782
fix issue author
github-actions[bot] Nov 5, 2023
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
4 changes: 4 additions & 0 deletions .github/workflows/initiative-auto-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
uses: nick-fields/retry@v2
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_BODY: ${{ github.event.issue.body }}
with:
timeout_minutes: 5
Expand All @@ -39,6 +40,9 @@ jobs:

- name: Generate PR
uses: actions/github-script@v6
env:
ISSUE_AUTHOR: ${{ github.event.issue.user.login }}
ISSUE_TITLE: ${{ github.event.issue.title }}
with:
script: |
const script = require(process.env.GITHUB_WORKSPACE + '/scripts/generatePullRequestForNewInitiative.js')
Expand Down
245 changes: 225 additions & 20 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"remark-html": "^16.0.1"
},
"devDependencies": {
"@octokit/rest": "^20.0.2",
"@trivago/prettier-plugin-sort-imports": "^4.2.1",
"@types/lunr": "^2.3.6",
"@types/mixpanel-browser": "^2.47.4",
Expand Down
Loading