Skip to content

Commit 5fc5373

Browse files
authored
Merge branch 'main' into dependabot/github_actions/dot-github/workflows/actions-minor-4af230c318
2 parents d1617c5 + c9d4295 commit 5fc5373

9 files changed

Lines changed: 13096 additions & 5362 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ updates:
1616
# This might be fixed when we move to eslint v9.
1717
- dependency-name: "eslint-plugin-import"
1818
versions: [">=2.30.0"]
19+
20+
# Some of our dependencies are lagging behind with support for new versions of
21+
# `undici` which is why we have to override it in `package.json`. Dependabot
22+
# workflows fail when they try to update a dependency that is explicitly
23+
# overriden. Since this happens somewhat routinely at the moment, we are
24+
# excluding `undici` here and have to manually update it when needed.
25+
- dependency-name: "undici"
26+
versions: [">=7.30.1"]
1927
groups:
2028
npm-minor:
2129
patterns:

‎.github/workflows/pr-dequeued.yml‎

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,23 @@ jobs:
2121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2222
PR_NUMBER: ${{ github.event.pull_request.number }}
2323
REASON: ${{ github.event.reason }}
24-
USER: ${{ github.event.pull_request.user.login }}
2524
run: |
26-
echo "@$USER The pull request was removed from the merge queue (\`$REASON\`)." \
25+
# Mention whoever added the PR to the merge queue rather than the PR author, who may be a
26+
# bot such as Dependabot. The `dequeued` event payload doesn't identify the enqueuer, so
27+
# look them up in the most recent `AddedToMergeQueueEvent` on the PR's timeline.
28+
enqueuer=$(gh api graphql \
29+
-F number="$PR_NUMBER" \
30+
-f query='
31+
query($number: Int!) {
32+
repository(owner: "github", name: "codeql-action") {
33+
pullRequest(number: $number) {
34+
timelineItems(itemTypes: [ADDED_TO_MERGE_QUEUE_EVENT], last: 1) {
35+
nodes { ... on AddedToMergeQueueEvent { enqueuer { login } } }
36+
}
37+
}
38+
}
39+
}' \
40+
--jq '.data.repository.pullRequest.timelineItems.nodes[0].enqueuer.login')
41+
echo "@$enqueuer The pull request was removed from the merge queue (\`$REASON\`)." \
2742
"Please resolve any issues if required and enqueue the PR again." |
2843
gh pr comment --body-file - --repo github/codeql-action "$PR_NUMBER"

‎README.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ We typically release new minor versions of the CodeQL Action and Bundle when a n
7676
| `v4.33.0` | `2.24.3` | Enterprise Server 3.21 | |
7777
| `v4.31.10` | `2.23.9` | Enterprise Server 3.20 | |
7878
| `v3.29.11` | `2.22.4` | Enterprise Server 3.19 | |
79-
| `v3.28.21` | `2.21.3` | Enterprise Server 3.18 | |
8079

8180
See the full list of GHES release and deprecation dates at [GitHub Enterprise Server releases](https://docs.github.com/en/enterprise-server/admin/all-releases#releases-of-github-enterprise-server).
8281

0 commit comments

Comments
 (0)