Skip to content

Commit

Permalink
Remove release issue tracker (#37544)
Browse files Browse the repository at this point in the history
* del

* lint

* remove time
  • Loading branch information
estherkim authored Feb 3, 2022
1 parent 76b8fbd commit 2907543
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 450 deletions.
7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/cherry-pick-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ body:
validations:
required: true
- type: input
id: release_tracker
id: amp_versions
attributes:
label: Release Tracker(s)
description: The [tracker issue(s)](https://github.com/ampproject/amphtml/labels/Type%3A%20Release) for the release to which the cherry-pick will be applied. Remember to update the issue title with this info.
placeholder: 'e.g. #44444, #55555'
label: AMP Version(s)
description: The AMP version(s) to which the cherry-pick will be applied.
validations:
required: true
- type: dropdown
Expand Down
29 changes: 0 additions & 29 deletions .github/ISSUE_TEMPLATE/release-tracker.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .github/workflows/release-tagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ on:
channel:
description: 'release channel (beta-opt-in | beta-percent | stable | lts)'
required: true
time:
description: 'action time'
required: true
sha:
description: 'commit sha'
required: true
Expand All @@ -37,7 +34,6 @@ jobs:
--head ${{ github.event.inputs.head }} \
--base ${{ github.event.inputs.base }} \
--channel ${{ github.event.inputs.channel }} \
--time ${{ github.event.inputs.time }} \
--sha ${{ github.event.inputs.sha }}
env:
GITHUB_TOKEN: ${{ secrets.AMPPROJECTBOT }}
16 changes: 1 addition & 15 deletions build-system/release-tagger/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,16 @@
* 2. head (AMP version)
* 3. base (AMP version)
* 4. channel (beta-percent|stable|lts)
* 5. time (in UTC, Y-%m-%d %H:%M:%S)
*/

const dedent = require('dedent');
const {action, base, channel, head, sha, time} = require('minimist')(
const {action, base, channel, head, sha} = require('minimist')(
process.argv.slice(2),
{
string: ['head', 'base'],
}
);
const {addLabels, removeLabels} = require('./label-pull-requests');
const {createOrUpdateTracker} = require('./update-issue-tracker');
const {cyan, magenta} = require('kleur/colors');
const {getRelease} = require('./utils');
const {log} = require('../common/logging');
Expand All @@ -29,14 +27,12 @@ const {publishRelease, rollbackRelease} = require('./update-release');
* @return {Promise<void>}
*/
async function _promote() {
const timeParam = decodeURIComponent(time);
log(
cyan(dedent`Release tagger triggered with inputs:
action: ${magenta(action)}
head: ${magenta(head)}
base: ${magenta(base)}
channel: ${magenta(channel)}
time: ${magenta(timeParam)}
sha: ${magenta(sha)}`)
);

Expand Down Expand Up @@ -67,14 +63,6 @@ async function _promote() {
magenta(channel)
);
}

await createOrUpdateTracker(head, base, channel, timeParam);
log(
'Updated issue tracker for release',
magenta(head),
'and channel',
magenta(channel)
);
}

/**
Expand Down Expand Up @@ -112,8 +100,6 @@ async function main() {
log('Action: rollback');
return await _rollback();
}

// TODO(estherkim): add release tracker comment on prs
}

main();
229 changes: 0 additions & 229 deletions build-system/release-tagger/test/update-issue-tracker.test.js

This file was deleted.

Loading

0 comments on commit 2907543

Please sign in to comment.