Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 8 additions & 4 deletions .github/workflows/post-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,30 @@ on:
jobs:
analysis:
runs-on: ubuntu-24.04
if: github.repository == 'rust-lang/rust'
# if: github.repository == 'rust-lang/rust'
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 10
- name: Perform analysis and send PR
env:
GH_TOKEN: ${{ github.token }}
run: |
# Get closest bors merge commit
PARENT_COMMIT=`git rev-list --author='bors <[email protected]>' -n1 --first-parent HEAD^1`
echo "Parent: ${PARENT_COMMIT}"

# Find PR for the current commit
HEAD_PR=`gh pr list --search "${{ github.sha }}" --state merged --json number --jq '.[0].number'`

echo "Parent: ${PARENT_COMMIT}"
echo "HEAD: ${{ github.sha }} (#${HEAD_PR})"

cd src/ci/citool

echo "Post-merge analysis result" > output.log
cargo run --release post-merge-analysis ${PARENT_COMMIT} ${{ github.sha }} >> output.log
# cargo run --release post-merge-analysis ${PARENT_COMMIT} ${{ github.sha }} >> output.log
echo "foo" >> output.log
cat output.log

gh pr comment ${HEAD_PR} -F output.log
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
[Website][Rust] | [Getting started] | [Learn] | [Documentation] | [Contributing]
</div>

WIP
WIP
WIP
PR-1

This is the main source code repository for [Rust]. It contains the compiler,
standard library, and documentation.

Expand Down Expand Up @@ -44,6 +49,8 @@ Read ["Installation"] from [The Book].
If you really want to install from source (though this is not recommended), see
[INSTALL.md](INSTALL.md).

PR-2 WIP

## Getting Help

See https://www.rust-lang.org/community for a list of chat platforms and forums.
Expand Down

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

Loading