Skip to content
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
be9fe45
Fix compiler warnings when the TCP Window is not used (#124)
AniruddhaKanhere Dec 18, 2020
a342f50
parent be9fe45d8ec440f7750de0f4870b28de39b10a3b
htibosch Jan 5, 2021
9de49b5
Remove unused file
AniruddhaKanhere Apr 21, 2021
7e84016
Merge pull request #15 from FreeRTOS/main
AniruddhaKanhere Apr 21, 2021
3c4db2d
Fix Some warnings
AniruddhaKanhere Apr 21, 2021
b183908
Merge branch 'main' into fix_warnings
AniruddhaKanhere Apr 21, 2021
d384db0
merge tcp_mem_stats
AniruddhaKanhere Jun 9, 2021
36cc08c
Merge pull request #17 from FreeRTOS/main
AniruddhaKanhere Jun 9, 2021
d43a5fc
Merge pull request #18 from FreeRTOS/main
AniruddhaKanhere Jul 21, 2021
393669b
Merge pull request #22 from FreeRTOS/main
AniruddhaKanhere Sep 10, 2021
9fd9010
Merge pull request #24 from FreeRTOS/main
AniruddhaKanhere Sep 10, 2021
59d63eb
Merge branch 'FreeRTOS:main' into main
AniruddhaKanhere Sep 17, 2021
7f2ca0a
Merge branch 'FreeRTOS:main' into main
AniruddhaKanhere Sep 20, 2021
c5b11bc
Merge branch 'FreeRTOS:main' into main
AniruddhaKanhere Sep 21, 2021
491470f
Merge branch 'FreeRTOS:main' into main
AniruddhaKanhere Sep 28, 2021
5440582
Merge branch 'FreeRTOS:main' into main
AniruddhaKanhere Oct 7, 2021
7c1bfd2
Merge branch 'FreeRTOS:main' into main
AniruddhaKanhere Oct 19, 2021
013f781
Merge branch 'FreeRTOS:main' into main
AniruddhaKanhere Oct 21, 2021
216552b
Merge branch 'FreeRTOS:main' into main
AniruddhaKanhere Oct 29, 2021
5e51570
Merge branch 'FreeRTOS:main' into main
AniruddhaKanhere Nov 23, 2021
ad97450
Merge branch 'FreeRTOS:main' into main
AniruddhaKanhere Dec 20, 2021
cae9867
Add automated uncrustify
AniruddhaKanhere Dec 21, 2021
2489819
Merge branch 'main' into AddAutoUncrustify
AniruddhaKanhere Dec 21, 2021
3e3b401
Un-uncrustify
AniruddhaKanhere Dec 21, 2021
2616a3f
Uncrustify - manually
AniruddhaKanhere Dec 21, 2021
c4a2f70
Remove unused comment
AniruddhaKanhere Dec 21, 2021
9936eee
Update user to be github action
AniruddhaKanhere Dec 21, 2021
adf8de2
Remove catch_assert from uncrustify
AniruddhaKanhere Dec 22, 2021
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
49 changes: 49 additions & 0 deletions .github/workflows/uncrustify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Uncrustify the source code

on:
issue_comment:
types: [created]

jobs:
Uncrustify:
name: Run_Uncrustify
if: ${{ github.event.issue.pull_request && github.event.comment.body == '/bot run uncrustify' }}
runs-on: ubuntu-18.04
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

18.04 is getting a bit old. Will this run on ubuntu-latest?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

18.04 comes with a certain version of uncrustify. That is the one we use. That is why we stuck with using Ubuntu 18.04.

steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: get pullrequest url
run: |
echo ${{ github.event.issue.pull_request.url }}
- name: get upstream repo
id: upstreamrepo
run: |
echo "::set-output name=RemoteRepo::$(curl -H "Accept: application/vnd.github.sailor-v-preview+json" --url ${{ github.event.issue.pull_request.url }} | jq '.head.repo.full_name' | sed 's/\"//g')"
- name: get upstream branch
id: upstreambranch
run: |
echo "::set-output name=branchname::$(curl -H "Accept: application/vnd.github.sailor-v-preview+json" --url ${{ github.event.issue.pull_request.url }} | jq '.head.ref' | sed 's/\"//g')"
- name: echo upstream repo:branch
run: |
echo ${{ steps.upstreamrepo.outputs.RemoteRepo }}:${{ steps.upstreambranch.outputs.branchname }}
- name: Checkout upstream repo
uses: actions/checkout@v2
with:
token: ${{ secrets.PAT }}
repository: ${{ steps.upstreamrepo.outputs.RemoteRepo }}
ref: ${{ steps.upstreambranch.outputs.branchname }}
- name: Install Uncrustify
run: sudo apt-get install uncrustify
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cobusve mentioned that there have been compatibility issues between different versions of uncrustify and our config. It might be best to pin this to a particular version.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, as I mentioned above, Ubuntu 18.04 comes with a certain version of uncrustify. And that is what is suitable for us. If that changes, we'd need to update this too.

- name: Run Uncrustify
run: |
uncrustify --version
find . -not -path '.*catch_assert.h' -iname "*.[hc]" -exec uncrustify -c tools/uncrustify.cfg --no-backup --replace {} +
- name: Push changes to upstream repository
run: |
git config --global user.name 'GitHub Action'
git config --global user.email '[email protected]'
git add -A
git commit -m "Uncrustify: triggered by comment."
git push