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

chore: re-generate changelogs #32886

Merged
merged 24 commits into from
Aug 26, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
Disable in circleci untila a PR is merged
Will re-enabe in a follow up when changelogs in master are re-generated
  • Loading branch information
vladar committed Aug 26, 2021
commit 3d6366bb655fafcda733d07efbf8fda9560d399a
11 changes: 5 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,6 @@ jobs:
- checkout
- run: apt-get update && apt-get install jq python -y
- <<: *restore_cache
- <<: *install_node_modules
- run: git config --global user.name "GatsbyJS Bot"
- run: git config --global user.email "core-team@gatsbyjs.com"
- run: node scripts/gatsby-changelog-generator/update-and-open-pr.js
Expand Down Expand Up @@ -703,8 +702,8 @@ workflows:
branches:
only:
- master
- update_changelogs:
filters:
branches:
only:
- /release\/.+/
# - update_changelogs:
# filters:
# branches:
# only:
# - /release\/.+/
6 changes: 3 additions & 3 deletions scripts/gatsby-changelog-generator/update-and-open-pr.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ if (!process.env.GITHUB_BOT_AUTH_TOKEN) {
}

async function run() {
// TODO: save current branch/commit/hash (and restore on complete)
const base = `vladar/generate-changelogs`
const base = `master`
const branch = `changelog-update-${Date.now()}`

const args = [`checkout`, `-b`, branch, `origin/${base}`, `--no-track`]
await execa(`git`, args)
const { stdout } = await execa(`git`, args)
console.log(stdout)

const updatedPackages = []
for (const pkg of getAllPackageNames()) {
Expand Down