-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'joachim/rfl-errors' into joachim/iff-rfl-attrib
- Loading branch information
Showing
2,672 changed files
with
113,424 additions
and
26,174 deletions.
There are no files selected for viewing
This file contains 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 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 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,57 @@ | ||
name: Check for stage0 changes | ||
|
||
on: | ||
merge_group: | ||
pull_request: | ||
|
||
jobs: | ||
check-stage0-on-queue: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
filter: blob:none | ||
fetch-depth: 0 | ||
|
||
- name: Find base commit | ||
if: github.event_name == 'pull_request' | ||
run: echo "BASE=$(git merge-base origin/${{ github.base_ref }} HEAD)" >> "$GITHUB_ENV" | ||
|
||
- name: Identify stage0 changes | ||
run: | | ||
git diff "${BASE:-HEAD^}..HEAD" --name-only -- stage0 | | ||
grep -v -x -F $'stage0/src/stdlib_flags.h\nstage0/src/lean.mk.in' \ | ||
> "$RUNNER_TEMP/stage0" || true | ||
if test -s "$RUNNER_TEMP/stage0" | ||
then | ||
echo "CHANGES=yes" >> "$GITHUB_ENV" | ||
else | ||
echo "CHANGES=no" >> "$GITHUB_ENV" | ||
fi | ||
shell: bash | ||
|
||
- if: github.event_name == 'pull_request' | ||
name: Set label | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const { owner, repo, number: issue_number } = context.issue; | ||
if (process.env.CHANGES == 'yes') { | ||
await github.rest.issues.addLabels({ owner, repo, issue_number, labels: ['changes-stage0'] }).catch(() => {}); | ||
} else { | ||
await github.rest.issues.removeLabel({ owner, repo, issue_number, name: 'changes-stage0' }).catch(() => {}); | ||
} | ||
- if: env.CHANGES == 'yes' | ||
name: Report changes | ||
run: | | ||
echo "Found changes to stage0/, please do not merge using the merge queue." | tee "$GITHUB_STEP_SUMMARY" | ||
# shellcheck disable=SC2129 | ||
echo '```' >> "$GITHUB_STEP_SUMMARY" | ||
cat "$RUNNER_TEMP/stage0" >> "$GITHUB_STEP_SUMMARY" | ||
echo '```' >> "$GITHUB_STEP_SUMMARY" | ||
- if: github.event_name == 'merge_group' && env.CHANGES == 'yes' | ||
name: Fail when on the merge queue | ||
run: exit 1 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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,34 @@ | ||
name: Jira sync | ||
|
||
on: | ||
issues: | ||
types: [closed] | ||
|
||
jobs: | ||
jira-sync: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Move Jira issue to Done | ||
env: | ||
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | ||
JIRA_USERNAME: ${{ secrets.JIRA_USERNAME }} | ||
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | ||
run: | | ||
issue_number=${{ github.event.issue.number }} | ||
jira_issue_key=$(curl -s -u "${JIRA_USERNAME}:${JIRA_API_TOKEN}" \ | ||
-X GET -H "Content-Type: application/json" \ | ||
"${JIRA_BASE_URL}/rest/api/2/search?jql=summary~\"${issue_number}\"" | \ | ||
jq -r '.issues[0].key') | ||
if [ -z "$jira_issue_key" ]; then | ||
exit | ||
fi | ||
curl -s -u "${JIRA_USERNAME}:${JIRA_API_TOKEN}" \ | ||
-X POST -H "Content-Type: application/json" \ | ||
--data "{\"transition\": {\"id\": \"41\"}}" \ | ||
"${JIRA_BASE_URL}/rest/api/2/issue/${jira_issue_key}/transitions" | ||
echo "Moved Jira issue ${jira_issue_key} to Done" |
This file contains 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 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
Oops, something went wrong.