Skip to content

v1.10.0

Compare
Choose a tag to compare
@github-actions github-actions released this 16 Oct 14:47
· 77 commits to main since this release

Issues | Pull Requests | v1.9.0...v1.10.0 | Base revision

Features

#1914 Refer target and working_directory in policies by -data option

Now tfaction creates a special data file temporarily and passes it to your policies by --data option.
The data file includes target and working_directory, so you can refer them in policies.

e.g.

import data.tfaction
target := tfaction.target
working_directory := tfaction.working_directory

Others

#1912 #1913 Remove dist directories from main and feature branches

This is the automation of format and build process.

We develop JavaScript actions using TypeScript and build them to JavaScript.
Before this release, we built them and formatted code using prettier and committed them on our laptops.

There were some problems in the process.

  • It was bothersome and sometimes we forgot them
  • Pull requests got dirty due to those changes and it made hard to review pull requests

For example, in the pull request #1909 I changed about 100 lines but after I built and formatted codes over 1,000 lines were changed.
It was so annoying.

image

And generated code may cause conflicts.

To solve these problems, we removed dist directories from main branch and feature branches.
We added dist to .gitignore.
And we set up GitHub Actions Workflows to build and format codes and push them to branches pr/<pr number>.
Note that these processes are skipped in case of pull requests from fork repositories.
We can still execute them by workflow_dispatch workflows.
Code is built automatically in the release workflow too.

This update makes pull requests easy to review.

image