-
Notifications
You must be signed in to change notification settings - Fork 92
Closes #2920 add copilot instructions #2983
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
Open
jeffreyad
wants to merge
38
commits into
main
Choose a base branch
from
2920-add-copilot-instructions
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
a4fa8a3
#2920 add copilot instructions
jeffreyad 461c728
#2920 update sync options
jeffreyad f0ead4e
#2920 add push trigger for workflow
jeffreyad 9f157cd
chore: update GitHub Copilot instructions from admiraldev
actions-user ff89ed4
#2920 run styler
jeffreyad 16fa669
Merge branch '2920-add-copilot-instructions' of https://github.com/ph…
jeffreyad d81e653
chore: update GitHub Copilot instructions from admiraldev
actions-user 520639b
Merge branch 'main' into 2920-add-copilot-instructions
jeffreyad 903cc15
chore: update GitHub Copilot instructions from admiraldev
actions-user d4fb32a
#2920 add generic agent instructions
jeffreyad d6ec19f
chore: update AI assistant context from admiraldev
actions-user 877b651
#2920 update agent script + styler
jeffreyad 540d1ae
chore: update AI assistant context from admiraldev
actions-user 8ce023b
#2920 fix agent script
jeffreyad d8a1e92
chore: update AI assistant context from admiraldev
actions-user 56c446c
#2920 styler
jeffreyad 1b7bfde
chore: update AI assistant context from admiraldev
actions-user bb9e9e6
Merge branch 'main' into 2920-add-copilot-instructions
jeffreyad 556e006
chore: update AI assistant context from admiraldev
actions-user 89a6eee
Merge branch '2920-add-copilot-instructions' of https://github.com/ph…
jeffreyad 4c8514c
chore: update AI assistant context from admiraldev
actions-user b0bdbad
#2920 rename AGENT to AGENTS and add to .Rbuildignore
jeffreyad 61ea857
#2920 update workflow to create PR
jeffreyad 235378d
#2920 remove date generated so it won't trigger changes
jeffreyad eb6e527
Remove relative links
jeffreyad 2cd4b30
styler
jeffreyad 3e8eda9
Update .Rbuildignore
jeffreyad 45198c2
Update AGENTS.md
jeffreyad 787088b
Prepare to move to admiralci
jeffreyad d611568
Add workflow to call admiralci
jeffreyad 484549b
Update workflow trigger
jeffreyad 90d0bfe
Merge branch 'main' into 2920-add-copilot-instructions
jeffreyad ded91bc
Temporarily add push trigger
jeffreyad 316bb59
Update paths
jeffreyad 735818c
Delete files to regenerate from admiralci
jeffreyad e158645
Push change
jeffreyad f4904d3
add admiralci ref
jeffreyad fdfb01a
Update schedule
jeffreyad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # GitHub Copilot Instructions - admiral Development | ||
|
|
||
| **Auto-generated:** 2026-02-23 19:17:54 | ||
| **Optimized for:** GitHub Copilot code completion | ||
| **Complete guidelines:** See `AGENTS.md` files for full context | ||
|
|
||
| ⚠️ **DO NOT EDIT MANUALLY** - Run `source('.github/scripts/sync_admiraldev_copilot.R')` to update | ||
|
|
||
| ## Admiral Code Completion Patterns | ||
|
|
||
| ### Function Names (verb_object_detail) | ||
| - `derive_var_base()` - Single variable derivation | ||
| - `derive_vars_merged()` - Multiple variables from merge | ||
| - `derive_param_tte()` - Parameter derivation | ||
| - `compute_age_years()` - Vector computation | ||
| - `assert_data_frame()` - Input validation | ||
|
|
||
| ### Argument Patterns | ||
| Standard admiral function signature: | ||
| - `dataset` - Always first argument | ||
| - `by_vars = exprs(...)` - Grouping variables | ||
| - `order = exprs(...)` - Sorting expressions | ||
| - `new_var = VAR` - New variable (symbol) | ||
| - `filter = PARAM == "VALUE"` - Filtering expression | ||
|
|
||
| ### Common Expressions | ||
| - `subject_keys = exprs(STUDYID, USUBJID)` | ||
| - `by_vars = exprs(USUBJID, PARAMCD)` | ||
| - `order = exprs(AVISITN, desc(ADY))` | ||
| - `filter = PARAMCD == "TEMP"` | ||
|
|
||
| ### Test Patterns | ||
| - Use `tribble()` for test data | ||
| - `expect_true("DERIVED" %in% names(result))` | ||
| - `expect_false(is.grouped_df(result))` | ||
| - `expect_error(..., "Required variable.*missing")` | ||
|
|
||
| --- | ||
|
|
||
| *This file is optimized for GitHub Copilot code completion. For complete admiral development guidelines, see `AGENTS.md` and `tests/testthat/AGENTS.md`.* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| name: Create the AGENTS.md | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - 2920-add-copilot-instructions | ||
| paths: | ||
| - '.github/workflows/sync-admiralci-agents.yml' | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: '0 8 6 * *' | ||
|
|
||
| jobs: | ||
| create-agents-md: | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| uses: pharmaverse/admiralci/.github/workflows/create-agents-md.yml@231-add-workflow-to-create-ai-agentmd-files | ||
| with: | ||
| package_name: admiral | ||
| target_branch: 2920-add-copilot-instructions | ||
| admiralci_ref: 231-add-workflow-to-create-ai-agentmd-files |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.