Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to consuming JSON from GitHub for "latest commit" #472

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

tianon
Copy link
Member

@tianon tianon commented Jan 8, 2024

For some reason, curl -L https://github.com/docker/docker/commits/master/hack/dind.atom has recently changed from returning XML by default to returning JSON, which from https://docs.github.com/en/rest/activity/feeds?apiVersion=2022-11-28 seems like it's intentional, so this adds an explicit Accept: header (the only explicit JSON one that seems to work) and uses jq to determine the latest hack/dind commit instead of hacking up the XML via grep+awk.

For some reason, `curl -L https://github.com/docker/docker/commits/master/hack/dind.atom` has recently changed from returning XML by default to returning JSON, which from https://docs.github.com/en/rest/activity/feeds?apiVersion=2022-11-28 seems like it's intentional, so this adds an explicit `Accept:` header (the only explicit JSON one that seems to work) and uses `jq` to determine the latest `hack/dind` commit instead of hacking up the XML via `grep`+`awk`.
tianon added a commit to tianon/dockerfiles that referenced this pull request Jan 8, 2024
For some reason, https://github.com/xxx/yyy/commits/HEAD/zzz.atom has recently changed from returning XML by default to returning JSON, which from https://docs.github.com/en/rest/activity/feeds?apiVersion=2022-11-28 seems like it's intentional, so this adds an explicit `Accept:` header (the only explicit JSON one that seems to work) and uses `jq` to determine the latest `hack/dind` commit instead of hacking up the XML via `grep`+`awk`.

See also docker-library/docker#472
@yosifkit yosifkit merged commit 76e5e78 into docker-library:master Jan 9, 2024
8 checks passed
@yosifkit yosifkit deleted the github-atom-json branch January 9, 2024 00:41
tianon added a commit to docker-library/python that referenced this pull request Jan 9, 2024
For some reason, https://github.com/xxx/yyy/commits/HEAD/zzz.atom has recently changed from returning XML by default to returning JSON, which from https://docs.github.com/en/rest/activity/feeds?apiVersion=2022-11-28 seems like it's intentional, so this adds an explicit `Accept:` header (the only explicit JSON one that seems to work) and uses `jq` to determine the latest commit instead of hacking up the XML via `grep`+`awk`.

See also docker-library/docker#472

(Additionally, this switches the file to use `wget` consistently instead of a mix of `wget` and `curl`)
tianon added a commit to docker-library/oi-janky-groovy that referenced this pull request Jan 9, 2024
For some reason, https://github.com/xxx/yyy/commits/HEAD/zzz.atom has recently changed from returning XML by default to returning JSON, which from https://docs.github.com/en/rest/activity/feeds?apiVersion=2022-11-28 seems like it's intentional, so this adds an explicit `Accept:` header (the only explicit JSON one that seems to work) and uses `jq` to determine the latest commit instead of hacking up the XML via `grep`+`awk`.

See also docker-library/docker#472

(Additionally, this switches the file to use `wget` consistently instead of a mix of `wget` and `curl`)
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Jan 11, 2024
Changes:

- docker-library/docker@72a378e: Update 25-rc to compose 2.24.0
- docker-library/docker@ef1774b: Update 24 to compose 2.24.0
- docker-library/docker@76e5e78: Merge pull request docker-library/docker#472 from infosiftr/github-atom-json
- docker-library/docker@e8fb8d7: Switch to consuming JSON from GitHub for "latest commit"
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Jan 12, 2024
Changes:

- docker-library/docker@a4e8aab: Update 25-rc to buildx 0.12.1
- docker-library/docker@e941e9d: Update 24 to buildx 0.12.1
- docker-library/docker@72a378e: Update 25-rc to compose 2.24.0
- docker-library/docker@ef1774b: Update 24 to compose 2.24.0
- docker-library/docker@76e5e78: Merge pull request docker-library/docker#472 from infosiftr/github-atom-json
- docker-library/docker@e8fb8d7: Switch to consuming JSON from GitHub for "latest commit"
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Jan 13, 2024
Changes:

- docker-library/docker@5fcc1d9: Update 25-rc to 25.0.0-rc.2
- docker-library/docker@a4e8aab: Update 25-rc to buildx 0.12.1
- docker-library/docker@e941e9d: Update 24 to buildx 0.12.1
- docker-library/docker@72a378e: Update 25-rc to compose 2.24.0
- docker-library/docker@ef1774b: Update 24 to compose 2.24.0
- docker-library/docker@76e5e78: Merge pull request docker-library/docker#472 from infosiftr/github-atom-json
- docker-library/docker@e8fb8d7: Switch to consuming JSON from GitHub for "latest commit"
ProActiveSpirit pushed a commit to ProActiveSpirit/python that referenced this pull request Mar 1, 2024
For some reason, https://github.com/xxx/yyy/commits/HEAD/zzz.atom has recently changed from returning XML by default to returning JSON, which from https://docs.github.com/en/rest/activity/feeds?apiVersion=2022-11-28 seems like it's intentional, so this adds an explicit `Accept:` header (the only explicit JSON one that seems to work) and uses `jq` to determine the latest commit instead of hacking up the XML via `grep`+`awk`.

See also docker-library/docker#472

(Additionally, this switches the file to use `wget` consistently instead of a mix of `wget` and `curl`)
martin-g pushed a commit to martin-g/docker-official-images that referenced this pull request Apr 3, 2024
Changes:

- docker-library/docker@5fcc1d9: Update 25-rc to 25.0.0-rc.2
- docker-library/docker@a4e8aab: Update 25-rc to buildx 0.12.1
- docker-library/docker@e941e9d: Update 24 to buildx 0.12.1
- docker-library/docker@72a378e: Update 25-rc to compose 2.24.0
- docker-library/docker@ef1774b: Update 24 to compose 2.24.0
- docker-library/docker@76e5e78: Merge pull request docker-library/docker#472 from infosiftr/github-atom-json
- docker-library/docker@e8fb8d7: Switch to consuming JSON from GitHub for "latest commit"
SammyEnigma pushed a commit to SammyEnigma/dockerfiles that referenced this pull request Jun 2, 2024
For some reason, https://github.com/xxx/yyy/commits/HEAD/zzz.atom has recently changed from returning XML by default to returning JSON, which from https://docs.github.com/en/rest/activity/feeds?apiVersion=2022-11-28 seems like it's intentional, so this adds an explicit `Accept:` header (the only explicit JSON one that seems to work) and uses `jq` to determine the latest `hack/dind` commit instead of hacking up the XML via `grep`+`awk`.

See also docker-library/docker#472
Preston-Adams pushed a commit to Preston-Adams/python-field that referenced this pull request Aug 18, 2024
For some reason, https://github.com/xxx/yyy/commits/HEAD/zzz.atom has recently changed from returning XML by default to returning JSON, which from https://docs.github.com/en/rest/activity/feeds?apiVersion=2022-11-28 seems like it's intentional, so this adds an explicit `Accept:` header (the only explicit JSON one that seems to work) and uses `jq` to determine the latest commit instead of hacking up the XML via `grep`+`awk`.

See also docker-library/docker#472

(Additionally, this switches the file to use `wget` consistently instead of a mix of `wget` and `curl`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants