Skip to content

Commit 72a0cf2

Browse files
authored
Merge pull request #18 from UCD-SERG/copilot/add-submodule-macros
Add `macros` submodule, open PR in d-morrison/macros, and checkout submodule in Copilot setup
2 parents 55bbd77 + c096d06 commit 72a0cf2

6 files changed

Lines changed: 25 additions & 4 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
# but we need it for any repository-specific setup
4141
- name: Checkout code
4242
uses: actions/checkout@v4
43+
with:
44+
submodules: true
4345

4446
# Install system dependencies required for R packages
4547
- name: Install system dependencies

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "macros"]
2+
path = macros
3+
url = https://github.com/d-morrison/macros

README.Rmd

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,14 @@ Checks R code style and quality using the lintr package.
171171

172172
### 🤖 Copilot Setup Steps (`copilot-setup-steps.yml`)
173173

174-
Configures the GitHub Copilot coding agent's environment with Quarto and TinyTeX.
174+
Configures the GitHub Copilot coding agent's environment for:
175+
176+
- Quarto
177+
- TinyTeX
178+
- Optional GitHub CLI authentication for
179+
`https://github.com/d-morrison/macros` (via the `MACROS_REPO_PAT`
180+
repository or organization Actions secret; includes a write
181+
permission check during setup)
175182

176183
**Triggers:** Workflow dispatch, changes to the setup file
177184

@@ -212,6 +219,7 @@ Validates that all books and articles in bibliography files meet DOI requirement
212219
├── .gitignore # Git ignore file
213220
├── LICENSE # CC0 1.0 Universal License
214221
├── README.md # This file
222+
├── macros/ # Git submodule: d-morrison/macros
215223
└── .github/
216224
├── scripts/ # Scripts for workflows
217225
│ ├── add-home-banner.py

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,14 @@ Checks R code style and quality using the lintr package.
179179
180180
### 🤖 Copilot Setup Steps (`copilot-setup-steps.yml`)
181181
182-
Configures the GitHub Copilot coding agent's environment with Quarto and
183-
TinyTeX.
182+
Configures the GitHub Copilot coding agent's environment for:
183+
184+
- Quarto
185+
- TinyTeX
186+
- Optional GitHub CLI authentication for
187+
`https://github.com/d-morrison/macros` (via the `MACROS_REPO_PAT`
188+
repository or organization Actions secret; includes a write
189+
permission check during setup)
184190

185191
**Triggers:** Workflow dispatch, changes to the setup file
186192

@@ -222,6 +228,7 @@ ensures all citations are properly traceable.
222228
├── .gitignore # Git ignore file
223229
├── LICENSE # CC0 1.0 Universal License
224230
├── README.md # This file
231+
├── macros/ # Git submodule: d-morrison/macros
225232
└── .github/
226233
├── scripts/ # Scripts for workflows
227234
│ ├── add-home-banner.py

inst/WORDLIST

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
CLI
12
DOCX
23
RevealJS
34
SERG
@@ -8,5 +9,4 @@ emplate
89
glitchy
910
lintr
1011
navbar
11-
qmd
1212
uarto

macros

Submodule macros added at c0901ed

0 commit comments

Comments
 (0)