Docs
Git details on builds and channels that follow a branch
Every upload from CI can carry the commit, branch, git tag, CI run link, repository link and the CI's build number, plus up to 10 build tags. A channel can then take every new build from a branch or with a tag on its own. Pro and Team.
1. Upload from CI as usual
The CLI reads the CI variables of GitHub Actions, GitLab CI, Bitrise, Codemagic, CircleCI, Azure Pipelines, Jenkins and Bitbucket Pipelines. Override a value with --commit, --branch, --git-tag, --ci-run-url, --repo-url or --build-number, add tags with --tag, or send none with --no-git-info.
npx appforshare upload app-release.apk --channel qa --tag ring-pilot --tag nightly2. Or use our CI steps
The GitHub Action and the Bitrise step take a tags input; the fastlane plugin takes tags and git_info; the Gradle plugin takes tags and gitInfo. All of them send the git facts on their own.
# GitHub Actions - uses: appforshare/appforshare-action@v1 with: token: ${{ secrets.APPFORSHARE_TOKEN }} file: app/build/outputs/apk/release/app-release.apk tags: ring-pilot # fastlane appforshare(channel: "qa", tags: ["ring-pilot"])3. Read them on the build page
From CI shows the commit (a link on GitHub, GitLab and Bitbucket), branch, git tag, CI run and what sent the upload. Add tag puts a tag on the build later.
4. Let a channel follow a branch or a tag
On the project's Testing page, press Rules on a channel. Under Take new builds automatically, pick Branch or Tag, type the name (develop, ring-pilot) and Save rule. One rule per channel; No rule turns it off.
npx appforshare channel rule --channel qa --app com.acme.shop --branch develop
Promote by tag
Adding a tag to a build puts it into every channel that follows that tag: from the build page, with the CLI or with POST /api/ci/builds/{ref}/tags. Removing a tag never takes a build out of a channel. Tags are 1 to 40 lower case letters, digits, dots, dashes and underscores; a tag rule matches build tags and the git tag.
npx appforshare tag AbC123 --add ring-rolloutHow rules work with the rest
Putting builds into a channel by hand still works. On Team, the release checklist gate still applies: a build the gate refuses stays out, and the reason is logged. Pull request channels take no rules. A rule kept after a downgrade stays but stops acting.
On the install page, only if you want
Testers see the facts only when the project's Developer details on the install page is ticked (Testing page). It is off by default; leave it off for links that go to clients or the public.
Links are kept as https without query strings, fragments or user names and passwords (an Azure Pipelines buildId is the one query value kept), ssh repository addresses become https, and names are capped in length. Free and guest uploads go through without the facts.
MCP
build_info shows a build's git facts and tags, and list_channels shows each channel's rule. promote_build puts a build into a channel.
Questions
- Does AppForShare read my source code?
- No. It keeps the facts your CI sends with the upload; it does not scan your repository.
- Can a channel follow a branch and a tag?
- One rule per channel. Use two channels, or promote by tag.
- Which plan do I need?
- Pro or Team.
See also: Git details and branch channels, Upload from CI, Pull request channels, Update check and minimum build.