Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1018 commits
Select commit Hold shift + click to select a range
0cdb0f4
prevent flash jump of experiments by delaying display (#55508)
Ebonsignori May 6, 2025
7ede6cc
[Accessibility Improvements] Copilot Search - use $mutedTextcolor for…
ashishkeshan May 6, 2025
07f9410
[Accessibility Improvements] Add underline for all links (#55500)
ashishkeshan May 6, 2025
573b6eb
Minor tweak to deprecation steps to make adding a tag faster (#55518)
heiskr May 6, 2025
0b77129
Delete image in content directory (#55521)
heiskr May 6, 2025
9b28864
Merge pull request #38097 from github/repo-sync
docs-bot May 6, 2025
95d7a2a
Remove references to review server (#55494)
heiskr May 6, 2025
863e7e0
Up Copilot Search experiment users to 10% (#55525)
Ebonsignori May 6, 2025
bbd2f5d
Optimize images (#55520)
heiskr May 6, 2025
75624c6
Update cache docs (#55523)
GhadimiR May 7, 2025
61201b3
Tweak Subprocessor list to separate GH subsidiaries (#55522)
LawDevNull May 7, 2025
71ad067
Remove redundant versioning (#55511)
hubwriter May 7, 2025
1d0cb2a
Update style guide on CTAs (#55476)
supergranular May 7, 2025
b5f9550
Update working-with-the-docker-registry.md (#55529)
hubwriter May 7, 2025
73b7c4d
Update Events API event retention to 30 days (#55517)
radville May 7, 2025
6f6206e
Update OpenAPI Description (#55516)
docs-bot May 7, 2025
ecbd5e8
#38011 Suggested doc fix (#38089)
Conor0Callaghan May 7, 2025
32e7c66
Merge remote-tracking branch 'private/main'
heiskr May 7, 2025
3bed745
Merge pull request #55540 from github/repo-sync
docs-bot May 7, 2025
b566a69
[Copilot] Clarifies live share behavior (#55534)
crwaters16 May 7, 2025
6ba2668
Update date of consumptive billing enforcement and remove content abo…
sophietheking May 7, 2025
0e754c2
Merge pull request #38112 from github/repo-sync
docs-bot May 8, 2025
1a709c8
Update managing-custom-properties-for-repositories-in-your-organizati…
sbauer May 8, 2025
9ad0691
Create docs-internal PR for Early Access preview (#55498)
stevenlaidlaw May 8, 2025
5a24a0f
Merge pull request #38129 from github/repo-sync
docs-bot May 8, 2025
bc48217
Delete orphaned files (2025-05-08-13-54) (#55548)
docs-bot May 8, 2025
00a637a
GPT-4.1 [GA] (#55541)
sunbrye May 8, 2025
5e6d6aa
Merge pull request #38139 from github/repo-sync
docs-bot May 8, 2025
ce3ff64
deprecate(libraries-for-the-rest-api): octocat.rs is WIP and unmainta…
Malix-Labs May 8, 2025
7233fe9
Merge pull request #55557 from github/repo-sync
docs-bot May 8, 2025
c44a95a
This is an update to the model picker text to improve clarity and all…
kasavin May 8, 2025
e8d6fe2
Merge pull request #38145 from github/repo-sync
docs-bot May 8, 2025
d822014
Updating Git over HTTP authentication docs for GHES to match actual b…
eptekov May 9, 2025
e679909
Copilot code review: Support for all languages (#55542)
hubwriter May 9, 2025
6dc5840
Merge pull request #38147 from github/repo-sync
docs-bot May 9, 2025
db5d011
Remove release note and add errata to GHES 3.16 release notes (#55554)
sophietheking May 9, 2025
769711c
Update OpenAPI Description (#55556)
docs-bot May 9, 2025
2a754af
Update audit log event data (#55555)
docs-bot May 9, 2025
f523ae6
Merge pull request #38148 from github/repo-sync
docs-bot May 9, 2025
e7b5832
Merge pull request #38151 from github/repo-sync
docs-bot May 9, 2025
35dffc0
[Accessibility Audit] Remove `/` shortcut for search (#55558)
ashishkeshan May 9, 2025
87c2f8b
Merge pull request #38154 from github/repo-sync
docs-bot May 9, 2025
2b1c3b8
GPT-4.1 now served exclusively through Azure tenant (#55573)
sunbrye May 9, 2025
85c04c2
[Accessibility Audit] Announce via screen reader when no results for …
ashishkeshan May 9, 2025
748def7
Merge pull request #38155 from github/repo-sync
docs-bot May 9, 2025
b2bb8ef
Update OpenAPI Description (#55571)
docs-bot May 11, 2025
f53555e
Update audit log event data (#55570)
docs-bot May 11, 2025
62b8156
Merge pull request #38218 from github/repo-sync
docs-bot May 11, 2025
83ed658
Sync secret scanning data (#55578)
docs-bot May 12, 2025
2c38f35
Merge pull request #38226 from github/repo-sync
docs-bot May 12, 2025
122680b
[MS Build] Fix poor link for Copilot Trust Center (#55546)
felicitymay May 12, 2025
0b1ca5c
Copilot: Add retirement message for custom models (#55579)
hubwriter May 12, 2025
d374f62
Merge pull request #38231 from github/repo-sync
docs-bot May 12, 2025
269910c
Translate alert titles (#55559)
heiskr May 12, 2025
df70f19
Convert JavaScript files to TypeScript in multiple directories (#55550)
heiskr May 12, 2025
43206d1
Convert landings and products directories JavaScript files to TypeScr…
heiskr May 12, 2025
4f3be99
Bump @types/connect-timeout from 0.0.39 to 1.9.0 (#55526)
dependabot[bot] May 12, 2025
b09d71c
Convert tools directory JavaScript files to TypeScript (#55552)
heiskr May 12, 2025
92c576b
Abhishekbhaskar/azure vnet dependabot setup (#55572)
AbhishekBhaskar May 12, 2025
34af79e
Bump AI Search users to 20% (#55593)
Ebonsignori May 12, 2025
0aec583
Merge pull request #38236 from github/repo-sync
docs-bot May 12, 2025
a37864e
Proxima Services Fully Functional in the US Stamp [GA] (#55575)
rachaelrenk May 12, 2025
7ebdcad
Bug fix: Use standard versioning instead of feature-based versioning …
felicitymay May 12, 2025
e325d49
Clarification about poetry projects (#38235)
Sharra-writes May 12, 2025
c65120d
Merge pull request #38237 from github/repo-sync
docs-bot May 12, 2025
f3c5aee
Merge pull request #55599 from github/repo-sync
docs-bot May 12, 2025
1a115b3
fix: version in example (#38140)
NotAwar May 12, 2025
e28861c
Update transferring-a-repository.md (#55583)
patrick-knight May 12, 2025
ff8d4b8
Delete orphaned files (2025-05-12-16-34) (#55589)
docs-bot May 13, 2025
c2a6fcf
Delete orphaned features (2025-05-12-16-29) (#55585)
docs-bot May 13, 2025
b131a13
Merge pull request #38238 from github/repo-sync
docs-bot May 13, 2025
bfa4d8a
Merge pull request #55611 from github/repo-sync
docs-bot May 13, 2025
fd0e385
Merge pull request #38243 from github/repo-sync
docs-bot May 13, 2025
71e5599
Merge pull request #55617 from github/repo-sync
docs-bot May 13, 2025
fa12154
Add details on AWS volumes and iops (#55216)
djdefi May 13, 2025
6ba407b
Merge pull request #38249 from github/repo-sync
docs-bot May 13, 2025
089567b
Remove public preview notice for SCIM on GHES 3.17 (#55580)
isaacmbrown May 13, 2025
c952e66
Merge pull request #38251 from github/repo-sync
docs-bot May 13, 2025
dd27714
Convert dev-toc JavaScript files to TypeScript (#55609)
heiskr May 13, 2025
d4d6598
Merge pull request #38252 from github/repo-sync
docs-bot May 13, 2025
c83c805
GitHub Copilot in Visual Studio 2022 Version 17.14 [GA] (#55568)
sophietheking May 13, 2025
1f6565a
Merge pull request #38253 from github/repo-sync
docs-bot May 13, 2025
40e4039
Update audit log event data (#55625)
docs-bot May 13, 2025
1265a03
Fix broken links (#55630)
jc-clark May 13, 2025
9854b01
Merge pull request #38260 from github/repo-sync
docs-bot May 14, 2025
07f2da6
Document that Okta plus Entra is not supported for IAM (#55565)
isaacmbrown May 14, 2025
7fa1eef
Merge pull request #38268 from github/repo-sync
docs-bot May 14, 2025
82e41fd
Revises ent. billing menu reusables (#55610)
rachaelrenk May 14, 2025
5e4a63e
Merge pull request #38270 from github/repo-sync
docs-bot May 14, 2025
77036f0
Update CodeQL CLI manual (#55635)
docs-bot May 14, 2025
35d9e84
[Actions] Highlights diff limitation (#55626)
crwaters16 May 14, 2025
7b2c26b
Bump lint-staged from 15.5.1 to 16.0.0 (#55629)
dependabot[bot] May 14, 2025
e7235b4
Merge pull request #38276 from github/repo-sync
docs-bot May 14, 2025
8972058
Update feature-overview-for-github-enterprise-cloud-with-data-residen…
eyalgal May 14, 2025
a1be25b
Update communicating-with-self-hosted-runners.md (#55595)
Steve-Glass May 14, 2025
b9e283c
Bugfix: Incorrect instructions for Copilot in Xcode (#55581)
jules-p May 14, 2025
c909f2d
Update audit log event data (#55586)
docs-bot May 14, 2025
d75128d
Merge pull request #38279 from github/repo-sync
docs-bot May 14, 2025
4597851
Merge pull request #55645 from github/repo-sync
docs-bot May 14, 2025
f49eedb
Merge pull request #38281 from github/repo-sync
docs-bot May 14, 2025
c08a596
Merge pull request #55650 from github/repo-sync
docs-bot May 14, 2025
0876cd8
Fix typos (#38172)
omahs May 14, 2025
15cd61a
Organization custom instructions now available for Copilot Business (…
saritai May 14, 2025
ba8efe5
[Improvement]: dependabot.yml: `nuget-feed` doesn't support `replaces…
am-stead May 14, 2025
68264cd
Merge pull request #38288 from github/repo-sync
docs-bot May 15, 2025
9bf59f0
Merge pull request #55652 from github/repo-sync
docs-bot May 15, 2025
af41e1e
Merge pull request #38290 from github/repo-sync
docs-bot May 15, 2025
274e729
Merge pull request #55653 from github/repo-sync
docs-bot May 15, 2025
f7c1355
[Improvement]: Mark Gemini 2.5 pro as Preview in Docs (#55639)
sophietheking May 15, 2025
6e0a5f5
🤖 src/ghes-releases/lib/enterprise-dates.json update (#55624)
docs-bot May 15, 2025
b0f7f8d
add info about Git LFS rate limits (#55659)
larsxschneider May 15, 2025
98f8431
Merge pull request #38300 from github/repo-sync
docs-bot May 15, 2025
b237db0
Update CodeQL query tables (#55636)
docs-bot May 15, 2025
cf3fc86
Merge pull request #38305 from github/repo-sync
docs-bot May 15, 2025
eb8854c
Included a tip on permissions required to perform GraphQL queries suc…
corycalahan May 15, 2025
0f3cc6e
GitHub Enterprise Server 3.17 release candidate (#55411)
sophietheking May 15, 2025
ea08d5b
Bump undici from 5.28.5 to 5.29.0 in the npm_and_yarn group (#55665)
dependabot[bot] May 15, 2025
822088e
Saved views on issues dashboard [GA] #17880 (#55566)
am-stead May 15, 2025
e486529
Actions limits (#55054)
nebuk89 May 15, 2025
a22ff5c
Sync secret scanning data (#55664)
docs-bot May 15, 2025
0598b3b
Merge pull request #38307 from github/repo-sync
docs-bot May 15, 2025
f7a477b
GitHub models REST API docs (#55288)
heiskr May 15, 2025
aa082f5
Update model multiplier table (#55654)
sophietheking May 15, 2025
ebc5d93
Update creating-a-default-community-health-file.md (#55649)
jcaveman May 15, 2025
1a96ed4
Update the supported languages table for codeql (#55627)
aeisenberg May 15, 2025
03336fc
Fix playwright tests with experiments by manually turning off the exp…
Ebonsignori May 15, 2025
1e75258
Tweak `replaces-base` instructions so users can copy/paste it (#55677)
jeffwidman May 16, 2025
59b0a72
Update style-guide.md (#54974)
supergranular May 16, 2025
080fdfd
Disambiguate "GitHub Importer" in data residency docs (#55660)
isaacmbrown May 16, 2025
511fb4a
Indicate the SCIM for organizations article is distinct from SCIM on …
isaacmbrown May 16, 2025
55cd951
[Improvement]: Dependabot supports any file #17856 (#55545)
am-stead May 16, 2025
1f9656b
[May 16] Self-serve available for GHEC with data residency (#55633)
isaacmbrown May 16, 2025
3b0973d
GraphQL schema update (#55686)
docs-bot May 16, 2025
3916ea6
Merge remote-tracking branch 'private/main'
heiskr May 16, 2025
6471036
Add missing word to actions limits (#55687)
thyeggman May 16, 2025
0f4d483
Delete outdated line for Copilot Metrics API (#55681)
mahata May 16, 2025
426f4b2
Update audit log event data (#55685)
docs-bot May 16, 2025
5547455
Merge pull request #38332 from github/repo-sync
docs-bot May 16, 2025
ce5c73c
Updating Copilot usage to include report (#55690)
iamcjwilliams May 16, 2025
b0e01d5
Merge pull request #38337 from github/repo-sync
docs-bot May 17, 2025
62acfa7
Remove broken anti-corruption link (#55691)
jc-clark May 19, 2025
8df5864
Fix expired notifications content (#55696)
isaacmbrown May 19, 2025
f5c32bb
Remove callout about Copilot premium requests usage reports (#55694)
sophietheking May 19, 2025
40b59b3
Merge pull request #38417 from github/repo-sync
docs-bot May 19, 2025
08cc0f3
Merge pull request #38419 from github/repo-sync
docs-bot May 19, 2025
4ebc0af
[DO NOT MERGE] MSFT Build Copilot coding agent megabranch (#55536)
SiaraMist May 19, 2025
b1d7355
Merge pull request #38422 from github/repo-sync
docs-bot May 19, 2025
3ac258d
Add new model to table (#55720)
SiaraMist May 19, 2025
101c4dc
Fix storing prompts article (#55721)
SiaraMist May 19, 2025
b96c7da
Include public repositories in cost note (#55667)
indigok May 19, 2025
17e355b
Clarify supported and unsupported languages for CodeQL: about-code-sc…
jcaveman May 19, 2025
0b52168
Clarify that Dependabot workflows bypass Actions policy checks and di…
kbukum1 May 19, 2025
2b2587a
Update create-docs-ghes-version-repo.sh to set ownership to docs inst…
heiskr May 19, 2025
b7ae01e
Quiet triage issue comment workflow if issue was deleted (#55708)
heiskr May 19, 2025
e3b78a6
Convert audit-logs JS files to TypeScript (#55597)
heiskr May 19, 2025
52d6c14
Convert ghes-releases scripts from JavaScript to TypeScript (#55590)
heiskr May 19, 2025
76565a3
increase Copilot Search users to 30% (#55719)
Ebonsignori May 19, 2025
9e08db8
change the order of Copilot Search references (#55716)
Ebonsignori May 19, 2025
6cc9a00
Add npm run dev-toc to package.json (#55622)
heiskr May 19, 2025
afc0c4d
Convert webhooks directory JS files to TypeScript (#55608)
heiskr May 19, 2025
dbf8b51
Use main branch to sync openapi github/models-gateway (#55704)
heiskr May 20, 2025
32d586b
Merge remote-tracking branch 'private/main'
heiskr May 20, 2025
2a357ac
Merge pull request #55723 from github/repo-sync
docs-bot May 20, 2025
b46ce70
Merge pull request #55724 from github/repo-sync
docs-bot May 20, 2025
937f131
Merge pull request #38426 from github/repo-sync
docs-bot May 20, 2025
11d1c39
Fix typo in configuring-scim-provisioning-with-okta.md (#38289)
tinchomengo May 20, 2025
f7622a6
Merge pull request #55726 from github/repo-sync
docs-bot May 20, 2025
2769c4b
Dependency graph can now be disabled for public repositories (#55632)
sophietheking May 20, 2025
7a2928d
Add link to Padawan enablement docs (#55725)
sophietheking May 20, 2025
fd8f435
Merge pull request #38433 from github/repo-sync
docs-bot May 20, 2025
f0cad05
Update content-exclusions-scope.md (#55672)
May 20, 2025
5801898
Merge pull request #38436 from github/repo-sync
docs-bot May 20, 2025
6d79786
[AI Search] Prevent duplicate keyboard + search events (#55596)
ashishkeshan May 20, 2025
5b09d3b
Fix models-gateway checkout authentication in sync-openapi workflow (…
heiskr May 20, 2025
372fbe9
Handle empty commit in sync audit log (#55709)
heiskr May 20, 2025
2c70eb4
fix partial JSON sources streaming by appending to the leftover strea…
Ebonsignori May 20, 2025
cb1e971
API: created linter ensuring octicons have an aria label (#54798)
Saturn226 May 20, 2025
32a8d91
Convert learning-track JS files to TypeScript (#55606)
heiskr May 20, 2025
0417eae
Add note about Poetry v2 support (#38440)
Debakel May 20, 2025
a776b84
Remove circular link in warning (#38441)
chohlasa May 20, 2025
7349298
Merge remote-tracking branch 'private/main'
heiskr May 20, 2025
e9730d4
Merge pull request #55739 from github/repo-sync
docs-bot May 20, 2025
39beae4
Add aria-labels to octicons (#55740)
heiskr May 20, 2025
62f15d9
Bump commander from 13.1.0 to 14.0.0 (#55744)
dependabot[bot] May 20, 2025
1d71822
show CTA up to 3 dismissals every 24 hours or until AI Search is made…
Ebonsignori May 20, 2025
46d43ae
Bump @octokit/request-error from 6.1.8 to 7.0.0 (#55745)
dependabot[bot] May 20, 2025
979845f
Bump @octokit/plugin-retry from 7.1.4 to 8.0.1 (#55743)
dependabot[bot] May 21, 2025
b64f820
Merge pull request #38443 from github/repo-sync
docs-bot May 21, 2025
c510e6d
Add context to linter for MD004 rule (#55732)
felicitymay May 21, 2025
ddae5c0
Add additional debugging info to linter error message (#55748)
felicitymay May 21, 2025
4e8e32d
Merge remote-tracking branch 'docs/main'
heiskr May 21, 2025
1231006
Billing Actions usage docs should reference new billing platform (#55…
holly-kassel May 21, 2025
923c1b2
Merge pull request #38460 from github/repo-sync
docs-bot May 21, 2025
08c1dcf
Update repo-sync.yml to use DOCS_BOT_PAT_REPO_SYNC (#55736)
heiskr May 21, 2025
cfad0f1
Add learner walkthrough for code scanning (#55192)
sabrowning1 May 21, 2025
cf41ee2
Add new interval options to optimizing-pr-creation-version-updates.md…
imnasnainaec May 21, 2025
66e0f55
Merge pull request #38464 from github/repo-sync
docs-bot May 22, 2025
690afa6
Merge pull request #55761 from github/repo-sync
docs-bot May 22, 2025
336f2b3
Update repo-sync.yml (#38463)
Ebonsignori May 22, 2025
07c7bc8
Merge pull request #38465 from github/repo-sync
docs-bot May 22, 2025
9336402
Merge pull request #55762 from github/repo-sync
docs-bot May 22, 2025
e35b7c8
[Bug fix] Add back a lost US Sales tax article (#55758)
felicitymay May 22, 2025
6152b64
Billing Packages usage docs should reference new billing platform (#5…
holly-kassel May 22, 2025
f4423bf
Actions docs update (#55760)
lkfortuna May 22, 2025
b3a8288
Create codespaces-view-usage (#55715)
holly-kassel May 22, 2025
38b87f3
Merge pull request #38476 from github/repo-sync
docs-bot May 22, 2025
b987d7e
Updated GitHub Models rate limits table with Grok-3 and Grok-3-Mini (…
JarylW May 22, 2025
241beb9
Merge pull request #38477 from github/repo-sync
docs-bot May 22, 2025
527af51
GraphQL schema update (#55772)
docs-bot May 22, 2025
3905c75
Add script to repo-sync on local (#55755)
heiskr May 22, 2025
80a3193
Tented/18207 1 (#55662)
am-stead May 22, 2025
8398175
Tented/18207 2 (#55663)
am-stead May 22, 2025
dddd72a
Merge pull request #38478 from github/repo-sync
docs-bot May 22, 2025
ab79adb
Fix code > link a11y issue in graphql (#55778)
heiskr May 22, 2025
0fba8c9
Convert secret-scanning JavaScript files to TypeScript (#55734)
heiskr May 22, 2025
80dbfc0
Convert early-access JS files to TypeScript (#55738)
heiskr May 22, 2025
1b0e651
Merge pull request #38479 from github/repo-sync
docs-bot May 22, 2025
7b388f2
Remove outdated info from Packages gated-feature statement (#55765)
felicitymay May 22, 2025
5a4867d
Merge pull request #38484 from github/repo-sync
docs-bot May 23, 2025
4ccaec0
Correct duplicate branch-paths-filter.md paragraph (#38445)
norwd May 23, 2025
8c845d0
Merge pull request #55782 from github/repo-sync
docs-bot May 23, 2025
4abdae1
GHES 3.17 - Rename the secret scanning "Experimental" tab (#55697)
mchammer01 May 23, 2025
812a0ba
Sync secret scanning data (#55757)
docs-bot May 23, 2025
9d75961
Sync secret scanning data (#55771)
docs-bot May 23, 2025
7cc74eb
Billing: Update information on managing email contacts (#55777)
felicitymay May 23, 2025
ee34254
Billing: Add some missing redirects following the Meuse deprecation (…
felicitymay May 23, 2025
67b0298
Merge pull request #38490 from github/repo-sync
docs-bot May 23, 2025
dee6901
Copilot: add redirects from EA docs (#55753)
hubwriter May 23, 2025
b6bf9bc
Merge pull request #38493 from github/repo-sync
docs-bot May 23, 2025
8bd7da7
Copilot: mention CCA in features pages (#55752)
hubwriter May 23, 2025
084fffc
Copilot coding agent: Add Azure MCP server example (#55731)
hubwriter May 23, 2025
8b951ca
Copilot: mention write access requirement for CCA responding to comme…
hubwriter May 23, 2025
6ace10d
Billing: correct a note in managing your payment information (#55776)
felicitymay May 23, 2025
b14957a
Add links to Copilot coding agent articles (#55750)
hubwriter May 23, 2025
ec94eb6
Change "code completions" to "code completion" where appropriate (#55…
hubwriter May 23, 2025
91bbd9a
Rename CCA map topic (#55728)
hubwriter May 23, 2025
ea3872e
Merge pull request #38494 from github/repo-sync
docs-bot May 23, 2025
baeb8bf
Address billing documentation issues reported by support (1) (#55718)
holly-kassel May 23, 2025
239aac9
Address billing documentation issues reported by support (2) (#55722)
holly-kassel May 23, 2025
ae09b4e
Add deprecation notice for bulk converting of issues based on labels …
labudis May 23, 2025
360ea11
Delete orphaned features (2025-05-19-16-29) (#55703)
docs-bot May 23, 2025
8042d03
Update OpenAPI Description (#55737)
docs-bot May 23, 2025
be70fd6
Merge pull request #38497 from github/repo-sync
docs-bot May 23, 2025
d51021d
Bump github/gh-base-image/gh-base-noble from 20250501-005451-g595789a…
dependabot[bot] May 23, 2025
747116d
Added clarification about GHAS billing for migrated repos (#55781)
KittyChiu May 23, 2025
2dbc2bd
Delete orphaned files (2025-05-19-16-35) (#55705)
docs-bot May 23, 2025
c1cc9d6
Merge pull request #38501 from github/repo-sync
docs-bot May 23, 2025
7bc4309
Underline all links in survey component (#55789)
heiskr May 23, 2025
c2c7354
Merge pull request #38502 from github/repo-sync
docs-bot May 24, 2025
63f6d69
Create 图库
fafa888351 May 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
39 changes: 39 additions & 0 deletions .github/actions/get-changed-files/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Get changed files
description: Get a list of changed files

inputs:
files:
description: 'Files or directories to check for changes, supports names, directories, trailing slashes, and single trailing wildcard'
required: false
default: '.'
head:
description: 'Head ref to check for changes against'
required: false
output_file:
description: 'Optional file path to write the changes to'
required: false

outputs:
all_changed_files:
description: 'List of all changed files (unfiltered), includes removals'
value: ${{ steps.get_changes.outputs.all_changed_files }}
filtered_changed_files:
description: 'List of changed files matching the `files` filter, does not include removals'
value: ${{ steps.get_changes.outputs.filtered_changed_files }}
filtered_deleted_files:
description: 'List of deleted files matching the `files` filter'
value: ${{ steps.get_changes.outputs.filtered_deleted_files }}
filtered_renamed_files:
description: 'List of renamed files matching the `files` filter'
value: ${{ steps.get_changes.outputs.filtered_renamed_files }}

runs:
using: 'composite'
steps:
- name: Gather changed files
id: get_changes
env:
INPUT_HEAD: ${{ inputs.head || github.event.pull_request.head.ref || github.event.merge_group.head_ref || github.ref_name }}
INPUT_OUTPUT_FILE: ${{ inputs.output_file }}
shell: bash
run: ${{ github.action_path }}/get-changed-files.sh
204 changes: 204 additions & 0 deletions .github/actions/get-changed-files/get-changed-files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
#!/bin/bash

# Required environment variables:
# $INPUT_FILES: Pattern(s) to filter files by (e.g., "content/** data/**")
# $INPUT_HEAD: Current branch or SHA for git diff
# $INPUT_OUTPUT_FILE: Optional file to redirect output to.

# Default value for files parameter if not provided
FILTER=${INPUT_FILES:-.}

# Print the filter
echo "__ using filter: __"
echo "$FILTER"

# Ensure we have the latest from the remote
echo "__ fetching latest changes __"
git fetch --depth=1 origin main
git fetch --depth=1 origin ${INPUT_HEAD:-HEAD}

# Get diff with status information
echo "__ running git diff with status __"
DIFF_OUTPUT=$(git diff --name-status origin/main origin/${INPUT_HEAD:-HEAD})

# Function to extract files by pattern from diff output
extract_files() {
local pattern=$1
local field=$2
echo "$DIFF_OUTPUT" | grep -E "$pattern" | cut -f$field
}

# Extract files by status
echo "__ extracting files by status __"
MODIFIED_FILES=$(extract_files "^[AM]" 2)
DELETED_FILES=$(extract_files "^D" 2)
RENAMED_OLD_FILES=$(extract_files "^R[0-9]+" 2)
RENAMED_NEW_FILES=$(extract_files "^R[0-9]+" 3)

# Create paired renames in format "oldname=>newname"
create_rename_pairs() {
local old_files=$1
local new_files=$2
local pairs=()

IFS=$'\n'
for i in $(seq 1 $(echo "$old_files" | wc -l)); do
OLD=$(echo "$old_files" | sed -n "${i}p")
NEW=$(echo "$new_files" | sed -n "${i}p")
pairs+=("$OLD=>$NEW")
done
unset IFS

printf "%s\n" "${pairs[@]}"
}

RENAMED_FILES_WITH_HISTORY=$(create_rename_pairs "$RENAMED_OLD_FILES" "$RENAMED_NEW_FILES")

# Combine files for different outputs
DIFF=$(echo -e "$MODIFIED_FILES\n$RENAMED_NEW_FILES" | sort | uniq)
ALL_DIFF=$(echo -e "$MODIFIED_FILES\n$DELETED_FILES\n$RENAMED_NEW_FILES" | sort | uniq)

# Debug output
echo "__ MODIFIED files found __"
echo "$MODIFIED_FILES"
echo "__ DELETED files found __"
echo "$DELETED_FILES"
echo "__ RENAMED files found (with history) __"
echo "$RENAMED_FILES_WITH_HISTORY"
echo "__ ALL changed files __"
echo "$ALL_DIFF"

# Function to filter files by pattern
filter_files() {
local files=$1
local result=""

IFS=$'\n'
for file in $files; do
while IFS= read -r pattern || [ -n "$pattern" ]; do
clean_pattern=${pattern%/}
if [[ $file == $clean_pattern || $file == $clean_pattern/* ]]; then
result="$result $file"
break
fi
done <<< "$FILTER"
done
unset IFS

echo "$result"
}

# Function to filter rename pairs
filter_renames() {
local new_files=$1
local old_files=$2
local result=""

IFS=$'\n'
for i in $(seq 1 $(echo "$new_files" | wc -l)); do
NEW=$(echo "$new_files" | sed -n "${i}p")
OLD=$(echo "$old_files" | sed -n "${i}p")

while IFS= read -r pattern || [ -n "$pattern" ]; do
clean_pattern=${pattern%/}
if [[ $NEW == $clean_pattern || $NEW == $clean_pattern/* ]]; then
result="$result $OLD=>$NEW"
break
fi
done <<< "$FILTER"
done
unset IFS

echo "$result"
}

# Filter the files to just the directories specified in the input files
if [ "$FILTER" != "." ]; then
echo "__ filtering files to only include $FILTER __"

FILTERED_MODIFIED=$(filter_files "$MODIFIED_FILES")
FILTERED_DELETED=$(filter_files "$DELETED_FILES")
FILTERED_RENAMED=$(filter_renames "$RENAMED_NEW_FILES" "$RENAMED_OLD_FILES")

# For filtered_changed_files (non-deleted files)
FILTERED_DIFF="$FILTERED_MODIFIED"
for new_file in $(echo "$FILTERED_RENAMED" | grep -o "=>[^[:space:]]*" | sed 's/=>//g'); do
FILTERED_DIFF="$FILTERED_DIFF $new_file"
done

MODIFIED_FILES=$FILTERED_MODIFIED
DELETED_FILES=$FILTERED_DELETED
RENAMED_FILES_WITH_HISTORY=$FILTERED_RENAMED
DIFF=$FILTERED_DIFF

echo "__ filtered MODIFIED files __"
echo "$MODIFIED_FILES"
echo "__ filtered DELETED files __"
echo "$DELETED_FILES"
echo "__ filtered RENAMED files (with history) __"
echo "$RENAMED_FILES_WITH_HISTORY"
echo "__ filtered changed files (non-deleted) __"
echo "$FILTERED_DIFF"
fi

# Function to format output (standardize whitespace)
format_output() {
local input=$1
echo "$input" | tr '\n' ' ' | tr -s ' ' | sed 's/^ *//' | sed 's/ *$//'
}

echo "__ formatting output __"
FORMATTED_MODIFIED=$(format_output "$MODIFIED_FILES")
FORMATTED_DELETED=$(format_output "$DELETED_FILES")
FORMATTED_DIFF=$(format_output "$DIFF")
FORMATTED_RENAMED=$(format_output "$RENAMED_FILES_WITH_HISTORY")
ALL_FORMATTED=$(format_output "$ALL_DIFF")

echo "Formatted modified: '$FORMATTED_MODIFIED'"
echo "Formatted deleted: '$FORMATTED_DELETED'"
echo "Formatted renamed: '$FORMATTED_RENAMED'"
echo "Formatted non-deleted changes: '$FORMATTED_DIFF'"

# Set the output for GitHub Actions
HAS_CHANGES=true
if [[ -z "$FORMATTED_DIFF" && -z "$FORMATTED_DELETED" ]]; then
echo "No changed files detected"
HAS_CHANGES=false
fi

# Function to set outputs either to a file or GITHUB_OUTPUT
set_outputs() {
local target=$1

if [[ "$HAS_CHANGES" == "false" ]]; then
echo "Setting empty outputs to $target"
echo "all_changed_files=" >> "$target"
echo "filtered_changed_files=" >> "$target"
echo "filtered_deleted_files=" >> "$target"
echo "filtered_renamed_files=" >> "$target"
else
echo "Setting non-empty outputs to $target"
echo "all_changed_files<<EOF" >> "$target"
echo "$ALL_FORMATTED" >> "$target"
echo "EOF" >> "$target"

echo "filtered_changed_files<<EOF" >> "$target"
echo "$FORMATTED_DIFF" >> "$target"
echo "EOF" >> "$target"

echo "filtered_deleted_files<<EOF" >> "$target"
echo "$FORMATTED_DELETED" >> "$target"
echo "EOF" >> "$target"

echo "filtered_renamed_files<<EOF" >> "$target"
echo "$FORMATTED_RENAMED" >> "$target"
echo "EOF" >> "$target"
fi
}

# Set outputs to the appropriate target
if [[ -n "$INPUT_OUTPUT_FILE" ]]; then
set_outputs "$INPUT_OUTPUT_FILE"
else
set_outputs "$GITHUB_OUTPUT"
fi
2 changes: 1 addition & 1 deletion .github/actions/install-cocofix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ runs:
npm install --no-save \
'--@github:registry=https://npm.pkg.github.com' \
'--//npm.pkg.github.com/:_authToken=${TOKEN}' \
@github/cocofix
@github/cocofix codeql-ts
3 changes: 0 additions & 3 deletions .github/branch_protection_settings/README.md

This file was deleted.

Loading
Loading